Skip to main content

Notifications

Power Automate - AI Builder
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:

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard