MULTI-AGENT

Connecting and Managing Multiple Agents
in Copilot Studio

Explore how to connect, orchestrate, and manage different types of agents—from Copilot Studio agents to Microsoft Foundry, Fabric Data, SDK, and A2A agents. Learn to build multi-agent workflows that are context-aware, secure, and capable of collaborative intelligence, all within a single Copilot Studio environment.

How to Connect to an Existing Copilot Studio Agent

Connecting your main agent to another Copilot Studio agent can expand your agent’s capabilities, streamline workflows, and enable seamless collaboration between agents. In this guide, we’ll walk you through everything you need to know to successfully connect your agents, step by step.

Requirements for Connecting Agents

Before attempting to connect your main agent to another Copilot Studio agent, ensure the following prerequisites are met:

Same Environment

The agent you want to connect must exist in the same environment as your main agent. Agents across different environments cannot interact.

Published Agent

The agent being connected must be published. Only published agents can be used externally.

Connection Permissions

The connected agent must be configured to allow connections from other agents.

Ownership or Shared Access

The maker connecting the agent must either own the agent being connected or have it shared with them.

Steps to Connect an Existing Agent

Follow these steps to connect an external agent to your main agent:

1. Access the Agents Page

Navigate to the Agents page for your main agent. Click Add an agent.

2. Select External Agent Type

Under Connect to an external agent, choose Copilot Studio from the list of available agent types.

3. Choose the Agent

From the list of available Copilot Studio agents, select the agent you want to connect. You will see the agent’s name, instructions, and description.

4. Update the Description (Optional)

Adjust the description to make it more contextual for your main agent. If you have multiple agents or tools with overlapping descriptions, refining this ensures that Copilot Studio can correctly decide when to invoke this agent. For tips on writing effective metadata, see Copilot Studio’s guidelines on metadata.

5. Manage Conversation History

If you want to prevent the conversation history from being passed to the connected agent, clear the Pass conversation history to this agent checkbox. This restricts the information passed to only the explicit task the main agent wants the other agent to complete.

Making Your Agent Available for Connections

By default, agents in the same environment can connect to each other. To allow other agents to connect to your agent:

  • Go to the Settings page for your agent.
  • Turn on Let other agents connect to and use this one if it isn’t already enabled.

If you want to prevent other agents from connecting to your agent, simply turn off this option.

Key Takeaways

  • Ensure all connection prerequisites are met: same environment, published agent, permissions, and ownership/access.
  • Update descriptions carefully to maintain context and prevent overlaps.
  • Manage conversation history to control the flow of information between agents.
  • Always publish connected agents after making changes to ensure your main agent uses the latest version.
  • Control connection permissions from the agent’s settings page.

Connecting agents in Copilot Studio enhances your automation capabilities and helps you create a more collaborative and intelligent system of agents. Following these steps ensures smooth, secure, and efficient connections every time.

Connect to a Microsoft Foundry Agent (Preview)

You can connect a Microsoft Foundry Agent to your custom agent, allowing it to call this agent to respond to a user or a trigger.

Steps to Connect a Microsoft Foundry Agent

1. Access the Agents Page

Go to the Agents page for your main agent and select Add an agent.

2. Select Microsoft Foundry

Under Connect to an external agent, choose Microsoft Foundry from the available agent types.

3. Choose or Create a Connection

Select the desired connection from the list of available connections, or create a new connection between Microsoft Foundry and your Copilot Studio agent. To create a new connection, provide the Foundry project endpoint URL.

4. Configure Your SDK Agent

Enter an appropriate Name and Description for your SDK agent. The description should describe the purpose of your Microsoft Foundry agent, allowing your main agent to understand when it should be used. For more information, see writing effective metadata.

Enter the Agent Id for the Microsoft Foundry agent you want to connect to.

5. Adjust Description (Optional)

Adjust the description to make it more contextual for the main agent. Make it more specific if you have other tools or agents where descriptions might overlap. This ensures Copilot Studio understands when to invoke this agent.

6. Add Agent

Select Add Agent. Once your agent is created, you can test it immediately. If needed, you can adjust the Agent Id later from the details page by selecting your agent from the Agents list.

Connect to a Microsoft Fabric Data Agent (Preview)

You can connect Fabric Data Agent to your custom agent, allowing it to call this agent to respond to a user or a trigger.

Steps to Connect a Microsoft Fabric Data Agent

1. Access the Agents Page

Go to the Agents page for your main agent and select Add an agent.

2. Select Microsoft Fabric

Under Connect to an external agent, select Microsoft Fabric from the available agent types.

3. Choose or Create a Connection

Select the desired connection from the list of available connections or create a new connection between Microsoft Fabric and your Copilot Studio agent.

4. Next Step

Select Next to proceed.

5. Select Fabric Data Agent

Select the desired agent from the list of Fabric data agents you have access to.

6. Adjust Description (Optional)

Adjust the description as needed to make it more contextual for the main agent. Make the description more specific if you have other tools or agents where descriptions might overlap. This ensures Copilot Studio understands when to invoke the agent. For more information, see writing effective metadata.

Connect to a Microsoft 365 Agents SDK Agent (Preview)

The Microsoft 365 Agents SDK allows you to build agents using code, in C#/.NET, JavaScript (Node.js), and Python.

You can connect an agent built with the Microsoft 365 SDK to your custom agent, allowing it to call this agent to respond to a user or a trigger.

Steps to Connect a Microsoft 365 Agents SDK Agent

1. Access the Agents Page

Go to the Agents page for your main agent and select Add an agent.

2. Select Microsoft 365 Agents SDK

Under Connect to an external agent, select Microsoft 365 Agents SDK from the available agent types.

3. Enter Messaging Endpoint

Enter the messaging endpoint URL for your SDK agent (by default, the endpoint ends with /api/messages).

4. Configure Name and Description

Enter an appropriate Name and Description for your SDK agent. The description should describe the purpose of your SDK agent, allowing your main agent to understand when it should be used. For more information, see writing effective metadata.

5. Select Authentication Method

Select the appropriate authentication method from the Connection string dropdown depending on how your SDK agent is configured. If you select an authentication type other than None, you must also complete the other authentication details.

6. Create and Add Connection

Select Create. Then select the desired connection from the list of available connections or create a new connection between your A2A agent and your Copilot Studio agent. Finally, select Add and configure.

Connect an Agent Available Over the Agent2Agent (A2A) Protocol (Preview)

The Agent2Agent (A2A) protocol is an open standard for communication and collaboration between agents.

You can connect your custom agent to another agent that supports the A2A protocol. Copilot Studio uses the A2A protocol to orchestrate with this agent in response to a user request or a trigger.

What is the Agent2Agent (A2A) Protocol?

The Agent‑to‑Agent (A2A) protocol defines a standard contract for agent communication. It enables an orchestrator or agent to:

  • Send tasks to external agents.
  • Provide rich, structured metadata.
  • Receive agent responses in a predictable format.

Here's how the A2A protocol compares to a traditional HTTP connection for inter-agent communication:

Feature A2A Protocol HTTP Connector
Designed for agent workflows ✓ ✗
Supports multi-turn interactions ✓ ✗
Provides rich contextual metadata ✓ Limited
Interoperable across frameworks ✓ Varies

By using A2A, Copilot Studio can delegate tasks to another agent, not just call APIs.

When to Use A2A Connections

Use an A2A connection when you want to integrate agents that already implement the Agent‑to‑Agent protocol. This approach works well for agents that are:

  • Built on external frameworks.
  • Hosted outside Copilot Studio.
  • Equipped with their own domain‑specific reasoning or workflows.

Use alternative integration patterns when appropriate:

Integration Need Recommended Approach
Connect to APIs or basic HTTP services Custom connectors / HTTP tools
Use MCP tools or resources MCP servers
Integrate agents built with Microsoft 365 Agents SDK Activity Protocol

You can combine multiple integration models within the same Copilot Studio agent.

Connect Your Agent to Another Agent Over the A2A Protocol

1. Access Agents Page

Go to the Agents page for your main agent and select Add an agent.

2. Select A2A Connection

Select Connect to an external agent > Agent2Agent.

3. Enter Endpoint URL

Enter your A2A agent's endpoint URL. The endpoint should be for agent communication, not the agent card URL. Copilot Studio automatically pulls name and description if your agent has a valid agent card on the standard .well-known URL.

4. Configure Authentication

Select the appropriate authentication method from the Authentication dropdown:

  • None: No authentication required (sample agent).
  • API key: Provide header or query parameter for API key.
  • OAuth 2.0: Provide client ID, client secret, authorization URL, token URL, and refresh URL.

If authentication is other than None, complete all required details.

5. Create Connection

Select Create. Then select the desired connection from the list or create a new connection between your A2A agent and Copilot Studio agent. Finally, select Add and configure.

A2A Connection Sample

