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

Community site session details

Session Id : njcMUlFVDCFpvB0gsEQJWK
Power Automate - AI Builder
Unanswered

Using GPT to Improve Text Formatting but not change the words

Like (0) ShareShare
ReportReport
Posted on 7 Jun 2024 15:06:07 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:

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2