> ## Documentation Index
> Fetch the complete documentation index at: https://docs.delphina.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt Templates

> Save prompts your workspace reuses, with variables people fill in each time

A prompt template is a saved prompt that anyone in the workspace can start a chat or workflow from. Templates can include variables, so each person fills in the details, such as a region or a metric, before sending.

## Who can use templates

| Role | Use templates in chat | Create, edit, and delete templates |
| - | - | - |
| **Developer** | Yes | Yes |
| **Explorer** | Yes | No |
| **Viewer** | Yes | No |

Templates belong to the workspace, so Explorers and Viewers can use the templates Developers create. Explorers can also start [workflows](https://docs.delphina.ai/analytics-agent/workflows.md) from templates enabled for workflows.

A Developer can edit or delete only the templates they created. Other Developers see those templates as read-only, but they can duplicate one and edit the copy.

## Finding Prompt Templates

Developers open the **Prompt Templates** page from:

* **Prompt Templates** in the sidebar, once the workspace has at least one template.
* **Prompt Templates** in the user menu, until the workspace has its first template.

The page lists each template with its **Name**, **Description**, **Created by**, **Created**, and **Updated** dates, and whether it appears in **Workflows** and **Chats**.

## Creating a template

1. On **Prompt Templates**, click **Create template**.
2. Enter a **Template Name**, and optionally a **Description** and an icon.
3. Write the **Prompt**. To add variables, put YAML frontmatter at the top and reference each variable as `{{ name }}`; see [Custom workflows](https://docs.delphina.ai/analytics-agent/workflows.md#custom-workflows) for the syntax. The page previews the variables as you type.
4. Under **Availability**, choose where the template appears:
   * **Enable for Chat Prompts** — in the **Templates** menu in the chat composer.
   * **Enable for Workflows** — in the template selector when someone creates a workflow.
5. Click **Create Template**.

To change a template, click it in the list, edit it, and click **Save Changes**. You can also turn **Workflows** and **Chats** on or off from the list, and duplicate or delete a template from its row.

## Using a template in chat

1. In the chat composer, click **+**.
2. Hover over **Templates** and choose a template. The menu appears only when the workspace has at least one template enabled for chat prompts.
3. If the template has variables, fill them in and click **Use Template**.

The finished prompt replaces whatever was in the composer. Edit it if you need to, then send it as usual.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.