Multi-Agent System Configuration Guide: Single-Bot and Multi-Bot Architectures

    This guide explains how to configure multi-agent systems in real environments, covering environment preparation, model access strategy, two common bot topologies, responsibility and prompt design, illustrative configuration structure, troubleshooting, and a pre-launch validation checklist. It helps readers choose between a single-bot and multi-bot architecture, avoid common configuration failures, and validate a small deployment before scaling.

    1. Why Multi-Agent Configuration Guides Are Hard to Write

    In technical tutorials, the hardest part is often not “how to do it,” but “how to do it in the reader’s environment.” This is especially true for multi-agent system configuration because it is highly sensitive to environment differences:

    • Different operating systems and runtime environments: Different desktop systems, terminals, virtualization setups, and dependency versions can make the same configuration work on one machine and fail at every step on another.
    • Different integrated large models: Models vary greatly in understanding ability, instruction-following behavior, and context window size. The same prompt may behave completely differently with another model.
    • Different interaction context: The background information, files, and examples you provide when communicating with agents directly determine whether they can correctly understand your configuration intent.

    In addition, many multi-agent frameworks do not provide official multi-agent configuration documentation, and practical guides are scarce. Therefore, this article does not aim to provide a “copy-and-paste” solution. Instead, it explains the general logic, decision points, and troubleshooting methods so readers can adjust the configuration flexibly for their own environments.

    2. Preparation Before Configuration

    2.1 Fix and Record Your Runtime Environment

    It is recommended to prepare an “environment checklist” and confirm each item:

    Check Item Description
    Operating system and version Record the exact version to help troubleshoot compatibility issues
    Runtime method Native terminal / virtualized environment / container; choose one and keep it consistent
    Framework version Always use the latest stable version; multi-agent capabilities change quickly across iterations
    Network connectivity Confirm access to model service endpoints; configure a proxy if necessary, but the proxy itself may introduce new variables

    Environment differences are the number one cause of multi-agent configuration failures. When problems occur, first check the checklist to confirm that the environment has not been accidentally changed, and then troubleshoot the configuration itself.

    2.2 Model Access Strategy

    The model is the brain of the entire system. When choosing one, follow these principles:

    • Prefer mainstream model services that are well supported in your region. These services often provide more predictable language understanding for your target users, stable APIs, and simpler payment and compliance workflows, and their setup is usually straightforward.
    • Avoid unreliable relay services and model endpoints with unstable access. Third-party relay services may depend on upstream resource pools that can fail, making your entire system unavailable and difficult to troubleshoot. Complex setup and account risk are also common concerns.
    • Prepare backup models. A single model may return the classic 429 rate-limit error and interrupt tasks. Prepare at least one switchable model channel in advance, and understand which configuration points must be updated together when switching.

    One easily overlooked pitfall: changing models is not just changing one field. Different models interpret system prompts, tool-calling formats, and output formats differently. After switching, you may see “configuration appears successful but behavior is abnormal.” After changing models, be sure to rerun the minimal validation flow.

    2.3 Keep the Framework on the Latest Version

    Multi-agent capabilities depend on the framework’s scheduling and routing mechanisms. Older versions may have known defects or may not support certain network topologies. Before starting, upgrade to the latest stable version through the framework’s built-in update mechanism. If the update fails, first check network connectivity and mirror source configuration rather than rushing to modify configuration files.

    3. Two Common Network Topologies

    Common multi-agent network topologies can be summarized into two types, which are enough to cover most usage scenarios.

    Topology 1: Single Bot + Multiple Agents

    A single external bot entry point (message channel) connects to the orchestrator, and the orchestrator has several sub-agents behind it.

    1. User/group chat
    2. │
    3. ▼
    4. Single bot entry point
    5. │
    6. ▼
    7. Orchestrator (routing, intent recognition, result aggregation)
    8. ├── Sub-agent A (e.g., information retrieval and organization)
    9. ├── Sub-agent B (e.g., code generation and review)
    10. └── Sub-agent C (e.g., document writing)

    Key points:

    • Users see only one interaction entry point, providing a unified experience. This is suitable for personal assistants, group Q&A, and similar scenarios.
    • The number of sub-agents is theoretically unlimited, but it is better to divide them by “clear functional boundaries” rather than assuming more is better. Too many sub-agents increase the orchestrator’s routing burden and make context loss more likely.
    • When choosing a bot channel, make sure it supports group chat. Some channels only support one-on-one chat and cannot satisfy team collaboration scenarios.

    Topology 2: Multiple Bots + Multiple Agents

    Each agent is bound to its own independent bot entry point, one-to-one and mutually independent.

    1. Bot entry point 1 ── Orchestrator (responsible for task decomposition and distribution)
    2. Bot entry point 2 ── Sub-agent 1
    3. Bot entry point 3 ── Sub-agent 2
    4. Bot entry point 4 ── Sub-agent 3

    Key points:

    • Each entry point is naturally isolated, making this suitable for different agents serving different user groups or business lines.
    • The orchestrator and sub-agents can still collaborate through internal calls or message queues, but they respond independently to external users.
    • Operational cost is higher than Topology 1 because multiple bots require separate management of credentials, permissions, and monitoring. This is suitable for teams of a certain scale.

    How to Choose Between the Two Topologies

    Dimension Single Bot, Multiple Agents Multiple Bots, Multiple Agents
    User entry point Unified Distributed
    Configuration complexity Lower Higher
    Permission isolation Must be implemented within the orchestrator Naturally isolated
    Suitable scenarios Personal assistants, group chat assistants Multiple teams, independent services for multiple business lines

    4. Configuration Workflow

    4.1 Define Responsibilities Before Configuration

    Answer three questions before configuring:

    1. What is the orchestrator responsible for? Recommended: intent recognition, task decomposition, sub-agent selection, and result aggregation.
    2. What is each sub-agent responsible for? Recommended: a single clear function with non-overlapping boundaries.
    3. How are data and context passed between the orchestrator and sub-agents?

    Unclear responsibilities are the main source of “answering the wrong question” in multi-agent systems. It is recommended to first write down each agent’s responsibility in one paragraph, then translate it into a system prompt.

    4.2 Context and Prompt Design

    • In the orchestrator’s system prompt, clearly list the capabilities of sub-agents so it has a basis for routing.
    • Sub-agent prompts should include input format, output format, and rejection scope—which requests should be returned to the orchestrator.
    • Do not forward all historical messages to the model indiscriminately. Trim them according to the sub-task to avoid context overflow and quality degradation.

    4.3 Illustrative Configuration Structure

    The following is a generic pseudo-configuration for illustration only. Refer to your framework’s documentation for actual field names:

    1. # Illustrative structure, not a runnable configuration
    2. orchestrator:
    3. model: mainstream model A
    4. role: intent recognition and task routing
    5. agents:
    6. - name: researcher
    7. role: information retrieval and summarization
    8. model: mainstream model B # choose different models based on task characteristics
    9. - name: coder
    10. role: code generation and review
    11. model: mainstream model A
    12. channels:
    13. - type: bot channel that supports group chat
    14. bound_to: orchestrator

    Note: Different agents can use different models. For example, use a stronger model for sub-agents with high reasoning requirements, and a more cost-effective model for simple organization tasks, balancing cost and rate limits.

    5. Common Issues and Troubleshooting

    1. 429 rate limiting: Reduce concurrent requests, add retry backoff, switch to a backup model channel, or distribute different channels among multiple sub-agents.
    2. Abnormal behavior after changing models: Do not check only the model name. Verify the system prompt, tool-calling format, and output parsing logic one by one, and validate with a minimal test case.
    3. Sub-agents are never called: This usually means the orchestrator’s routing description is unclear. Check whether the capability list is explicit and whether responsibilities overlap.
    4. Responses are attributed to the wrong agent: Context was polluted or truncated during transfer. Check the history trimming logic and session isolation for each agent.
    5. Configuration fails after an update: Framework upgrades may change the configuration format. Back up the configuration before upgrading, and check each item against the change notes afterward.
    6. Network proxy issues: An unstable proxy can cause request timeouts or TLS errors. Ensure the proxy applies only to the required domains, and enable connection logs for easier diagnosis.

    6. Pre-Launch Validation Checklist

    • Each sub-agent can return answers that match its responsibility when asked individually
    • The orchestrator can correctly recognize intent and route to the corresponding sub-agent
    • Requests outside all sub-agent responsibilities can be politely rejected or fallback-handled
    • Multi-turn conversation context works correctly in group chat scenarios
    • The system can automatically retry or switch when rate limiting is triggered
    • The full flow passes regression after model switching

    7. Conclusion

    Configuring a multi-agent system is indeed more complicated than configuring a single agent. Claims online that it is “simple and can be done in five minutes” often omit a large amount of environment detail. What really determines success is environment consistency, model selection, responsibility division, and context design. By following the topology choices and troubleshooting checklist in this article step by step, you can quickly locate the specific part of the system when you encounter environment-specific issues. It is recommended to start small—one orchestrator plus one or two sub-agents—and gradually expand after validation passes.