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 / Foundry agent integrat...
Copilot Studio
Suggested Answer

Foundry agent integration with Copilot Studio - cannot capture output

(0) ShareShare
ReportReport
Posted on by 14
Hello,
 
Has anyone made this work? I'm building a CS (Copilot Studio) agent which needs to call an Azure Foundry agent. So far, the Agent node that I can use in CS doesn't have Output properties. It does currently work by calling the Foundry agent, but then I lose control of output variables. If the Foundry agent returns a JSON object, it is always displayed in CS and I have no way to turn it off.
 
I'd need this Foundry agent to be part of a CS larger workflow, so input / output variable handling is a must.
 
Thanks.
I have the same question (0)
  • Suggested answer
    Beyond The Platforms Profile Picture
    118 on at
    Hi there, 

    Here some options:

    Option 1 – Power Automate Flow wrapper (recommended)
    Wrap the Foundry agent call in a Power Automate Flow using the Azure AI Agent Service REST API. The flow handles the call, parses the JSON, and returns typed output variables back to CS. This solves both problems: you get full variable control and nothing is displayed automatically.

    Option 2 – Custom Connector
    Same concept as above but via a Custom Connector in Power Platform. More reusable if you plan to call the Foundry agent from multiple topics/agents. Still requires handling the async run/polling pattern (run → polling → completed).

    Option 3 – Check system variables
    After the Agent node fires, inspect whether CS exposes anything via system variables (e.g. System.Activity or similar). Unlikely to be clean, but worth a quick check before building a full workaround.

    Bottom line: The native Agent node isn't ready for complex workflows yet. Power Automate Flow is your best bet today — Microsoft will likely add output properties in a future update, but the gap is real right now.

     

    Hope this helps!
    Paolo


    Did this solve your issue? → Accept as Solution
    👍 Partially helpful? → Click "Yes" on "Was this reply helpful?" or drop a Like!


    Want more tips on Power Platform & AI? Follow me here:

    🔗 LinkedIn: https://www.linkedin.com/in/paoloasnaghi/
    ▶️ YouTube: https://www.youtube.com/@BeyondThePlatforms
    📸 Instagram: https://www.instagram.com/beyond_the_platforms/
    🌐 Website: https://www.beyondtheplatforms.com/


     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 594

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 118

Last 30 days Overall leaderboard