In this quickstart, you configure an A2A-enabled agent and connect it to a Copilot Studio agent:

  • Run a sample A2A-enabled agent locally or use an existing A2A agent.
  • Expose the agent securely over HTTPS using Dev Tunnels or other hosting.
  • Connect the external agent to a Copilot Studio agent through an A2A connection.
  • Validate by invoking the agent from Copilot Studio with a natural language task.

After configuration, you see:

  • A successful A2A connection established from Copilot Studio.
  • Activity logs from the external agent confirming receipt and processing of the task.
  • The complete A2A payload, including metadata sent with each request.

Prerequisites

To follow the sample scenario, you need:

  • An Azure OpenAI resource with Endpoint URL, Deployment Name, and API Key.
  • .NET 10 SDK or higher.
  • A Copilot Studio environment with permissions to edit agents and configure connections.
  • A method to expose the local agent publicly: Dev Tunnels (recommended) or hosted environment (Azure App Service / container).

If you already have an A2A-enabled agent, go to Create the A2A connection in Copilot Studio.

Step 1: Clone and Configure the Sample A2A Agent

Clone the sample repository:

git clone https://github.com/microsoft/CopilotStudioSamples.git
cd CopilotStudioSamples/extensibility/a2a/Simple-A2A-Sample

Set required Azure OpenAI settings as environment variables or in appsettings.json:

$env:AZURE_OPENAI_ENDPOINT="https://YOUR-RESOURCE.openai.azure.com"
$env:AZURE_OPENAI_DEPLOYMENT_NAME="YOUR-DEPLOYMENT"
$env:AZURE_OPENAI_API_KEY="YOUR-KEY"
{
  "AzureOpenAI": {
    "Endpoint": "https://YOUR-RESOURCE.openai.azure.com",
    "DeploymentName": "YOUR-DEPLOYMENT",
    "ApiKey": "YOUR-KEY"
  }
}

Step 2: Build, Run, and Expose the Agent

Restore and build dependencies:

dotnet restore
dotnet build

Run the agent:

dotnet run

Step 3: Create the A2A Connection in Copilot Studio

  • Open Copilot Studio and select your primary agent.
  • Select Agents.
  • Select Add agent, then choose A2A agent.
  • Enter required configuration:
    • Name: Descriptive name (e.g., Botanical Agent)
    • Endpoint URL: Use public Dev Tunnel URL + A2A message endpoint, e.g., https://xyz123-5073.dev.tunnels.ms/a2a/botanical/v1/message:stream
    • Authentication: Select None for sample agent
  • Select Save to validate and establish connection. Copilot Studio confirms connection success.

Step 4: Send a Task from Copilot Studio to the A2A Agent

  • Open main agent in Copilot Studio, go to Test canvas.
  • Enter a prompt delegated to the A2A agent, e.g., "Which plant needs more light—a tomato plant or a strawberry plant?"
  • The agent orchestrator delegates the task to the A2A agent.
  • The external agent processes and returns a response, visible in test chat.
  • In external agent logs, you see:
    • Received A2A task
    • Natural language prompt
    • Generated response returned to Copilot Studio

Step 5: Inspect the A2A Payload and Metadata

A2A messages include structured metadata for extra context. It helps adapt responses, manage routing, or maintain continuity.

A typical payload includes:

  • Unique contextId
  • Message IDs
  • Locale information
  • Full chat history
  • Message content parts (text, tool calls, metadata)
{
"method": "message/send",
"params": {
 "message": {
   "contextId": "ee1e68ee-75fc-42bb-83d7-25fd26e559c3",
   "metadata": {
     "copilotstudio.microsoft.com/a2a/chathistory": [
       {
         "From": "agent",
         "Locale": "en-US",
         "Text": "Hello, I'm A2A Agent Demo...",
         "Timestamp": "2025-11-26T23:19:28.764Z"
       },
       {
         "From": "user",
         "Locale": "en-US",
         "Text": "Which plant needs more sunlight...",
         "Timestamp": "2025-11-26T23:20:21.484Z"
       }
     ]
   }
 }
}
}

This metadata can be used for downstream logic your A2A agent implements.

Next Steps & Key Takeaways

  • Add new skills or domain knowledge to your A2A agent.
  • Use metadata from the A2A payload to implement routing and personalization logic.
  • Add authentication to secure your A2A endpoint and update Copilot Studio settings accordingly.
  • Connect other A2A-enabled agents using the same configuration approach.
Key Takeaways
  • Copilot Studio can orchestrate external agents using the A2A protocol.
  • A2A enables multi-agent workflows with rich contextual metadata.
  • The sample agent demonstrates the full round trip: Copilot Studio → A2A agent → Copilot Studio.
  • A2A messages include detailed metadata that supports context-aware agent behavior.