Skip to main content
An agent is an AI assistant set up for one job, and a subagent is a specialist agent that another agent can call on. Subagents let one agent cover several specialist areas. People talk to the main agent; it hands each part of a request to the subagent that knows that area, then puts the answers together. For the idea in more depth, read Subagents.
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

  1. A person starts a task with the main agent.
  2. The agent reads the request and picks the subagent or subagents suited to it, by their names and descriptions.
  3. Each subagent works with its own instructions, knowledge bases and tools, and returns its result.
  4. The agent combines the results into one answer.
The person does not pick the subagents.

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

A subagent can also be used directly. The New task picker lists it under Subagents, and it then answers the person itself.
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.
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.
It is taken off every agent that used it. For a published agent, that change is recorded as a new revision.
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.

Agents that run workflows

An agent can also run published workflows. Add them in the agent’s Workflows section. When a request matches one, the agent starts the workflow: it runs the same steps every time and may pause for a person’s approval in the Inbox. The agent tells the person when a run is waiting or still running. A workflow that is not published cannot run. See Agents and workflows.