For the complete documentation index, see llms.txt. This page is also available as Markdown.

What is Agent Teams?

Compose multiple specialized AI agents into a collaborative team that automatically divides work through "handoff" and "delegate" — users talk to a single entry point while the system routes questions

1. What is Agent Teams?

In the past, a single AI assistant had to handle everything: customer service routing, order inquiries, returns and exchanges, product recommendations — all crammed into one system prompt, one knowledge base, and one set of tools. As tasks piled up, this "jack-of-all-trades" assistant started dropping the ball — the system prompt grew too long, knowledge bases interfered with each other, and costs stayed high.

Agent Teams lets you replace "one generalist" with "a group of specialists." You can compose multiple existing AI assistants into a team, each with its own role (for example: a routing agent, an order agent, a returns agent, and a recommendation agent), then use a visual canvas to define "when should a question be handed to whom."

Users see a single conversation entry point; behind the scenes, the team automatically routes questions to the most suitable agent, as if the user were interacting with an entire professional team.

2. How is this different from "single agent + skills"?

Aspect
Single Agent (with Skills)
Agent Teams

Division of work

One agent handles all scenarios

Multiple agents each responsible for their area of expertise

Knowledge & tools

All attached to the same agent, prone to interference

Each agent independently owns its own knowledge base, tools, and model

Model cost

Only one model for all tasks

Use lightweight models for simple tasks and powerful models for complex reasoning, configured separately

Collaboration

Cannot hand off or delegate between agents

Supports handoff and delegate between agents

Scalability

New scenarios require modifying the existing agent's settings

Just add a new node and draw a connection

3. Three interaction types: Handoff, Delegate, Auto

Agents in a team collaborate through connections (directed arrows). Each connection can be configured with an interaction type that determines "how control flows once the question reaches the other agent." The three types are explained below, with accompanying diagrams.

Handoff

Handoff transfers control of the entire conversation: the source agent determines that someone else should handle this matter and passes the conversation to the target agent, who takes over and continues talking with the user — like a customer service rep transferring a call to another department, after which the new person takes over.

Best for: Parallel division of work where each agent handles its own domain. For example, a routing agent determines the user's intent and hands the conversation off to an order inquiry agent or a returns agent.

Delegate

Delegate outsources a subtask: the source agent asks the target agent to handle something specific, the target agent completes it and returns the result, while control remains with the source agent — like a colleague looking up some data for you and reporting back, with you still being the one who compiles the final response.

Best for: Hierarchical collaboration. For example, a customer service agent receives an inventory check request, delegates the inventory query to a warehouse agent, and then compiles the response for the customer.

Auto (Default)

Auto lets the AI decide on the spot whether to use handoff or delegate based on the current situation. Use this when you are not sure which type to choose or want to keep things flexible.

Communication volume and cost differences across the three types

When multiple agents collaborate, the most common concern is: will token costs spiral out of control? The key lies in how much content is passed between agents across the three types:

Aspect
Handoff
Delegate
Auto

Control

Transferred to the target agent

Stays with the source agent

Decided by the AI on the spot

Content passed between agents

The target agent reads the accumulated conversation context when taking over

The source agent only sends "one subtask" to the target agent — concise and well-scoped

Depends on the type chosen

Token/cost characteristics

Grows with conversation length and number of handoffs; only one agent runs at a time

Adds a sub-agent run on top of the current turn (one extra LLM call), but the sub-agent's input is concise and scope is controllable

Falls on whichever type is selected, harder to predict in advance

Predictability

Medium

High (task scope is well-defined)

Low (varies by situation)

The conversation "remembers" who is currently serving. After a handoff, the receiving agent continues serving the subsequent conversation until it determines another handoff is needed; the next message does not go back to the entry point for re-routing.

4. Typical use cases

  • E-commerce customer service team: A routing agent determines intent and hands off to order / returns / recommendation agents, each with their own knowledge base and tools.

  • Enterprise internal helpdesk: HR agent + IT agent + Finance agent, automatically routing employee questions to the appropriate desk.

  • Technical support team: L1 agent performs initial troubleshooting, delegates to L2 agent for deeper analysis, and the result is returned to L1 for a compiled response.

5. How it works (concepts)

Agent Teams uses a directed graph to describe the team:

  • Nodes (agents): Each node on the graph is an existing AI assistant, carrying its own system prompt, knowledge base, tools, and model.

  • Entry node: When the team receives a message, processing starts from this node. A team has exactly one entry node.

  • Connections (directed arrows): Define "from which agent, under what conditions, using which interaction type, to which agent."

  • Guardrails: The team has upper limits for max iterations, overall token limit, and timeout to prevent agents from looping endlessly.

When you create a team, the system automatically creates an entry agent and a corresponding Web Chat channel for the team, allowing you to chat with the entire team directly through the channel.

6. Next steps

  • Ready to create a team? See Create and orchestrate teams — how to create a new team, drag in agent nodes, draw connections to set interaction types, designate an entry point, and start a conversation.

  • Want to see how the team operates? See Team execution traces — which agents were involved in each execution, how many tokens each used, and how long it took.

Prerequisite: Agent Teams must be enabled by MaiAgent for your organization. If you do not see the "Teams" menu under "AI Features" in the admin panel, contact the MaiAgent team to activate it.

Last updated

Was this helpful?