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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to store Copilot S...
Copilot Studio
Unanswered

How to store Copilot Studio Custom Agent's chat response in a variable?

(1) ShareShare
ReportReport
Posted on by 6
Hi Team,
 
I am building a custom copilot agent in Copilot Studio and I wanted to use the Agent's response as a input to trigger the Power Automate Flow.
 
Is there any way I can store the agent's entire response to use as input for the flow?
I have the same question (0)
  • Arild Aarnes Profile Picture
    363 on at
    Hi,
     
    Yes there is.
    The approach will be different depending on if generative orchestration is enabled or not in your agent.
     
    If it's on Classic you can find the agent response in a variable called Answer after the Create generative answer node in the Conversational boosting topic or after a Generative answers node in our custom topic. You can use that as input for your flow.
     
     
    If Generative orchestration is enabled the approach is different.
     
     
    You would have to create a new topic and change the trigger type to AI response generated.
     
     
    Within that new topic you will find a system variable called Response.FormattedText, that will be the response from AI and you can send that to your flow from this topic.
     
     
     
    Hope that helps.
     
    Arild
  • tcmsadmin Profile Picture
    6 on at
     Hello  
     
    Thanks for your prompt response.
     
     
    In my case, we were using Classic orchestration.
     
    I could see Answer Variable in  Conversational boosting topic.
     
    I can't see find variable in my Custom Topic.
     
     
    Kindly help.
     
    Thanks
  • Suggested answer
    Arild Aarnes Profile Picture
    363 on at
    If you go to properties on your "Generativ answers" nodes, scroll all the way to the bottom and open advanced you can set a new variable under "Save bot response as"
     
     
    Regards
    Arild

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard