Skip to main content
A router agent receives every user message and passes it to the most appropriate specialist agent. The user only sees the specialist’s answer.

When to Use Multi-Agent

Use multiple agents when:
  • Different topics require different knowledge sources
  • Response styles should vary by domain (e.g., technical vs. billing)
For most use cases, a single well-configured agent is enough. Add a router only when specialists clearly answer better.

Step 1: Create Specialist Agents

Create one agent per domain. Each should have:
  • Focused knowledge sources — only the content relevant to that domain
  • Tailored prompt — instructions specific to the domain’s tone, rules, and escalation
  • Appropriate tools — only the tools that domain needs
Example setup: Create each agent following the standard process in Agents > Create Agent. See Agents for configuration details.

Step 2: Create the Router Agent

The router reads each user message and picks the specialist that should answer it.
Agents page showing the Create Agent dropdown with Agent and Router options

Create a router from the Agents page dropdown

  1. Navigate to Agents
  2. Click the dropdown arrow next to Create Agent and select Router
  3. Name it something like Main Router or Support Router
  4. In the General tab, select the specialist agents the router can delegate to
  5. Optionally set a Default Fallback Agent (it appears below the agent list once you select an agent)
The router uses each agent’s Description to decide where to send a message, so you don’t need to write routing rules. Make sure every specialist agent has a clear, detailed description.
Router agent builder showing the General tab with agent selection and description fields

Router builder — select agents to delegate to and add descriptions so the router knows how to route


Step 3: Write Agent Descriptions

The router selects the right specialist based on agent descriptions. Write descriptions that clearly explain what each agent handles:
Be specific about what each agent handles. Vague descriptions like “general support” lead to inconsistent routing.
Optionally, add custom routing instructions in the router’s prompt template for edge cases:
Router instructions prompt template with example routing rules for sales and support agents

Prompt template with custom routing instructions that guide the router's decision

Step 4: Configure Permissions

The router respects agent permissions. If a user doesn’t have access to a specialist agent, that agent is excluded from the routing options. This means different users may be routed to different agents for the same message, depending on their permissions. Make sure users have the right permissions to access the specialist agents. See Agent Permissions.

Step 5: Test Routing

Use simulation testing to validate routing accuracy:
  1. Navigate to Agents > Agent Lab
  2. Create test cases covering each routing path:
  1. Run the simulation and verify correct routing
  2. Check that specialist agents provide accurate responses

How It Works

Routing Logic

  • One specialist available to the user: the router sends the message to it directly, without adding a routing step
  • Several specialists available: the router compares the message with each agent’s description and picks the best match
  • No clear match: the message goes to the Default Fallback Agent if configured, otherwise to the first available specialist
  • Another router selected: a router never hands a message to another router; it uses the fallback instead

Default Fallback Agent

In the General tab (below the agent list), optionally set a Default Fallback Agent. This agent answers when the router cannot determine the best match. If no fallback is configured, the router uses the first available non-router agent.

Knowledge Sources for Routing Context

If you assign knowledge sources to the router in its Context tab, the router reads the relevant documents before choosing a specialist. This helps when routing depends on knowledge specific to your products. Example use case: A router that needs to distinguish between product lines based on technical terminology found in your documentation.

Clarification with Suggested Actions

When Suggested Actions is enabled on a router, the router can choose to ask the user a clarifying question instead of routing immediately. This happens when the user’s intent is ambiguous and could match multiple agents. Instead of guessing, the router presents clickable suggested actions that help the user clarify their intent. Once the user responds, the router routes to the correct specialist.

Best Practices

  • Write clear agent descriptions — the router’s accuracy depends entirely on how well each agent’s role is described
  • Use a fast model for the router — choosing a specialist is a simple classification task, so a larger model adds cost and delay without improving accuracy
  • Set a default fallback — the user still gets an answer when a message matches no specialist
  • Keep the agent list focused — too many similar agents make routing harder; consolidate agents with overlapping responsibilities
  • Test in Agent Lab — use Simulation Testing to check routing across different message types
  • Monitor routing quality — review conversations in Analytics to catch mis-routed messages and adjust descriptions or routing instructions

Troubleshooting

Problem: All messages go to one agent regardless of intent.Solutions:
  1. Check that each agent has a distinct, detailed description
  2. Review the router’s prompt template for rules that may bias toward one agent
  3. Check that several agents are selected in the router’s configuration
Problem: Messages are routed to the wrong specialist.Solutions:
  1. Improve agent descriptions — make them more specific about what each agent handles and doesn’t handle
  2. Add explicit routing rules in the prompt template for ambiguous cases
  3. Add knowledge sources to the router if routing depends on domain-specific context
Problem: The router does not answer.Solutions:
  1. Verify the router has at least one agent configured
  2. Check that the user has permission to access at least one of the router’s agents