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

Community site session details

Session Id :
Copilot Studio - Calling Actions from Copilot S...
Unanswered

Query on Passing Values Between Sub-Agents and Retrieving Calling Agent Values in Copilot Studio

(0) ShareShare
ReportReport
Posted on by
Hello everyone, could you please let me know how to pass a value from agent A to agent B when both are sub-agents of agent C in Copilot Studio? Additionally, how can a flow retrieve the value from the calling agent?
Categories:
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    63 on at
    Query on Passing Values Between Sub-Agents and Retrieving Calling Agent Values in Copilot Studio
    Hi,
    
    To pass values between sub-agents in Copilot Studio — for example, from Agent A to Agent B when both are orchestrated by Agent C — you can use **shared variables** or **context objects** within the orchestration flow. Here's how you can approach it:
    
    1. **Use the orchestration flow in Agent C** to store the output from Agent A in a variable.
    2. **Pass that variable as input** to Agent B when invoking it. This ensures Agent B receives the necessary context or data.
    3. To **retrieve a value from the calling agent**, you can use the `conversationId` and associated context if the agent returns structured output. However, as of now, the `Execute Copilot` action does not return the full response body, which limits direct access to the calling agent's output unless you implement a workaround.
    
    For more details, you may refer to:
    - Copilot Studio orchestration documentation
    - Working with variables and context in Power Automate
    
    Thanks and best regards,  
    Daniele  
    **Note: This response was prepared with support from Copilot to ensure clarity and completeness.**

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 262 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 100

Last 30 days Overall leaderboard

Featured topics