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 a...
Copilot Studio
Suggested Answer

How to store Copilot agent response into a variable?

(0) ShareShare
ReportReport
Posted on by 52
How to store Copilot agent response into  a variable?
 
i have created a copilot agent to extract data from unstructured document .I want to save the agent response to variable which i want to pass as input to power automate flow.How to achieve this?
Categories:
I have the same question (0)
  • sandeep_angara Profile Picture
    424 Super User 2025 Season 2 on at
     
    Could you please post a screenshot where you would like to capture that data and how that data looks like?
  • TN-20081510-0 Profile Picture
    52 on at
    Copilot agent will get triggered by new email which contains pdf document.Agent will extract the data from pdf. I want to send this extracted data to power automate flow.How to achieve this?
  • Suggested answer
    AllanMouraDev Profile Picture
    142 Super User 2025 Season 2 on at
    Any action that you use that creates an output will look just like this:


    As you can see the adaptative card action will creat an output variable called "actionSubmitid", check if your action will create an output like this and configure it to be variable to be acessible gloabally.

  • willM Profile Picture
    27 on at
    I do not know of any way to do this using Copilot's UI. There is however some methods of getting the chat transcripts externally (like via Power Apps). Maybe there's some automation actions facilitate, then you could just call the action and send a conversation id as a param.

     
    Edit: Oh, you maybe able to do this yourself by creating a topic with an 'OnActivity' type, then appending to a list the last activity 
     
     
    Here's the file code
    kind: AdaptiveDialog
    beginDialog:
    kind: OnActivity
    id: main
    intent:
    kind: ExternalIntent
     
    actions:
    - kind: EditTableV2
    id: editTableV2_hTFhen
    itemsVariable: Topic.ConversationTranscript
    changeType:
    kind: AddItemOperation
    value: =System.Activity.Text
     
    inputType: {}
    outputType: {}
  • CU06031133-0 Profile Picture
    2 on at
    Hi @willM could you please let me know what action have you used to append the activity in a list?
     
    Thanks

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 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard