Pptx

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or

What Is This?

Overview

The Pptx skill enables direct interaction with Microsoft PowerPoint files in the .pptx format. It covers the full lifecycle of presentation work, from creating new slide decks from scratch to reading and extracting content from existing files, editing layouts, and combining multiple presentations into a single output. Whether the .pptx file is the starting point, the end product, or an intermediate step in a larger workflow, this skill handles the operation.

At its core, the skill works with the Open XML structure that underlies all modern PowerPoint files. This means it can access slides, text frames, shapes, speaker notes, comments, layouts, and master templates programmatically. The skill integrates with Python libraries such as python-pptx to perform precise, repeatable operations on presentation files without requiring PowerPoint to be installed on the system.

The skill is designed for both simple tasks, such as extracting all text from a deck for use in a summary, and complex tasks, such as building a fully formatted pitch deck from structured data. It treats the .pptx format as a first-class data format rather than a static document type.

Who Should Use This

  • Business analysts who need to extract data or text from received PowerPoint files and use that content in reports or emails.
  • Developers and automation engineers building pipelines that generate presentation outputs from databases, APIs, or structured data sources.
  • Content creators and marketers who produce recurring slide decks and want to automate repetitive formatting and population tasks.
  • Consultants and project managers who regularly update existing presentations with new figures, timelines, or slide sections.
  • Data scientists who need to package findings and visualizations into a shareable, formatted slide deck.
  • Educators and trainers who create or modify course materials stored in PowerPoint format.

Why Use It?

Problems It Solves

  • Manually building slide decks from data is time-consuming and error-prone, especially when the same structure is reused across multiple projects.
  • Extracting readable text from a .pptx file for use in downstream tasks, such as summarization or translation, requires parsing the Open XML structure, which is not straightforward without tooling.
  • Updating an existing presentation with new content, such as replacing placeholder text or swapping out figures, typically requires opening the file manually and editing each slide.
  • Combining slides from multiple presentations into a single file involves format inconsistencies that are difficult to resolve by hand.

Core Highlights

  • Creates new .pptx files from structured input data
  • Reads and extracts text, notes, and metadata from existing presentations
  • Edits specific slides, shapes, or text frames within a file
  • Applies and modifies slide layouts and master templates
  • Adds, removes, or reorders slides programmatically
  • Accesses and writes speaker notes and comments
  • Combines or splits presentation files
  • Works without a PowerPoint installation on the host system

How to Use It?

Basic Usage

The following example uses python-pptx to create a simple two-slide presentation:

from pptx import Presentation
from pptx.util import Inches, Pt

prs = Presentation()
slide_layout = prs.slide_layouts[1]

slide = prs.slides.add_slide(slide_layout)
slide.shapes.title.text = "Q3 Results"
slide.placeholders[1].text = "Revenue increased by 12% compared to Q2."

prs.save("q3_results.pptx")

Specific Scenarios

Extracting all text from an existing deck:

from pptx import Presentation

prs = Presentation("existing_deck.pptx")
for slide in prs.slides:
    for shape in slide.shapes:
        if shape.has_text_frame:
            print(shape.text_frame.text)

Updating a placeholder in slide 3:

slide = prs.slides[2]
for shape in slide.shapes:
    if shape.name == "Revenue_Placeholder":
        shape.text_frame.paragraphs[0].runs[0].text = "$4.2M"

Real-World Examples

  • A sales team generates a weekly pipeline report by populating a standard .pptx template with CRM data pulled from an API.
  • A consultant extracts all text from a client-provided deck, feeds it into a summarization workflow, and returns a one-page brief.
  • A training department combines individual module decks into a single master presentation for each cohort.

When to Use It?

Use Cases

  • Generating pitch decks or status reports from structured data
  • Parsing a received .pptx file to extract content for an email, summary, or database entry
  • Automating monthly or weekly reporting presentations
  • Updating an existing template with new figures or text
  • Splitting a large presentation into smaller topic-specific files
  • Building training or onboarding materials programmatically
  • Converting presentation content into another format after extraction

Important Notes

Requirements

  • Python 3.7 or higher is recommended for use with python-pptx.
  • The python-pptx package must be installed: pip install python-pptx.
  • Input files must be in .pptx format. Legacy .ppt files require conversion before processing.
  • Sufficient file system permissions are needed to read from and write to the target directory.