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 / Copilot Studio / Copilot Studio Agent t...
Copilot Studio
Answered

Copilot Studio Agent that generates PowerPoint presentations on branded templates

(0) ShareShare
ReportReport
Posted on by

Copilot Studio Agent that generates PowerPoint presentations on branded templates — is it possible?

 

Hi everyone,

I'm building a Copilot Studio agent that creates PowerPoint presentations based on our company's official branded templates. Here's what I'm trying to achieve:

The goal:
A user chats with the agent, provides a topic, language (Hebrew/English), number of slides, target audience, and key points. The agent then automatically generates a ready-to-download PowerPoint presentation styled with our company branding.

What we have:


  • Two branded PPTX template files (Hebrew and English versions) stored in OneDrive/SharePoint — these contain only the background designs, no content

  • A Copilot Studio agent that collects user inputs via conversation

  • An Agent Flow (Power Automate) that:

    • Copies the correct template based on language

    • Calls AI Builder to generate slide content as a JSON array (slide title + bullet points)

    • Returns the output to the agent 

    •  

  •  

The missing piece:
We can successfully copy the template and generate the slide content as JSON, but we cannot find a way to actually write the generated text into the PowerPoint slides without using external/paid tools.

The question:
Is there a native Microsoft way (Office Scripts, Graph API, or any Power Automate connector) to inject text into specific slides of an existing PPTX file stored in OneDrive or SharePoint?

Any guidance would be greatly appreciated!

Thanks

I have the same question (0)
  • Suggested answer
    Beyond The Platforms Profile Picture
    246 on at
    Hi there, 
    Yes, this is possible, but not with a fully native “Power Automate PowerPoint populate template” action.
     
    Based on the Microsoft documentation, there is currently no built-in Power Automate action equivalent to “Populate a Microsoft Word template” for PowerPoint. Power Automate can copy the PPTX template file, store it in OneDrive or SharePoint, and pass data around, but it does not provide a native action to open an existing PPTX file, find placeholders on specific slides, and inject generated text into those slides.
     
    Office Scripts is also not the right approach for this scenario, because Microsoft documents Office Scripts as an Excel automation feature, not as a server-side PowerPoint automation engine.
     
    Microsoft Graph can help you access, download, upload, or replace files in OneDrive/SharePoint, but Graph itself is not a high-level PowerPoint editing API for inserting text into specific slides or placeholders.
     
    The most Microsoft-native architecture would be:
     
    Copilot Studio Agent
    → collect user inputs
    → Power Automate Agent Flow
    → copy the correct branded PPTX template from SharePoint/OneDrive
    → generate slide content as structured JSON
    → call an Azure Function
    → Azure Function modifies the PPTX using the Open XML SDK
    → save the final PPTX back to SharePoint/OneDrive
    → return the download link to the user
     
    The key missing component is the Azure Function using the Microsoft Open XML SDK.
     
    Microsoft documents the Open XML SDK as a way to programmatically create and manipulate Office documents, including PowerPoint presentation documents. With Open XML SDK, you can open the copied PPTX file, locate slides, shapes, text boxes, or placeholder text, replace the placeholder values with the generated content, save the file, and upload the final version back to SharePoint or OneDrive.
     
    A recommended template design would be:
     
    - Create a branded PPTX template.
    - Add clear placeholder tokens in text boxes, for example:
      {{SLIDE_1_TITLE}}
      {{SLIDE_1_BULLET_1}}
      {{SLIDE_1_BULLET_2}}
      {{SLIDE_2_TITLE}}
    - Store the template in SharePoint or OneDrive.
    - Have AI Builder or your LLM generate JSON matching those placeholders.
    - Send the copied PPTX file and the JSON payload to an Azure Function.
    - The Azure Function replaces the placeholder tokens with the generated text.
    - Power Automate saves the modified PPTX and sends the file link back to Copilot Studio.
     
    So the recommended pattern is:
     
    Correct approach:
    Copilot Studio
    → Power Automate
    → Copy PPTX template
    → Generate JSON slide content
    → Azure Function with Open XML SDK
    → Replace placeholders in PPTX
    → Save final file
    → Return download link
     
    Not recommended / not supported as a native no-code action:
    Power Automate
    → directly inject text into PowerPoint slides using a built-in Microsoft PowerPoint connector
     
    If you need a low-code/no-code option, then third-party connectors such as Encodian or Plumsail can handle PowerPoint template population, but those are external services and may require a paid subscription.
     
    If you want to stay within Microsoft-native technologies, the best solution is Azure Function + Open XML SDK, with Power Automate orchestrating the process and Copilot Studio handling the user conversation.
     
    Hope this helps!
    Paolo


    Did this solve your issue? → Accept as Solution
    👍 Partially helpful? → Click "Yes" on "Was this reply helpful?" or drop a Like!


    Want more tips on Power Platform & AI? Follow me here:

    🔗 LinkedIn: https://www.linkedin.com/in/paoloasnaghi/
    ▶️ YouTube: https://www.youtube.com/@BeyondThePlatforms
    📸 Instagram: https://www.instagram.com/beyond_the_platforms/
    🌐 Website: https://www.beyondtheplatforms.com/


     
  • Verified answer
    Sayali-MSFT Profile Picture
    Microsoft Employee on at
    Hello ,
    There isn’t currently a native Power Automate/Copilot Studio action that can write generated text into specific slides of an existing PPTX template. Office Scripts in Power Automate are focused on Excel, and Microsoft Graph is useful for copying/downloading/uploading the PPTX file but not for rich slide editing. The practical Microsoft-native approach is to orchestrate from Copilot Studio/Power Automate and call an Azure Function using Open XML SDK to modify the PPTX, then save it back to SharePoint/OneDrive and return the download link. If you want low-code only, third-party connectors such as Encodian/Plumsail are the typical option.
    Reference Document-
    1. Run Office Scripts with Power Automate - Office Scripts | Microsoft Learn
    2. Encodian - PowerPoint - Connectors | Microsoft Learn
    3. Create and format shapes in PowerPoint add-ins - Office Add-ins | Microsoft Learn
    4. Create and format shapes in PowerPoint add-ins - Office Add-ins | Microsoft Learn

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard