DEV Community

Cover image for Step‑by‑Step Guide: Generate PowerPoint Slides Using Copilot Studio Agent
Seena Khan
Seena Khan

Posted on

Step‑by‑Step Guide: Generate PowerPoint Slides Using Copilot Studio Agent

Introduction

Microsoft Copilot Studio allows you to create AI agents that automate tasks, including generating PowerPoint presentations. This guide walks you through creating a Copilot Studio agent that generates PowerPoint (PPT) slides automatically based on user input.


Prerequisites

Before you begin, ensure you have:

  • Microsoft 365 account
  • Access to Microsoft Copilot Studio
  • Power Automate access
  • SharePoint or OneDrive access (for storing generated PPT files)
  • PowerPoint Online access

Step 1: Access Microsoft Copilot Studio

  1. Go to Microsoft Copilot Studio
  2. Sign in with your Microsoft 365 account
  3. Click Create or New Copilot
  4. Enter the following:
  • Copilot Name (Example: PPT Generator Agent)
  • Description
  • Language
    1. Click Create

Step 2: Define Agent Purpose

After creating the Copilot:

  1. Navigate to Instructions or Overview
  2. Add agent instructions such as:

Example:

"You are a presentation assistant that creates professional PowerPoint slides based on user topics, including title slide, agenda, and content slides."

  1. Save changes

Step 3: Create Input Variables

Create variables to collect user input:

  1. Go to Topics
  2. Click + New Topic
  3. Name: "Generate PPT"

Create the following variables:

  • Presentation Topic
  • Number of Slides
  • Audience Type
  • Tone (Professional, Educational, Executive)

Example Questions:

  • What is your presentation topic?
  • How many slides do you want?
  • Who is the target audience?
  • What tone should the presentation follow?

Step 4: Add Generative AI Node

  1. Add Create Generative Answer node
  2. Configure Prompt:

Example Prompt:

"Create a PowerPoint presentation outline for {Topic}. Generate {Number of Slides} slides. Include:

  • Title Slide
  • Agenda
  • Content Slides
  • Summary Slide

Audience: {Audience}
Tone: {Tone}

Return in structured slide format."

  1. Save configuration

Step 5: Create Power Automate Flow

Now create automation to generate PPT file.

  1. Open Power Automate
  2. Click Create
  3. Select Instant Cloud Flow
  4. Choose trigger:

"When Copilot calls a flow"

  1. Add inputs:
  • Topic
  • Slide Count
  • Content

Step 6: Generate PowerPoint File

Inside Power Automate:

Option 1: Use PowerPoint Template

  1. Create PowerPoint Template in OneDrive/SharePoint

  2. Add placeholders:

  • Title
  • Content
  • Bullet Points
  1. In Power Automate:

Add action:

"Populate Microsoft PowerPoint Template"

Map:

  • Title → Topic
  • Content → Generated Content

Step 7: Save PowerPoint File

  1. Add action:

"Create File"

  1. Configure:
  • Location: OneDrive or SharePoint
  • File Name: {Topic}.pptx
  • File Content: Generated PPT

Step 8: Return File to Copilot

  1. Add action:

"Respond to Copilot"

  1. Return:
  • File URL
  • Download Link

Step 9: Connect Flow to Copilot Studio

  1. Go back to Copilot Studio
  2. Add Call Action Node
  3. Select Power Automate Flow
  4. Map variables:
  • Topic
  • Slide Count
  • Generated Content

Step 10: Test the Agent

  1. Click Test Copilot
  2. Example Input:

"Create a 5-slide presentation about Artificial Intelligence in Healthcare"

  1. Agent will:
  • Generate outline
  • Create PowerPoint
  • Provide download link

Example Output Structure

Slide 1 — Title Slide

  • Artificial Intelligence in Healthcare

Slide 2 — Agenda

  • Introduction
  • Use Cases
  • Benefits
  • Challenges
  • Summary

Slide 3 — Use Cases

  • Medical Imaging
  • Predictive Analytics
  • Automation

Slide 4 — Benefits

  • Improved Accuracy
  • Faster Diagnosis
  • Cost Reduction

Slide 5 — Summary

  • Key Takeaways

Best Practices

  • Use PowerPoint templates for consistent branding
  • Limit slides to 5–10 for best results
  • Use structured prompts
  • Store templates in SharePoint for reuse

Advanced Enhancements

You can enhance the agent by adding:

  • Corporate branding
  • Logo insertion
  • Theme selection
  • Multi-language support
  • Speaker notes generation

Troubleshooting

Issue: PPT not generating

Solution:

  • Check Power Automate permissions
  • Verify template placeholders
  • Confirm Copilot variables mapping

Issue: Slides empty

Solution:

  • Improve prompt instructions
  • Validate generated content variable

Conclusion

Using Copilot Studio with Power Automate, you can build an AI-powered PPT generator that creates professional slides automatically. This reduces manual work and standardizes presentation creation across teams.


Optional: Sample Prompt Template

"Create a professional {Slide Count} slide presentation about {Topic}.

Audience: {Audience}
Tone: {Tone}

Include:

  • Title Slide
  • Agenda
  • Key Points
  • Examples
  • Summary

Return bullet-based slide content."



Example Flow Diagram

Copilot Studio → Power Automate → PowerPoint Flow

User
  │
  ▼
Copilot Studio Agent
  │
  │ Collect Inputs
  │ - Topic
  │ - Audience
  │ - Slide Count
  │
  ▼
Generative AI Node
  │
  │ Generate Slide Content
  ▼
Call Power Automate Flow
  │
  ▼
Power Automate
  │
  ├── Get PPT Template (SharePoint / OneDrive)
  │
  ├── Parse Generated Content
  │
  ├── Populate PowerPoint Template
  │
  ├── Create New PPT File
  │
  └── Return File Link
  │
  ▼
Copilot Studio
  │
  ▼
User Receives Download Link
Enter fullscreen mode Exit fullscreen mode

Best Prompt for PPT Generation

Use this Production‑Ready Prompt inside Copilot Studio:

Enterprise PPT Generation Prompt

You are a professional presentation generator.

Create a {Slide Count} slide PowerPoint presentation.

Topic: {Topic}
Audience: {Audience}
Tone: {Tone}

Requirements:

- Slide 1: Title Slide
- Slide 2: Agenda
- Slide 3+: Content Slides
- Final Slide: Summary

Formatting Rules:

- Use short bullet points
- Maximum 5 bullets per slide
- Use professional language
- Avoid long paragraphs
- Include actionable insights

Return Output Format:

Title:
Subtitle:

Agenda:
- Item 1
- Item 2

Slide 1 Title:
Slide 1 Content:
- Bullet 1
- Bullet 2

Slide 2 Title:
Slide 2 Content:

Summary:
- Key Takeaway 1
- Key Takeaway 2

Also Generate:
- Speaker Notes
- Suggested Visual per Slide
Enter fullscreen mode Exit fullscreen mode

Advanced Enterprise Architecture

Enterprise‑Grade Copilot PPT Generator Architecture

                    ┌─────────────────────┐
                    │      User            │
                    └─────────┬───────────┘
                              │
                              ▼
                    ┌─────────────────────┐
                    │   Copilot Studio     │
                    │     AI Agent         │
                    └─────────┬───────────┘
                              │
                              ▼
                    ┌─────────────────────┐
                    │  Azure OpenAI /     │
                    │  Generative AI Node │
                    └─────────┬───────────┘
                              │
                              ▼
                    ┌─────────────────────┐
                    │   Power Automate     │
                    │      Flow            │
                    └───────┬─────────────┘
                            │
        ┌───────────────────┼────────────────────┐
        ▼                   ▼                    ▼

┌──────────────┐   ┌──────────────┐   ┌──────────────┐
│ SharePoint    │   │ OneDrive     │   │ Dataverse    │
│ Templates     │   │ Output Files │   │ Metadata     │
└──────┬───────┘   └──────┬───────┘   └──────┬───────┘
       │                   │                  │
       └──────────┬────────┴──────────┬──────┘
                  ▼                   ▼
            ┌──────────────┐  ┌──────────────┐
            │ PowerPoint    │  │ Approval Flow │
            │ Generation    │  │ (Optional)    │
            └──────┬───────┘  └──────┬───────┘
                   │                 │
                   └──────────┬──────┘
                              ▼
                    ┌─────────────────────┐
                    │   Generated PPT      │
                    │   Download Link      │
                    └─────────────────────┘
Enter fullscreen mode Exit fullscreen mode

Enterprise Enhancements

Optional Enterprise Features

Governance

  • Approval workflow before publishing
  • Template version control
  • Role‑based access

Intelligence

  • Pull data from SharePoint
  • Pull data from Excel
  • Pull data from APIs

Automation

  • Auto email presentation
  • Auto save to Teams
  • Auto naming convention

Branding

  • Multiple templates
  • Department‑based templates
  • Theme selection

Real Enterprise Example

User Request:

"Create Sales Presentation for Q4"

System Automatically:

  1. Detect Department = Sales
  2. Select Sales Template
  3. Pull Sales Data from SharePoint
  4. Generate Slides
  5. Send for Approval
  6. Deliver Final PPT

Recommended Enterprise Setup

Best Practice Stack:

  • Copilot Studio
  • Power Automate
  • SharePoint Templates
  • Dataverse
  • Azure OpenAI
  • Microsoft Teams Integration

Hope you enjoy the session.

Please leave a comment below if you have any further questions.

Happy Sharing !!!
Keep Learning | Spread Knowledge | Stay blessed |

Top comments (0)