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 / Power Automate / Using GPT to Improve T...
Power Automate
Unanswered

Using GPT to Improve Text Formatting but not change the words

(0) ShareShare
ReportReport
Posted on by 2

Hi. I've created a Cloud Flow in Power Apps which processes some text but the output is messy - there are extra line breaks in some bits of the text and not others. I want to use something like GPT/CoPilot to 'Improve the formatting of the following text without changing the words or word order :'

 

The text is currently held in a string variable.

 

I added an AI Builder action for Create text with GPT using a prompt. It asks for a prompt and I've supplied a string which is my full prompt. It asks for Infer Request. I'm not sure what to put in there, though I've tried a few examples I found by searching online. All of them result in the flow exiting with an error which looks like an HTTP 400 error.

 

Can you help - either suggest a different function/action that can tidy up text formatting without changing the words. Or suggest what I should put in the Prompt or Infer Request box to enable the flow and action to complete correctly.

Categories:
I have the same question (0)

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 > Power Automate

#1
Haque Profile Picture

Haque 293

#2
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 223 Most Valuable Professional

Last 30 days Overall leaderboard