Forum Discussion
How to preserve document format and structure with Copilot Agent
Hi everyone,
I was building a copilot agent that should be able to accept a document and then make changes to it before returning the new version of that document, which has the same format and structure as the original. What is the best way to accomplish this in copilot studio? So far, I have tried using a power automate flow and external tools but it seems that there is no free included tool that can achieve this task. All the document writing tools seem to be paid services requiring API keys. Is there an alternate free way of achieving this task?
Thank you
1 Reply
- JonEricEubanksBrass Contributor
The main limitation is that Copilot Studio is not currently a lossless Word document editor. It can generate revised content, but it cannot reliably reconstruct every style, section, header, table, and layout element from an arbitrary uploaded document.
The closest native approach is Document output in Prompt Builder, currently in preview. You provide a Word template with placeholders, and the agent fills those placeholders while retaining the predefined layout. That works for standardized documents, but not for unrestricted “upload any document, edit it, and return an identical copy” scenarios.
So the scalable pattern is: Copilot handles the content changes, while a controlled Word template handles the formatting. For true in-place editing, Edit with Copilot in Word is a better fit than Copilot Studio, subject to licensing and rollout availability.
Reference:https://support.microsoft.com/en-us/word/edit-with-copilot-in-word