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 / How do you get the res...
Copilot Studio
Answered

How do you get the response from an agent?

(2) ShareShare
ReportReport
Posted on by 11
I have created a Chief-of-Staff agent which produces beginning-of-day and end-of-day summaries based on my emails, Teams chats, calendar and meeting notes/transcripts. In order to run it at the start of the day and end of the day I created two Recurrence triggers. These triggers initiate the agent using a "Sends a prompt to the specified Copilot for Processing" action. This action only returns the conversation ID, not the actual response of the agent. I can't use the Execute Agent or Execute and Wait actions because each recurrence needs to be accompanied by a specific prompt (e.g. Generate my BoD update" or "Generate my EoD update"). How do I get the agent to post its response to the agent chat in Teams (or send an email to me with the response)? I saw a post about using secondary flow within the agent that is triggered when called by the agent and which responds back to the agent but it doesn't seem to be doing anything. I don't know if I am missing something in the configuration. Alternatively, is it possible to get the response of the agent using the ConversationID? If so, how does one do that?
Categories:
I have the same question (0)
  • Suggested answer
    sumit_artesian Profile Picture
    76 on at
     
    You can create an Agent Flow and execute the Agent Flow as a tool by your Copilot agent. I am assuming your recurring trigger calls a separate agent/topic. 
     
    What you need to do is to go to your other agent/topic, add a tool at the end, and choose Agent Flow. While configuring the agent flow, make sure the trigger expects a string input. You can then parse that string and send it as the body of an email using the "Send an email" action or post it on Teams using one of the various MS Teams actions provided. 
     
    Once the Agent Flow is configured, you can add it as a tool to your agent/topic and pass the information you need, emailed or posted on Teams, as the input to the tool. 
     
    If you are already using a Power Automate flow to evaluate your meetings and events to generate the summaries, you can use the same flow to push the information to Teams or have it emailed to you. That would work as well. The approach heavily depends on how your agent and flows are configured.
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item.
    If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like! 🩷
  • Verified answer
    TechFreak Profile Picture
    123 on at

    Hi,

    Yeah, this is one of those confusing areas where Copilot/agent flows and Power Automate look similar but behave quite differently.

    What’s happening is the action you’re using:

    Sends a prompt to the specified Copilot for Processing
     

    is asynchronous. It only starts the conversation and returns a ConversationId, but it doesn’t wait for or return the agent’s response. That’s why you’re not getting any output to post or email.

    Also, at the moment, there isn’t a supported way to take that ConversationId and fetch the response later via Power Automate. So that path won’t help here.

    If you want the actual response (so you can post it in Teams or send an email), you need to switch to a pattern where the flow waits for the agent to respond.

    The right approach is to use:

    Execute Agent (or Execute Agent and Wait)
     

    Now, you mentioned you need different prompts for BoD and EoD. That’s totally doable.

    Instead of hardcoding the prompt, just pass it dynamically from your recurrence flow:

    Example:

    Execute Agent
    Prompt: "Generate my BoD update"
     

    and for the second flow:

    Execute Agent
    Prompt: "Generate my EoD update"
     

    These actions will return the actual response from the agent, which you can then use in:


    • Microsoft Teams → Post message in chat

    • Outlook → Send email
     

    For example:

    Post message in Teams
    Message: AgentResponse
     

    If you prefer to keep your current “Send prompt” action, then the only working pattern is to let the agent handle the response itself:


    • Inside the agent, create a topic that:

      • Handles the prompt (BoD/EoD)

      • Calls a Power Automate flo 

    • That flow then:

      • Sends email

      • Or posts to Team 


    •  

    But in this case, the trigger must originate from the agent conversation, not just an external recurrence flow. That’s why your “secondary flow” likely isn’t firing.

    So in short:


    • “Send prompt to Copilot” → fire-and-forget (no response available)

    • “Execute Agent / Execute and Wait” → returns response (best for your use case)

    • ConversationId → cannot be used to retrieve response
     

    For your scenario (scheduled BoD/EoD summaries), the cleanest setup is:


    • Recurrence trigger

    • Execute Agent (with dynamic prompt)

    • Use returned response → send to Teams or email
     

    Best regards,
    Satyam Pandey

     

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

    ❤️ If it was helpful, please click Yes on “Was this reply helpful?” or give it a Like.

    🏷️ For follow-ups, feel free to tag @TechFreak

    💼 LinkedIn

    ▶️ YouTube

  • KM-29042000-0 Profile Picture
    11 on at
    Thank you. Your response made me go check the Execute Agent and Wait Action more deeply. I had originally thought that this action doesn't tale a prompt because I didn't see it in the settings. However, I found a Message parameter in the Advanced section and put the prompt in there and it worked great.

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 704

#2
Vish WR Profile Picture

Vish WR 249

#3
Haque Profile Picture

Haque 244

Last 30 days Overall leaderboard