Connected agents overview (Microsoft Copilot)

Connected agents are agents your primary agent can invoke during a conversation. When a user's request falls within a connected agent’s domain, the orchestration runtime can route the request to that agent. This approach lets you build modular solutions where each agent handles a specific domain or task.

Note

The harness used to build this agent uses usage-based billing. Using, building, testing, and evaluating agents might consume Copilot Credits. Learn more in Overview of usage-based billing.

In the new agent experience, you can connect other agents built in Copilot Studio, agents hosted in Microsoft Foundry, remote agents available over the Agent2Agent (A2A) protocol, and agents built with the Microsoft 365 Agents SDK. You add every connected agent from the same Add a connected agent dialog on the Build tab.

Why use connected agents?

Connected agents are useful when you have multiple agents, each specialized in a different area, and you want a single front-door agent that routes users to the right specialist. Connected agents provide:

  • Specialization: Each agent focuses on a specific domain, making it easier to build and maintain.
  • Reusability: A specialized agent can be connected to multiple primary agents.
  • Separation of concerns: Different teams can own and manage different agents independently.
  • Scalability: Add new capabilities by connecting new agents rather than expanding a single agent's instructions.
  • Independent publishing and application lifecycle management (ALM): Publish, maintain, and make a connected agent available on its own channels, in addition to using it from other agents.
  • Dedicated settings: Give a connected agent its own configuration, such as which model it uses, independent of the primary agent's settings.

How connected agents work

  • The primary agent's orchestration runtime evaluates each user message.
  • If the request aligns with a connected agent's domain, the primary agent delegates the request.
  • The connected agent runs in its own orchestration context, with its own configuration.
  • The primary agent sends the relevant conversation history and user message to the connected agent.
  • The connected agent processes the request and returns a response to the primary agent.
  • The primary agent presents the response to the user.

Note

  • When you delegate work to a connected agent, the orchestrating model creates the task description and can rephrase or expand the user's request. Don't design connected-agent workflows that depend on the original prompt being forwarded verbatim.

  • Connected-agent handoffs are subject to a messaging payload limit, so an oversized file handoff might not reach the primary agent. Return compact structured data when possible, and create or process the file in the primary agent.

Limitations

Connected-agent delegation only supports one level. A connected agent can't invoke another connected agent.