Brand Template Generation
++ The agent reads a brand-styled PowerPoint or Word template, preserves its + shapes, logos, and formatting, and fills placeholders with contextual content + from the user's request and prior tool calls. +
+The conversation
++ Use this with a brand-approved template when the source file's layout, logos, + and formatting must stay intact. +
+ +-
+
-
+ 1+++You+++
+ Here's our standard customer QBR deck. Identify the shapes and logos + that should be preserved and turn the editable text into placeholders. +
+
+ -
+
+ ++Agent+++templatize_* preserves decorative shapes, logos, images, and layout+
Replaces editable text frames with named placeholders such as
+{'{{exec_summary}}'}and{'{{section_1_title}}'}.
+ -
+ 2+++You+++
+ Using this templatized deck, generate a Q1 review for Contoso. The + exec summary should pull from the email thread I shared, and the + metrics slide should use the figures from the attached spreadsheet. +
+
+ -
+
+ ++Agent+++
Reads the placeholder list, determines which values can be inferred, and asks only for missing details.
+fill_template writes placeholder values back in place+Returns the finished file with the original brand system intact.
+
+
Why this matters
++ Most "make me a deck" agents regenerate slides from scratch and lose the + customer's brand system in the process: fonts shift, logos move, footers + disappear, and color palettes drift. This scenario keeps the original file as + the source of truth and only writes into the spots that are meant to change. +
+Setup
+Import the solution
+
+ Import sample/templates/PPTWORDTemplateGenerator_1_0_0_2.zip
+ into a Power Platform environment with Copilot Studio on the
+ Early Release channel.
+
Add the scripts
+
+ Use the scripts under sample/templates/scripts/ as the
+ template-processing tools. Add any companion fill script from the
+ contributed package before running the end-to-end flow.
+
Enable ETC
++ Turn on Enhanced Task Completion in the agent's Generative AI settings so + the agent can plan across placeholder discovery, clarifying questions, and + final file generation. +
+ETC capabilities demonstrated
+Preserve brand fidelity
+Shapes, images, logos, headers, footers, fonts, and layout stay untouched while editable text is replaced with structured placeholders.
+Ask only when needed
+The agent decides which placeholders require clarifying questions and which can be filled from context, files, or tool calls.
+Chain file tools
+Templatizing and filling are separate steps, letting the agent pass a placeholder map forward without regenerating the whole document.
+Variants
+Cowork + Skills
+Run the same pipeline as a Cowork skill if you prefer that surface. The host changes, but the template-preserving flow is identical.
+Word documents
+Use the same flow for .docx files to preserve headers, footers, logos, tables, and body formatting.
Credit
+Contributed by Betty Le (Microsoft, Cloud Solution Architect).
+