To send each conversation to the right agent from the start, use a Router instead. A router picks one agent per message; subagents let a single agent call others in the middle of its answer.
Set up a subagent
1
Make the agent available as a subagent
- Go to Agents and open the specialized agent.
- In the General tab, fill in Description. The main agent reads it to decide when to call this agent.
- In the Agent as Subagent section, turn on Can be used as subagent.
- Choose whether to Share conversation context and set the Maximum call depth (see below).
- Click Save.
2
Give it to the main agent
- Open the main agent.
- In the Capabilities tab, open Agent Tools and select the subagents it may call.
- Click Save.
Settings
Write good descriptions
The description is what the main agent reads to pick a subagent. Say what the agent handles, and what it does not:Safety limits
AGO stops a delegation and returns an error to the main agent when:- an agent would call itself, or an agent already in the chain (for example A calls B, which calls A)
- the chain is longer than the subagent’s Maximum call depth
- the user is not allowed to use the subagent under their agent permissions
Troubleshooting
The subagent is not listed in Agent Tools
The subagent is not listed in Agent Tools
Open the subagent and check that Can be used as subagent is on, then save it.
The main agent calls the wrong subagent
The main agent calls the wrong subagent
- Make each subagent’s Description specific, and say what it does not handle.
- Add delegation rules to the main agent’s instructions.
- Test the conversation in the simulator after each change.
The subagent's answer misses earlier details
The subagent's answer misses earlier details
Turn on Share conversation context on the subagent, or tell the main agent to include the relevant details in the task it writes.
Error about circular calls or call depth
Error about circular calls or call depth
Check the Agent Tools of each agent in the chain for loops, or raise the subagent’s Maximum call depth if the chain is intended.
