> For the complete documentation index, see [llms.txt](https://decky.gitbook.io/decky-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://decky.gitbook.io/decky-docs/templates/add-a-dynamic-slide.md).

# Add a dynamic slide

Add a slide that Decky generates each time the Template is used.

<figure><img src="https://558651701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN3Qz33TugJFhuCkpYl2x%2Fuploads%2FQLDHP81vnX6brN3TX4cb%2F%7BB8711810-3576-42F8-AB14-DFE43F53FBF7%7D.png?alt=media&amp;token=08ea6301-cf6e-4199-94db-c25459d09bcb" alt=""><figcaption></figcaption></figure>

You can insert a **Dynamic** slide into the Template structure. Dynamic slides are generated from instructions each time the Template is used. Unlike a source slide, Decky generates it from instructions rather than inheriting it from the source presentation.

When adding a Dynamic slide, provide:

* **Generation prompt:** Instructions describing what Decky should create.
* **Background:** An optional presentation background Decky can use for the slide.

The Dynamic slide is inserted at a defined place in the Template’s slide sequence.

For example: “Create an executive summary slide using the most important customer metrics and outcomes.”

Use a Dynamic slide when it belongs in every presentation and has a consistent purpose. It is also useful when content varies substantially each time, or predefined text slots are too restrictive.

Slotted slides preserve a predefined layout and let Decky fill designated areas. Dynamic slides give Decky more freedom to create the slide from its instructions.

### Related articles

* [Control what Decky can change](/decky-docs/templates/control-what-decky-can-change.md)
* [Add questions and file inputs](/decky-docs/templates/add-questions-and-file-inputs.md)
* [What is a template?](/decky-docs/templates/what-is-a-template.md)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://decky.gitbook.io/decky-docs/templates/add-a-dynamic-slide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
