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.
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.
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.
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.
By default, agents in the same environment can connect to each other. To allow other agents to connect to your agent:
If you want to prevent other agents from connecting to your agent, simply turn off this option.
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.
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.
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.
You can connect Fabric Data Agent to your custom agent, allowing it to call this agent to respond to a user or a trigger.
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.
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.
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.
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.
The Agent‑to‑Agent (A2A) protocol defines a standard contract for agent communication. It enables an orchestrator or agent to:
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.
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:
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.
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:
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.
In this quickstart, you configure an A2A-enabled agent and connect it to a Copilot Studio agent:
After configuration, you see:
To follow the sample scenario, you need:
If you already have an A2A-enabled agent, go to Create the A2A connection in Copilot Studio.
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"
}
}
Restore and build dependencies:
dotnet restore
dotnet build
Run the agent:
dotnet run
A2A messages include structured metadata for extra context. It helps adapt responses, manage routing, or maintain continuity.
A typical payload includes:
{
"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.