Orchestration
An orchestrator coordinates multiple sub-agents to manage complex multi-step workflows.
After you configure an agent as an orchestrator, it becomes a coordination layer that plans tasks, delegates work to sub-agents, and integrates their outputs. The orchestrator does not execute tools directly. Instead, it focuses on strategy, task routing, and combining results.
Architecture
The orchestrator works as a supervisory layer that coordinates multiple agents. It does not call tools directly. Instead, it manages the workflow by doing the following:
- Interpreting the end user's goal
- Identifying which agents are required
- Delegating tasks to those agents
- Collecting and integrating their results
Example workflow
End user request: Create a Q2 sales performance report with charts and an executive summary.
Steps:
- Break down the request: Identify subtasks such as data extraction, analysis, visualization, summarization
- Delegate: Assign each subtask to the most suitable agent
- Data Agent → Extracts data
- Analytics Agent → Performs analysis and generates charts
- Summary Agent → Produces the executive summary
- Integrate: Validate outputs, merge them, and compile the final report
Benefits
- Modular architecture: Agents are specialized and can be maintained independently
- Scalable execution: Tasks can run in parallel
- Robustness: Failures are isolated with retry/fallback mechanisms
- Clear division of responsibilities: Orchestrator manages planning, agents manage execution
- Extensibility: New agents or tools can be added easily
Example orchestrator prompt
For information about when to use orchestration, refer to Plan your implementation.