Skip to main content

Calling another agent

The Call another agent step runs another published agent and uses its result. It is how you compose automations without duplicating logic.

Choosing the target​

Studio lists the agents this agent can call, with the name, description, exact version, what the agent asks for as input, and what it returns.

What cannot be called appears with the reason, rather than simply vanishing:

ReasonMeaning
No active version in this environmentThe agent exists and is not active here
From another environmentThe target has to be in the same environment
The agent itselfCalling itself is direct recursion

The target is always exact​

You point at a specific active version, never at "the latest". Publishing a new version of the called agent does not by itself change what this one runs — what happens is that the previous version stops being active.

That is what keeps a composed flow running exactly what was tested.

Mapping the input​

The panel shows the fields the called agent expects — with label, type, requiredness, and options — and you connect each one to a value in the current flow. No guessing names.

What it produces​

The child run's identifier and the result it returned.

The child run is first class: it has its own timeline and can be followed, cancelled, and audited. In the parent agent's timeline it appears as a step with a link to the full run.

Protections​

ProtectionHow it works
DepthThe agent-calling-agent chain has a ceiling, declared in the agent and capped by the space (default 3)
RecursionThe actual call chain is checked; a cycle A → B → A is blocked
EnvironmentThe child run always runs in the same environment as the parent
Fan-outOne run does not spawn more than 50 children — the same ceiling as "For each item"

The chain of responsibility​

In the child run, "who asked" is recorded as the parent run, not as a person. The whole chain is explicit in the audit trail.

When to use it instead of repeating steps​

SituationWhy
The same logic appears in several agentsOne agent, called by all of them
Handling one list item is complexThat is what "For each item" does internally
Different teams look after different partsEach publishes and versions its own

Common errors​

SymptomCauseWhat to do
The agent I want does not appearIt has no active version in this environmentActivate it in the same environment
Failure because depth was exceededThe chain is longer than the ceilingShorten the chain or revise the agent's ceiling
Failure because of recursionAn agent in the chain calls someone already in itRedesign the flow
The child run failedThe problem is in the called agentOpen the child run from the timeline

Next steps​