Documentation Index
Fetch the complete documentation index at: https://docs.neuralfactory.ai/llms.txt
Use this file to discover all available pages before exploring further.
Multi-Agent Workflows
Multi-agent workflows allow a single user-facing agent (the orchestrator) to delegate tasks to multiple specialized subagents. This is useful when your organization has distinct knowledge domains or toolsets that benefit from dedicated agents.How it works
- The user sends a message to the orchestrator
- The orchestrator analyzes the request and determines which subagent can best handle it
- The request is delegated to the appropriate subagent
- The subagent processes the request using its own tools and knowledge bases
- The orchestrator receives the subagent’s response and returns it to the user
Setting up a multi-agent workflow
Create subagents
First, create the individual specialized agents that will serve as subagents. Each should have:
- A focused knowledge base for its domain
- Tools relevant to its area
- A clear system prompt defining its expertise
Create the orchestrator
Create a new agent and configure it as an orchestrator. In the agent configuration:
- Select Multi-Agent as the agent type
- Add the subagents you created in the previous step
- Write a system prompt that describes when to delegate to each subagent
Best practices
- Keep subagents focused — Each subagent should be an expert in one area
- Write clear routing instructions — The orchestrator’s system prompt should leave no ambiguity about which subagent handles what
- Limit the number of subagents — 3–5 subagents is typically optimal; too many can confuse the routing
- Test edge cases — Try ambiguous questions that could go to multiple subagents