Who can use templates
Templates belong to the workspace, so Explorers and Viewers can use the templates Developers create. Explorers can also start workflows 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.
Creating a template
- On Prompt Templates, click Create template.
- Enter a Template Name, and optionally a Description and an icon.
- Write the Prompt. To add variables, put YAML frontmatter at the top and reference each variable as
{{ name }}; see Custom workflows for the syntax. The page previews the variables as you type. - 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.
- Click Create Template.
Using a template in chat
- In the chat composer, click +.
- Hover over Templates and choose a template. The menu appears only when the workspace has at least one template enabled for chat prompts.
- If the template has variables, fill them in and click Use Template.