> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-tools/content-and-interface-generation/generate-slides-via-html.md).

# Generate Slides (via HTML)

Create presentation slides from a written brief. The tool returns HTML slides that you can inspect and use in a presentation workflow.

## Watch the walkthrough

{% embed url="<https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FKTNY1Ttb2VgSAOIrJbWL%2Fgenerate-slides-alice-uk.mp4?alt=media>" %}
Generate Slides walkthrough with Alice UK voiceover
{% endembed %}

[Download the narrated walkthrough](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FKTNY1Ttb2VgSAOIrJbWL%2Fgenerate-slides-alice-uk.mp4?alt=media)

This 1 minute 51 second walkthrough shows a configured agent, a complete brief, slide navigation, expanded review, and the PDF/PowerPoint export menu. It uses the real StackAI frontend with fictional data and simulated tool responses. Tool setup and file export are not performed in the recording.

| Time | Step                          |
| ---- | ----------------------------- |
| 0:00 | Generate Slides overview      |
| 0:07 | Write a complete brief        |
| 0:36 | Review the generated deck     |
| 1:04 | Expand and inspect the slides |
| 1:21 | Find export options           |
| 1:43 | Review checklist              |

## Example brief

Enable **Generate Slides (via HTML)** for the agent, then send a request such as:

> Use Generate Slides to create 3 slides for Acme leadership: Q3 results, customer impact, and next steps. Facts: revenue $180k, up 20%; onboarding 8 days, down from 12. Next: expand onboarding training. Use only these facts.

Keep the request self-contained. Include the audience, purpose, slide count, required facts, and source material in the tool's **Query**. Its slide-generation model does not have access to the rest of the conversation.

## Review slides in the viewer

Use the previous and next arrows to inspect every slide, and the expand control for a larger view. Check numbers against the brief, make sure text fits, and confirm that missing owners, dates, or facts have not been invented.

![Review the generated deck in the conversation](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FYioPdSIwoQvDu8FFiC3y%2Fgenerate-slides-deck.png?alt=media)

![Expand the deck to inspect the slide layout](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FaREyNntrTjaGYt1RE9G1%2Fgenerate-slides-expanded.png?alt=media)

![Open the download menu to choose PDF or PowerPoint](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FM0JsttoKqVKFRACQjj2u%2Fgenerate-slides-export-menu.png?alt=media)

The viewer's download menu offers **Slides (.pdf)** and **Slides (.pptx)**. Creating the HTML deck and converting it into a downloadable file are separate operations. Select the format you need and verify that the export completes.

## Create slides from a brief

1. In **Query**, state the audience, presentation purpose, and the points the slides must cover. Include the facts or source content the presentation should use.
2. Run the tool and check **Success**, **Title**, and **Slides**.
3. Review the generated slides for factual accuracy, readable layout, and completeness before sharing them.

**Result:** **Slides** contains the generated HTML presentation and **Title** contains its title.

## Behavior and troubleshooting

The output is HTML. Do not assume it is a PowerPoint file or that an export has occurred. The generated content needs review, especially where the brief leaves facts or conclusions unspecified.

## Inputs

| Field            | Parameter | Description                            |
| ---------------- | --------- | -------------------------------------- |
| Query (required) | `query`   | A tool to create slides from a prompt. |

## Outputs

| Field   | Parameter | Description                                   |
| ------- | --------- | --------------------------------------------- |
| Success | `success` | Whether the slides were created successfully. |
| Slides  | `slides`  | The HTML slides that were created.            |
| Title   | `title`   | The title of the slides.                      |

## Related guidance

[Interface Inputs and Output Mapping](https://docs.stackai.com/technical-reference/interfaces-and-conversations/interface-inputs-and-output-mapping.md)

## Voiceover transcript

Generate Slides turns a written brief into a presentation you can review directly in Stack AI.

Start with an agent that has Generate Slides enabled. In this demo, the tool is already configured. Write a self-contained brief: name the audience, explain the purpose, specify the number of slides, and provide the facts. Here, we ask for three slides for Acme leadership, covering quarterly results, customer impact, and next steps. The brief includes revenue and onboarding figures, so the tool does not need to guess.

The result appears as a slide deck inside the conversation. Check the title and use the arrows to move through the slides. Compare the numbers with the brief. Revenue is one hundred eighty thousand dollars, up twenty percent. Onboarding is eight days, down from twelve. The next action is to expand onboarding training. Details we did not provide, such as an owner or deadline, should remain unconfirmed.

Use the expand control for a larger view, then move between slides to review the layout and wording. Check that text is readable, nothing is clipped, and every required point is covered. Close the expanded view when you are done.

The download menu offers PDF and PowerPoint export options in this viewer. Generating HTML slides and exporting a file are separate steps. We are showing the available options here, without running an export. This recording uses the real frontend with fictional data and simulated tool responses.

Give a complete brief, review every slide, then choose the output format you need.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-tools/content-and-interface-generation/generate-slides-via-html.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
