Multi-Agent & Orchestrator
Esta página aún no está disponible en tu idioma.
The Multi-Agent feature lets you create a master orchestrator that automatically routes conversations to the right specialized agent based on what the user is asking about.
When to use multi-agent
Section titled “When to use multi-agent”| Scenario | Setup |
|---|---|
| One product, general support | Single agent (no orchestrator needed) |
| Multiple departments (sales, support, billing) | Orchestrator + 1 agent per department |
| Multiple brands under one account | Orchestrator + 1 agent per brand |
| Complex product lines | Orchestrator + 1 agent per product line |
How it works
Section titled “How it works”User message ↓Orchestrator Agent (routing) ↓ determines best matchSpecialized Agent (answers) ↓Response to user- The user sends a message to a single entry point (one WhatsApp number, one chat widget).
- The orchestrator agent analyzes the message and decides which specialized agent should handle it.
- The message is routed to the selected agent, which has its own knowledge base, triggers, and personality.
- The specialized agent generates the response.
The user never knows there are multiple agents — it feels like one seamless conversation.
Setting up
Section titled “Setting up”1. Create your specialized agents
Section titled “1. Create your specialized agents”Create one agent for each area of expertise:
- Sales Agent — knows about products, pricing, promotions
- Support Agent — knows about troubleshooting, returns, technical issues
- Billing Agent — knows about invoices, payments, subscription changes
Each agent should have its own:
- Knowledge base (only documents relevant to its domain)
- System prompt (personality and scope boundaries)
- Triggers (actions specific to its domain)
2. Create the orchestrator agent
Section titled “2. Create the orchestrator agent”Create a new agent that will act as the router:
- Go to Agent Settings on the orchestrator.
- Enable the Orchestrator toggle.
- Configure which agents are available for routing.
3. Configure routing rules
Section titled “3. Configure routing rules”In the orchestrator’s settings, define how messages get routed:
| Field | Description |
|---|---|
| Available agents | Which specialized agents the orchestrator can route to |
| Routing prompt | Instructions for the AI on how to decide (e.g., “Route billing questions to billing-agent, technical issues to support-agent”) |
| Default agent | Fallback when no clear match is found |
4. Connect channels to the orchestrator
Section titled “4. Connect channels to the orchestrator”Point your channels (WhatsApp, Live Chat, Instagram) to the orchestrator agent, not the specialized agents directly. The orchestrator handles the routing transparently.
Routing behavior
Section titled “Routing behavior”The orchestrator uses AI to understand intent and route accordingly:
- First message: Routes based on initial intent.
- Follow-up messages: Stays with the same agent unless the topic clearly changes.
- Ambiguous messages: Routes to the default agent or asks a clarifying question.
Best practices
Section titled “Best practices”- Keep orchestrator knowledge minimal — It only needs to understand what each agent handles, not the actual answers.
- Write clear routing prompts — List each agent and when to route to it. Be specific about boundaries.
- Set a good default — Choose the most general-purpose agent as fallback.
- Don’t overlap knowledge bases — Each specialized agent should own its domain exclusively.
- Test with edge cases — Try messages that could go to multiple agents and verify routing.
Example: E-commerce setup
Section titled “Example: E-commerce setup”Orchestrator prompt:"You are a routing assistant. Route messages as follows:- Questions about products, sizes, availability → products-agent- Questions about orders, tracking, returns → orders-agent- Questions about payments, invoices, refunds → billing-agent- General greetings or unclear intent → products-agent (default)"| User message | Routes to |
|---|---|
| ”Do you have this shirt in blue?“ | products-agent |
| ”Where is my order?“ | orders-agent |
| ”I need a refund” | billing-agent |
| ”Hello!“ | products-agent (default) |
Monitoring
Section titled “Monitoring”The orchestrator’s routing decisions are logged. You can review which agent handled each conversation in the Conversations page. This helps you:
- Identify misroutes and improve routing prompts
- Understand traffic distribution across agents
- Spot knowledge gaps in specialized agents
Next steps
Section titled “Next steps”- Create an Agent — set up specialized agents
- Configure Behavior — write effective system prompts
- Triggers — add actions to specialized agents