web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / calling another env co...
Copilot Studio
Suggested Answer

calling another env co pilot studio agent

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hi

 I have a Copilot Studio knowledge agent and would like it to call another Copilot Studio agent when it cannot find an answer. What is the best and easiest way to implement this?  
For business reasons we cannot move both the agents to same environment.
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,318 Super User 2026 Season 1 on at
     
    Here it is recommended to use the Agent-to-Agent (A2A) Protocol. The sandard exposes the second agent as an external agent accessible via HTTPS endpoint with OAuth authentication. This is required because native multi-agent orchestration only works within the same environment.
     
    Let me know if you want to implement this and need help!
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,111 Moderator on at
     
    If you want one Copilot Studio agent to call another in a different environment, using a fallback is the right approach. The catch is there’s no built-in way to do this, so you need a small workaround.
    Also, Direct Line (what you’ll use under the hood) isn’t a simple API call. It’s a multi-step process, so you usually wrap it to keep things clean.

    Two practical options:
    Option 1: Custom Connector + API wrapper (recommended)
    Treat the second agent like an external service.
    • Put a small wrapper (Azure Function, etc.) in front of Agent B
    • Create a Custom Connector in Agent A
    • Call it from your fallback topic
    This keeps things clean and easier to maintain.
     
    Option 2: Power Automate + HTTP
    Use a flow as a bridge.
    • Agent A triggers a flow
    • Flow calls Agent B via Direct Line
    • Returns the response
    Works fine, but adds some delay since every call runs a flow.
     
    Key points
    No native “call another Copilot” feature yet
    Direct Line is required (and a wrapper helps a lot)
    Keep both environments in the same tenant and check DLP policies

    Recommendation
    Go with the Custom Connector + wrapper if this is more than a quick POC. It’s cleaner and scales better.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

    Sunil Kumar Pashikanti, Moderator
    Blog: https://sunilpashikanti.com/posts/
     
  • Suggested answer
    11manish Profile Picture
    2,837 on at
    For agents that must remain in separate environments, the easiest and most supportable approach is:
     
    Use a Power Automate flow as an intermediary. Configure Agent A to call the flow when no answer is found, have the flow query Agent B, and return the response back to the user.
     
    This provides the cleanest cross-environment solution while maintaining your business and governance requirements.
  • Suggested answer
    Valantis Profile Picture
    6,290 on at
     
    The answers above cover it well. One thing to add on the A2A Protocol chiaraalina mentioned: Microsoft is rolling out native Agent-to-Agent (A2A) support in Copilot Studio which will eventually handle cross-environment agent calls more cleanly. It's currently in preview so for production today, Sunil's Custom Connector + wrapper approach is the most reliable.
     
    For your specific scenario (fallback when no answer found), the Power Automate approach is actually the simplest to implement quickly:

    1. Create a fallback topic in Agent A that triggers when confidence is low
    2. Call a Power Automate flow that queries Agent B via Direct Line API
    3. Return Agent B's response back to the user
     
    The Direct Line token endpoint for Agent B is in Copilot Studio > Channels > Custom website > Token endpoint. Keep that secured and don't expose it in client-side code.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    Sayali-MSFT Profile Picture
    Microsoft Employee on at
    Hello @PS-11060041-0,

    Use the Fallback topic + Power Automate flow to call another agent when no answer is found, and invoke the second agent via Direct Line API or custom connector since cross‑environment agent calling isn’t natively supported.
    Reference Document-
    1.Use the Fallback topic - Microsoft Copilot Studio | Microsoft Learn
    2.Publish agents to channels and clients - Microsoft Copilot Studio | Microsoft Learn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 249

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 180 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 153

Last 30 days Overall leaderboard