automationAIAPIspresentation creation

How to Automate Presentation Creation

January 21, 202613 min read

How to Automate Presentation Creation

Automation pays off for presentations you make repeatedly with the same structure: a weekly operations report, a monthly metrics review, a standard client update. It is rarely worth it for one-off or high-stakes decks, where the structure changes every time and judgment matters more than speed.

This guide covers three approaches, from least to most technical, and is explicit about what each one does and does not do:

  1. Saved AI briefs in the SlidesMate editor, run by a person each period.
  2. A data-to-Markdown pipeline that calls the SlidesMate Markdown API (Business plan) and returns slide JSON or HTML.
  3. PowerPoint scripting libraries such as python-pptx or PptxGenJS, which are separate from SlidesMate and produce .pptx files directly.

For the API's endpoint contract, see the API documentation. For Markdown syntax, see the Markdown to slides guide.

What to Automate and What to Keep Human

Part of the deckAutomate?Human role
Slide structure and orderYes, with a saved brief or fixed templateChange it deliberately, not every run
Data tables and figuresYes, from the system of recordCheck that the source data is complete and current
Narrative and commentaryDraft at mostWrite or approve every sentence
Recommendations and decisionsNoAlways written by the owner
Visual styleYes, with a consistent theme or templateOccasional updates
DistributionYes, with your own scheduler or workflow toolSign off before external audiences see it

The working rule: automate the mechanical parts, keep the judgment parts human, and never send an automated deck to an external audience without a review.

Approach 1: Saved Briefs in the SlidesMate Editor

This is the simplest form of automation. It removes the blank page, not the person.

  1. Write one brief per recurring deck. Keep the structure, audience and tone fixed, and leave clear slots for the facts that change each period.
  2. Collect the facts in a standard form. A shared spreadsheet or form with the same fields every period makes the brief quick to fill in.
  3. Generate in SlidesMate. Paste the filled-in brief on the create page, or use the Outline option if the slide titles are fixed. Include "use only these facts" so the generator marks missing information instead of filling it in.
  4. Review and export. Check every figure against the source, write the commentary, and export.

An example brief for a monthly report (fill the bracketed fields each month):

"10-slide [department] performance report for [month year]. Audience: executive team. Use only these facts. Metrics with targets: [metric: value (target)]. Highlights: [three items]. Issues: [two items]. Next month's priorities: [three items]. End with decisions needed from the executive team."

Review the brief every few months against the edits you keep making by hand. Repeated manual fixes usually mean the brief is missing an instruction.

SlidesMate does not schedule these runs for you; a person generates each deck.

Approach 2: Data to Markdown to the SlidesMate API

When the numbers come from a system, generate Markdown from the data and send it to the Markdown API. The API converts Markdown into structured slide JSON or a standalone Reveal.js HTML file. It requires an active Business plan and an API key from Settings, accepts up to 100,000 characters per request and allows 60 requests per minute.

What this approach does not do

Be clear about the limits before building on it:

  • Output is JSON or HTML only. The API does not return PowerPoint or PDF. If a recurring deck must be a .pptx or PDF, open the Markdown in the Markdown editor and export there on a paid plan, or use Approach 3.
  • No AI. The API converts what you send. It does not write commentary or analyze your data.
  • No charts. Use tables, or images of charts you render elsewhere. Speaker notes are supported: a notes: line directly after a slide's --- separator becomes that slide's notes (see the Markdown to slides guide).
  • No built-in connectors or scheduling. There is no native Zapier or Make app and no live data connection. Your script fetches the data, and your scheduler (cron, a CI schedule or a workflow tool) runs it.
  • HTML is for viewing, JSON is for checking. The standalone HTML file loads Reveal.js from a public CDN and is meant to be opened in a browser. Use the JSON response when a pipeline needs to validate output, as the recipe below does.

A runnable recipe: weekly report from a CSV

The script below reads a CSV of weekly metrics, validates it, writes Markdown, calls the API for JSON, checks that the response contains the expected number of slides and, with --html, also saves the browser-ready HTML file. It uses only the Python standard library. You can download build_report.py and the sample weekly_metrics.csv.

The input (fictional figures), saved as weekly_metrics.csv:

metric,this_week,last_week,target
New signups,412,388,400
Activated accounts,251,240,260
Support tickets closed,184,197,180
Median first response (hours),3.1,3.6,4.0

The script, saved as build_report.py:

"""Build a weekly report deck from a CSV and convert it with the SlidesMate Markdown API."""
import csv
import json
import os
import sys
import urllib.error
import urllib.request

API_URL = "https://slidesmate.com/api/markdown"
MAX_CHARS = 100_000


def load_rows(path):
    with open(path, newline="", encoding="utf-8") as f:
        rows = list(csv.DictReader(f))
    required = {"metric", "this_week", "last_week", "target"}
    if not rows or not required.issubset(rows[0].keys()):
        sys.exit(f"{path}: expected columns {sorted(required)}")
    for i, row in enumerate(rows, start=2):
        for key in required:
            if not (row[key] or "").strip():
                sys.exit(f"{path} line {i}: '{key}' is empty")
        for key in ("this_week", "last_week", "target"):
            float(row[key])  # raises ValueError on a non-numeric cell
    return rows


def build_markdown(rows, week_ending):
    def change(row):
        diff = float(row["this_week"]) - float(row["last_week"])
        return f"{diff:+g}"

    table = ["| Metric | This week | Last week | Change | Target |",
             "|--------|-----------|-----------|--------|--------|"]
    table += [f"| {r['metric']} | {r['this_week']} | {r['last_week']} | {change(r)} | {r['target']} |"
              for r in rows]

    slides = [
        f"# Weekly Operations Report\n\nWeek ending {week_ending}\n\nFigures from weekly_metrics.csv",
        "## Metrics against target\n\n" + "\n".join(table),
        "## Commentary\n\nTO BE WRITTEN BY THE REPORT OWNER BEFORE SHARING\n\nExplain the largest change and any metric below target.",
    ]
    front_matter = '---\ntitle: "Weekly Operations Report"\ntheme: "slate-corporate"\n---\n\n'
    return front_matter + "\n\n---\n\n".join(slides) + "\n", len(slides)


def convert(markdown, fmt):
    key = os.environ.get("SLIDESMATE_API_KEY")
    if not key:
        sys.exit("Set SLIDESMATE_API_KEY (Business plan key from Settings)")
    request = urllib.request.Request(
        API_URL,
        data=json.dumps({"markdown": markdown, "format": fmt}).encode("utf-8"),
        headers={"Authorization": f"Bearer {key}", "Content-Type": "application/json"},
        method="POST",
    )
    try:
        with urllib.request.urlopen(request, timeout=30) as response:
            return response.read()
    except urllib.error.HTTPError as error:
        sys.exit(f"SlidesMate API returned HTTP {error.code}: {error.read().decode('utf-8', 'replace')}")


def main():
    csv_path, week_ending = sys.argv[1], sys.argv[2]
    markdown, expected_slides = build_markdown(load_rows(csv_path), week_ending)
    if len(markdown) > MAX_CHARS:
        sys.exit(f"Markdown is {len(markdown)} characters; the API limit is {MAX_CHARS}")

    with open("weekly-report.md", "w", encoding="utf-8") as f:
        f.write(markdown)
    if "--dry-run" in sys.argv:
        print(f"Wrote weekly-report.md ({expected_slides} slides); API call skipped")
        return

    result = json.loads(convert(markdown, "json"))
    if not result.get("success") or result["data"]["slideCount"] != expected_slides:
        sys.exit(f"Unexpected response: {json.dumps(result)[:500]}")
    with open("weekly-report.json", "w", encoding="utf-8") as f:
        json.dump(result, f, indent=2)
    print(f"Converted {expected_slides} slides:", [s["title"] for s in result["data"]["slides"]])

    if "--html" in sys.argv:
        with open("weekly-report.html", "wb") as f:
            f.write(convert(markdown, "html"))
        print("Wrote weekly-report.html")


if __name__ == "__main__":
    main()

Run it without an API key first to check the generated Markdown:

python3 build_report.py weekly_metrics.csv "30 October 2026" --dry-run

With the sample CSV, the dry run writes this weekly-report.md:

---
title: "Weekly Operations Report"
theme: "slate-corporate"
---

# Weekly Operations Report

Week ending 30 October 2026

Figures from weekly_metrics.csv

---

## Metrics against target

| Metric | This week | Last week | Change | Target |
|--------|-----------|-----------|--------|--------|
| New signups | 412 | 388 | +24 | 400 |
| Activated accounts | 251 | 240 | +11 | 260 |
| Support tickets closed | 184 | 197 | -13 | 180 |
| Median first response (hours) | 3.1 | 3.6 | -0.5 | 4.0 |

---

## Commentary

TO BE WRITTEN BY THE REPORT OWNER BEFORE SHARING

Explain the largest change and any metric below target.

Then run it for real with your key set as SLIDESMATE_API_KEY:

python3 build_report.py weekly_metrics.csv "30 October 2026" --html

The script stops with a clear message on an empty or non-numeric cell, Markdown over the size limit, any non-200 response (for example 403 if the key's account is not on an active Business plan) or an unexpected slide count.

The output

On 3 November 2026 we ran the script with --html against a local build of SlidesMate's /api/markdown endpoint, authenticated with a Business-plan API key on a test account. The files it wrote are unedited: weekly-report.md, weekly-report.json and weekly-report.html. The JSON contains three slides, titled "Weekly Operations Report", "Metrics against target" and "Commentary". The first and last use the title-slide layout because each has only two short lines of body text; the metrics slide uses content. This is the metrics slide in the HTML file:

Slide titled "Metrics against target" showing a table of four fictional weekly metrics: new signups 412 against a target of 400, activated accounts 251 against 260, support tickets closed 184 against 180, and median first response 3.1 hours against 4.0, each with last week's value and the change

The Commentary slide is deliberately a marker, not generated text. The report owner writes it, and nobody should share the deck while the marker is still there. Open the HTML file before sending it.

Scheduling it

Run the script from whatever scheduler you already use: a cron job, a scheduled CI workflow or a workflow tool. Workflow tools need a step that can send a custom HTTP request with an Authorization header. Zapier's Webhooks feature, for example, supports custom headers and JSON bodies and is available on its Professional, Team and Enterprise plans, not the free plan (Zapier help center, checked November 2026). Keep the API key in the tool's secret storage, never in a shared document.

Approach 3: PowerPoint Scripting Libraries

If the recurring deck must be a PowerPoint file with native charts, a scripting library that writes .pptx directly is the better fit. These are separate open-source tools, not SlidesMate features:

LibraryWhat it does (per its documentation, checked November 2026)Good fit
python-pptxPython library for creating, reading and updating .pptx files without PowerPoint installed; adds tables and column, bar, line and pie chartsPython teams that need native, editable charts
PptxGenJSJavaScript library that builds PowerPoint presentations with text, tables, shapes, images and charts; runs in Node and browsersJavaScript teams and web-based pipelines

Both give you full control and both require you to own the layout code. A common pattern is to keep a branded .pptx as the template and have the script fill it.

You can combine approaches: draft and design the deck once in SlidesMate, export the editable PowerPoint on a paid plan, and use that file as the template a script updates each period.

Building in Review and Monitoring

Require sign-off for external audiences. Data pipelines break quietly: an upstream export changes columns, a job runs against yesterday's data, a filter drops a region. A short human review catches these before a client or executive does.

Know where every number comes from. Keep a simple data dictionary: metric, source system, calculation and refresh time. It makes review faster and questions easier to answer.

Fail loudly. Validate input before calling any API, check response codes, and alert when a run fails or produces an unexpected slide count. The recipe above does all three.

Version the template. Changes to the Markdown template, brief or .pptx template can break the pipeline. Keep them in version control and re-run the dry run after each change.

Is It Worth Automating?

Estimate it with your own numbers before building anything:

VariableHow to estimate it
Decks per monthCount the decks of this one type
Manual hours per deckTime a real one from start to sending
Setup hoursTemplate, script or brief, testing and documentation
Hours per deck after automationReview, commentary and fixes, timed on the first few runs
Monthly hours savedDecks per month × (manual hours − automated hours)
PaybackSetup hours ÷ monthly hours saved

As a purely hypothetical illustration: if a team makes 4 weekly reports a month at 2 hours each, setup takes 12 hours and each automated report still needs 30 minutes of review, the team saves 6 hours a month and recovers the setup time in about two months. If the numbers come out much worse than that for your team, keep doing the deck by hand or use Approach 1.

Measure your baseline before you start, and compare after the first month. That also tells you whether errors went down, which often matters more than the time.

Common Mistakes

Automating the hardest deck first. Board decks and investor updates vary the most and carry the highest stakes. Start with a predictable internal report.

Skipping review. The time saved is lost many times over the first time a wrong number reaches a client.

Automating judgment. Commentary and recommendations should be written by the person accountable for them.

Assuming connectors exist. Check what each tool actually supports. With SlidesMate, the integration point is the Markdown API; your own code or workflow tool handles data access and scheduling.

Frequently Asked Questions

What skills do I need?

Approach 1 needs no code. Approach 2 needs basic scripting, comfort with REST APIs and a Business plan. Approach 3 needs programming in Python or JavaScript and time to maintain layout code.

Can the SlidesMate API produce PowerPoint files?

No. It returns slide JSON or a standalone HTML file. PowerPoint and PDF exports are available from the SlidesMate editors on paid plans.

Can I automate charts?

Not through the Markdown API, which handles tables but not charts. Use python-pptx or PptxGenJS for native charts, or insert chart images you generate elsewhere.

Does the API use AI credits?

The Markdown API converts the Markdown you send without AI generation. AI credits apply to AI features in the editors.

Getting Started

Pick the most repetitive, predictable deck you make, time how long it takes now, and choose the lightest approach that fits. For most teams that means a saved brief on the create page. Teams on the Business plan can start the data pipeline with the dry-run recipe above and the API documentation. The project status and quarterly business review templates are good fixed structures to automate around.

Related Articles

Related Templates