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 to get the JSON re...
Copilot Studio
Suggested Answer

How to get the JSON returned by Copilot Studio to Powerautomate ?

(0) ShareShare
ReportReport
Posted on by
Hi,
 
I have a copilot studio agent which triggers a PA flow on recieveing a new email.
 
  • PA gets the email via When a new email arrives in a shared email (v2)
  • Cleans it up using Html to Text
  • Sends that cleaned Text to Execute Agent and Wait
  • Execute Agent and Wait is doing its stuff (In copilot studio agent instructions i've asked it to do a json output, which it does fine when testing) but it doesn't returns that json back to the PA flow and lastResponse is always empty.
  • How to get the (json) response that is generated by the agent back into PA , so rest of the PA flow can continue ?
Just due to this one thing, whole thing is not working.
 
Any tips or guidance is welcomed.
 
Thanks in advance.
 
I have the same question (0)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,679 Super User 2026 Season 1 on at
    Hello,
     
    Nice done :)
     
    For the next step you have two option 
     
    -> Dynamic way (much elegant) : In the tool part of copilot studio, clic add, select the PA you want, in the detail describe all input with title, description, sample : so one will be with a description about having a JSON -> this way CS will select automaticly the tool with description and input matching and select automatically the content and the PA. CS will choose based on title of the title, description, title+description of the input in the tool and use it auto.
     
    ->deterministic way with a custom topic if you don't want CS to decide when and how to send JSON to PA (but need more advanced use of copilot studio) :
    Create a topic with a description matching what you want to do when a mail come : in the topic use the "advanced box -> generative answer" go to option of this one, uncheck send the answer to the tchat, check store into a variable the result of AI, then select the PA you have from the menu "tool" and select the PA you want.
     
    I hope it helped you to solve the question :) if yes it's very important to check the answer as answerer, big checkbox to make the answer green :) it's very important for the community and futur search engine :)

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 690

#2
Vish WR Profile Picture

Vish WR 271

#3
Haque Profile Picture

Haque 261

Last 30 days Overall leaderboard