Coordinator Agent
The Coordinator Agent orchestrates multiple specialized sub-agents to handle complex, multi-step tasks. It analyzes query complexity, routes to the appropriate sub-agents, and synthesizes their results into a single coherent response.
Create a Coordinator Agent
Section titled “Create a Coordinator Agent”-
Click Agent in the left sidebar, then give your agent a name.
-
Select Coordinator Agent from the Agent Type list and click Next.
-
Select Sub-Agents — choose the sub-agents this Coordinator Agent will coordinate. Each sub-agent’s capabilities are displayed to help you decide.
-
Review Prompts — the system generates a set of prompts that control how the Coordinator Agent operates:
- System Prompt — overall instructions for the Coordinator Agent
- Complexity Analysis Prompt — how the agent assesses whether a query is simple or complex
- Agent Routing Prompt — how the agent decides which sub-agent(s) to invoke
- Result Synthesis Prompt — how the agent combines results from multiple sub-agents
-
Customize the prompts if needed, then click Create Agent.
Template Structure
Section titled “Template Structure”The Coordinator Agent template comes pre-configured with the following components:
| Component | Type | Purpose |
|---|---|---|
| Begin | Begin | Entry point — starts the agent workflow |
| Interact | Interact | Collects and passes user input downstream |
| Query Composition | Generate | Reformulates and structures the incoming query for optimal routing |
| Intend Detection | Switch | Routes queries based on detected intent (e.g., filters or redirects security-related content) |
| Coordinator | Coordinator | Orchestrates sub-agents, plans execution, and synthesizes results |
How It Works
Section titled “How It Works”- Begin starts the workflow when a user submits a query.
- Interact receives the input and passes it to the downstream components.
- Query Composition reformulates the query to improve sub-agent routing accuracy.
- Intend Detection evaluates the query using conditional logic — for example, redirecting queries that contain security-sensitive content to an appropriate handler.
- The composed query and intent signal are both passed to the Coordinator, which plans execution across the configured sub-agents and returns a synthesized response.
For details on how the Coordinator component handles orchestration, routing, and result synthesis, see Coordinator.