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 / Power Automate Working...
Power Automate
Unanswered

Power Automate Working with Run a Prompt Action

(0) ShareShare
ReportReport
Posted on by 4

I am building a Power Automate flow where users can upload a custom Word document template. The template can vary for each run of the flow.

In the flow, I use the “Run a prompt” action to instruct the AI to generate output and place the information into the uploaded template. However, the output I receive does not follow the structure or formatting of the provided template, and the generated content does not align with the template layout.

Is there currently a supported way to ensure that the output generated by Run a prompt follows the structure of an uploaded Word template? Or are there recommended approaches for populating a user provided template/document with content in Power Automate?

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,499 Super User 2026 Season 1 on at
    The Run a prompt action ignores the actual Word file layout. It only treats the file as raw text for context, not as a template. The AI output is free‑form, not tied to content controls in the document. I don't think what you want to do is possible. 
  • CU04022236-0 Profile Picture
    4 on at
    @David_MA Thank you for your response. Is there another suggested approach with Power Automate to achieve the desired output?
  • Assisted by AI
    David_MA Profile Picture
    14,499 Super User 2026 Season 1 on at
    @CU04022236-0, sorry, but what you want to do is not something I have been requested to do, so I have not looked into it. It may be possible, but I am not sure how based on my knowledge of how the populate a word template action works. I don't think Copilot is at a stage where it can autonomously decide how to map the fields in the Word template to the data.
     
    I asked Copilot whether a Copilot Studio agent can determine how to map data fields in the action Populate a Word Template. It said no and didn't even give some alternative suggestions as it usually does. the short answer from Copilot:
     
     

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

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard