11# Generate slide decks | Codex use cases---
22 name: Generate slide decks
33[← All use cases](https://developers.openai.com/codex/use-cases)tagline: Manipulate pptx files and use image generation to automate slide creation.
44 summary: Use Codex to update existing presentations or build new decks by
55Use Codex to update existing presentations or build new decks by editing slides directly through code, generating visuals, and applying repeatable layout rules slide by slide. editing slides directly through code, generating visuals, and applying
66 repeatable layout rules slide by slide.
77Easyskills:
88 - token: $slides
9930m description: Create and edit `.pptx` decks in JavaScript with PptxGenJS, bundled
10 helpers, and render and validation scripts for overflow, overlap, and font
11 checks.
12 - token: $imagegen
13 description: Generate illustrations, cover art, diagrams, and slide visuals that
14 match one reusable visual direction.
15bestFor:
16 - Teams turning notes or structured inputs into repeatable slide decks
17 - Creating new visual presentations from scratch
18 - Rebuilding or extending decks from screenshots, PDFs, or reference
19 presentations
20starterPrompt:
21 title: Create a new slide deck
22 body: >-
23 Use the $slides and $imagegen skills to edit this slide deck in the
24 following way:
10 25
1126Related links - If present, add logo.png in the bottom right corner on every slide
12 27
1328[Image generation guide](https://developers.openai.com/api/docs/guides/image-generation) - On slides X, Y and Z, move the text to the left and use image generation
29 to generate an illustration (style: abstract, digital art) on the right
14 30
1531## Best for - Preserve text as text and simple charts as native PowerPoint charts where
32 practical.
16 33
1734 - Teams turning notes or structured inputs into repeatable slide decks - Add these slides: [describe new slides here]
18 - Creating new visual presentations from scratch
19- Rebuilding or extending decks from screenshots, PDFs, or reference presentations
20 35
2136## Skills & Plugins - Use the existing branding on new slides and new text (colors, fonts,
37 layout, etc.)
22 38
2339- [Slides](https://github.com/openai/skills/tree/main/skills/.curated/slides) - Render the updated deck to slide images, review the output, and fix layout
40 issues before delivery.
24 41
2542 Create and edit `.pptx` decks in JavaScript with PptxGenJS, bundled helpers, and render and validation scripts for overflow, overlap, and font checks. - Run overflow and font-substitution checks before delivery, especially if
2643- [ImageGen](https://github.com/openai/skills/tree/main/skills/.curated/imagegen) the deck is dense.
27 44
2845 Generate illustrations, cover art, diagrams, and slide visuals that match one reusable visual direction. - Save reusable prompts or generation notes when you create a batch of
46 related images.
29 47
30## Starter prompt
31 48
32Use $slides with $imagegen to edit this slide deck in the following way:
33 - If present, add logo.png in the bottom right corner on every slide
34- On slides X, Y and Z, move the text to the left and use image generation to generate an illustration (style: abstract, digital art) on the right
35- Preserve text as text and simple charts as native PowerPoint charts where practical.
36 - Add these slides: [describe new slides here]
37- Use the existing branding on new slides and new text (colors, fonts, layout, etc.)
38- Render the updated deck to slide images, review the output, and fix layout issues before delivery.
39- Run overflow and font-substitution checks before delivery, especially if the deck is dense.
40- Save reusable prompts or generation notes when you create a batch of related images.
41 Output:49 Output:
50
42 - A copy of the slide deck with the changes applied51 - A copy of the slide deck with the changes applied
52
43 - notes on which slides were generated, rewritten, or left unchanged53 - notes on which slides were generated, rewritten, or left unchanged
54relatedLinks:
55 - label: Image generation guide
56 url: /api/docs/guides/image-generation
57---
44 58
45## Introduction59## Introduction
46 60
4761You can use Codex to manipulate PowerPoint decks in a systematic way, using the Slides skill to create and edit decks with PptxGenJS, and using image generation to generate visuals for the slides.You can use Codex to manipulate PowerPoint decks in a systematic way, using the slides system skill, which comes with Codex by default, to create and edit decks with PptxGenJS, and using image generation to generate visuals for the slides.
48 62
49Skills can be installed directly from the Codex app–see our [skills documentation](https://developers.openai.com/codex/skills) for more details.63Skills can be installed directly from the Codex app–see our [skills documentation](https://developers.openai.com/codex/skills) for more details.
50 64
54 68
55If a deck already exists, ask Codex to inspect it before making changes.69If a deck already exists, ask Codex to inspect it before making changes.
56 70
5771The slides skill is opinionated here: match the source aspect ratio before you rebuild layout, and default to 16:9 only when the source material does not already define the deck size. If the references are screenshots or a PDF, ask Codex to render or inspect them first so it can compare slide geometry visually instead of guessing.The slides system skill is opinionated here: match the source aspect ratio before you rebuild layout, and default to 16:9 only when the source material does not already define the deck size. If the references are screenshots or a PDF, ask Codex to render or inspect them first so it can compare slide geometry visually instead of guessing.
58 72
59## Keep the deck editable73## Keep the deck editable
60 74
64 78
65## Generate visuals intentionally79## Generate visuals intentionally
66 80
6781Image generation is most useful when the slides need a cover image, a concept illustration, or a lightweight diagram that would otherwise take manual design work. Ask Codex to define the visual direction first, then reuse that direction consistently across the whole deck.The imagegen system skill is already installed with Codex and is most useful when the slides need a cover image, a concept illustration, or a lightweight diagram that would otherwise take manual design work. Ask Codex to define the visual direction first, then reuse that direction consistently across the whole deck.
68 82
69When several slides need related visuals, have Codex save the prompts or generation notes it used. That makes the deck easier to extend later without starting over stylistically.83When several slides need related visuals, have Codex save the prompts or generation notes it used. That makes the deck easier to extend later without starting over stylistically.
70 84
72 86
73Deck automation works better when Codex treats each slide as its own decision. Some slides should preserve exact copy, some need a stronger headline and cleaner structure, and some should stay mostly untouched apart from asset cleanup or formatting fixes.87Deck automation works better when Codex treats each slide as its own decision. Some slides should preserve exact copy, some need a stronger headline and cleaner structure, and some should stay mostly untouched apart from asset cleanup or formatting fixes.
74 88
7589The slides skill also ships with bundled layout helpers. Ask Codex to copy those helpers into the working directory and reuse them instead of reimplementing spacing, text-sizing, and image-placement logic on every deck.The slides system skill also ships with bundled layout helpers. Ask Codex to copy those helpers into the working directory and reuse them instead of reimplementing spacing, text-sizing, and image-placement logic on every deck.
76 90
77## Validation before delivery91## Validation before delivery
78 92
7993Decks are easy to get almost right and still ship with clipped text, substituted fonts, or layout drift that only shows up after export. The slides skill includes scripts to render decks to per-slide PNGs, build a quick montage for review, detect overflow beyond the slide canvas, and report missing or substituted fonts.Decks are easy to get almost right and still ship with clipped text, substituted fonts, or layout drift that only shows up after export. The slides system skill includes scripts to render decks to per-slide PNGs, build a quick montage for review, detect overflow beyond the slide canvas, and report missing or substituted fonts.
80 94
81Ask Codex to use those checks before it hands back the final deck, especially when slides are dense or margins are tight.95Ask Codex to use those checks before it hands back the final deck, especially when slides are dense or margins are tight.
82 96
89You can create new slide decks from scratch, describing what you want slide by slide and the overall vibe.103You can create new slide decks from scratch, describing what you want slide by slide and the overall vibe.
90If you have assets like logos or images, you can copy them in the same folder so that Codex can easily access them.104If you have assets like logos or images, you can copy them in the same folder so that Codex can easily access them.
91 105
92Create a new slide deck with the following slides:
93- Slide 1: Title slide with the company logo (logo.png) and the title of the presentation
94- Slide 2: Agenda slide with the key points of the presentation
95- Slide 3: [TITLE] [TAGLINE] [DESCRIPTION]
96- ...
97- Slide N: Conclusion slide with the key takeaways
98- Slide N+1: Q&A slide with my picture (my-picture.png)
99
100### Deck template update106### Deck template update
101 107
102You can update a deck template on a regular basis (weekly, monthly, quarterly, etc.) with new content.108You can update a deck template on a regular basis (weekly, monthly, quarterly, etc.) with new content.
107 113
108For example, if you need to give quarterly updates to your stakeholders, you can update the deck template with new numbers and insights.114For example, if you need to give quarterly updates to your stakeholders, you can update the deck template with new numbers and insights.
109 115
110Update the deck template, pulling content from [integration 1] and [integration 2].
111Make sure to follow guidelines defined in guidelines.md.
112
113### Adjust existing deck116### Adjust existing deck
114 117
115If you built a deck but want to adjust it to fix spacing, misaligned text, or other layout issues, you can ask Codex to fix it.118If you built a deck but want to adjust it to fix spacing, misaligned text, or other layout issues, you can ask Codex to fix it.
116
117Adjust the deck to make sure the following layout rules are followed:
118- Spacing should be consistent when there are multiple items on the same slide displayed in a row or grid.
119- When there are multiple items on the same slide displayed in a row or grid, the items are aligned horizontally or vertically depending on the content.
120- All text boxes should be aligned left, except when they are below an illustration
121- All titles should use the font [font name] and size [size]
122- All captions should be in [color]
123- ....
124
125## Related use cases
126
127[
128
129### Kick off coding tasks from Slack
130
131Mention `@Codex` in Slack to start a task tied to the right repo and environment, then...
132
133Integrations Workflow](https://developers.openai.com/codex/use-cases/slack-coding-tasks)[
134
135### Analyze datasets and ship reports
136
137Use Codex to clean data, join sources, explore hypotheses, model results, and package the...
138
139Data Analysis](https://developers.openai.com/codex/use-cases/datasets-and-reports)[
140
141### Build responsive front-end designs
142
143Use Codex to translate screenshots and design briefs into code that matches the repo's...
144
145Front-end Design](https://developers.openai.com/codex/use-cases/frontend-designs)