Who: Admins and Members, on agents they may change · Where: Workforce › Agents, then the agent’s Subagents section · Works on: Enterprise and SaaS
How a request is shared out
- A person starts a task with the main agent.
- The agent reads the request and picks the subagent or subagents suited to it, by their names and descriptions.
- Each subagent works with its own instructions, knowledge bases and tools, and returns its result.
- The agent combines the results into one answer.
When to use which
Set up an agent with subagents
1
Create the subagents
Create each specialist and set Agent Type to Subagent under Identity. Give each one a focused knowledge base, the tools its job needs, and instructions for that job only. Give it a clear name and description: the main agent chooses by them.
2
Create the main agent
Create an agent with Agent Type set to Agent. This is the one people will talk to.
3
Add the subagents
In the main agent’s Subagents section, click Edit and pick each subagent under Search and select subagents…. The list shows the subagents you have access to.
4
Say when to use each
In the main agent’s instructions, say which kinds of request go to which subagent:
5
Publish and test
Publish the agent and start a task with it. Try a question for each subagent and a question that spans several, and check that the answers cite the right knowledge bases.
Tips
- Keep each subagent to one area.
- A handful of well-separated subagents routes better than many that overlap.
- Test questions that could go to more than one subagent.
Rules and limits
Using a subagent on its own
Using a subagent on its own
A subagent can also be used directly. The New task picker lists it under Subagents, and it then answers the person itself.
Two subagents with the same name
Two subagents with the same name
The main agent tells its subagents apart by name. If two have the same name, the studio warns you. They are given a suffix to stay distinct, but renaming one makes the choice clearer.
Choosing Subagent for an agent that has subagents
Choosing Subagent for an agent that has subagents
The type is fixed once an agent is created. Before that, for example while you review what the builder drafted, you can still switch it. If you pick Subagent for an agent that already has subagents chosen, Identity warns that a subagent has no subagents of its own and that the ones chosen will be removed when you save.
When a subagent is deleted
When a subagent is deleted
It is taken off every agent that used it. For a published agent, that change is recorded as a new revision.
Many subagents at once, and restarts
Many subagents at once, and restarts
By default, up to 10 subagents run at the same time within one task; the others wait their turn. If the platform restarts during a task, subagent work that already finished is not repeated.