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 / Generative Answer Node...
Copilot Studio
Answered

Generative Answer Node -- Save LLM Response

(0) ShareShare
ReportReport
Posted on by 55
Hi Experts,
 
I saved the response to a var type record, below json structure.
 
But the Content and MarkdownContent are coming as Text.

In my case thats the body of email.

when passing to Power automate, send email flow, its coming as plain text in email,
I want to change it to IsHTML type.

{
  "IsSydneySummarized": "false",
  "Text": {
    "CitationSources": [
      {
        "Id": "1",
        "Name": "Employee H",
        "Text": "<page valu",
        "Url": ""
      }
    ],
    "Content": "Subject: Y",
    "MarkdownContent": "Subject: Y"
  }
}
 
Kindly share some thoughts

Anilal



 
Categories:
I have the same question (0)
  • Suggested answer
    ChiragD Profile Picture
    16 on at
    Hi Anilal

    I understand that you want to send formatted responses via email that are generated by the LLM but the issue is LLM is generating as Markdown and when you send markdown via email it shows without formatting (like with #, *, _, symbols)

    While passing information from the topic to the power automate your email's body will remain as text (which is markdown), I would suggest accepting the markdown as text in the power automate flow and running a prompt to convert the markdown into HTML. You can create a prompt document and use the "run a prompt" activity. The prompt will take the Markdown as input and output HTML in response. Then you can send the HTML as the email body, and it will be formatted properly.

    Another solution is to write some python code to convert he Markdown into HTML and host it on an azure function app. Then use the "HTTP" activity inside the power automate flow to send a http request to the function hosted on azure and get the HTML as a response. This way is stricter and more accurate than the prompt document, but it also requires more architecture and code. 

    Let me know if this was helpful.

    Thanks
  • Verified answer
    Anilal Profile Picture
    55 on at
    the pre tag worked.

    <pre><code>
      @{triggerBody()?['text']}
    </code></pre>

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!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 123

#3
chiaraalina Profile Picture

chiaraalina 33 Super User 2026 Season 1

Last 30 days Overall leaderboard