Skip to content
UsecaseBoard
← All use cases
hashnodeDocument Generation

Fill a Word invoice layout with a Copilot Studio prompt

At a glance

Aqeel Khalid's walkthrough maps invoice text into a prepared Word layout and saves the generated document through Power Automate. This workflow is listed under Document Generation, Invoices, Workflow Automation.

SourceBuilding a tool for these workflows? See weekly rates.

What they did

1) Have Copilot Studio's Document output feature, Word, Power Automate, and writable OneDrive or SharePoint access. Make a .docx layout with {{CustomerName}}, {{InvoiceNumber}}, and table placeholders {{items.description}}, {{items.quantity}}, {{items.unitPrice}}. 2) Open a Copilot Studio prompt, select Document (preview) output, and upload the layout through Document settings. Check the detected placeholders. 3) Instruct the prompt to map customer and invoice details from input text into the placeholders and items table. Test with invoice number, customer, date, products, quantities, prices, and address. Inspect and download the generated document. 4) For repeat runs, make a manually triggered Power Automate cloud flow. Add Run a prompt, pass the invoice text, then add Create file, using Document Output Content Bytes as file content.

Worth knowing

The tutorial describes a preview limited to Word output and a 20 MB layout. Formatting comes from the uploaded template; regional availability can differ.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

No prompt excerpt was provided by the source.

Sponsored

CodeBuddy

Tencent Cloud AI coding assistant for IDE and CLI.

Try CodeBuddy ↗
Explore all →