What Are Snippets?
A snippet is a named piece of Liquid template that can be included in any prompt:Why Use Snippets?
Consistency
Use the same instructions across all prompts
Maintainability
Update once, applied everywhere
Cleaner Prompts
Keep prompts focused on their specific task
Best Practices
Encode your standards into reusable components
Creating a Snippet
Configure the Snippet
| Field | Description |
|---|---|
| Name | Display name (e.g., “JSON Output Instructions”) |
| Slug | Identifier used in includes (e.g., “json-output-instructions”) |
| Content | The template content |
Slug Requirements
The slug is what you use in{% include %} tags:
- Lowercase letters and hyphens only
- No spaces or special characters
- Must be unique across your tenant
json-output-instructions✅
tone-formal❌
JSON Output (spaces, capitals)❌
tone/formal (special characters)
Using Snippets
Include a snippet in any prompt template:Where Snippets Work
- ✅ Prompt templates
- ✅ Within other snippets (nested includes)
- ❌ Input/output schemas (JSON only)
Example Snippets
JSON Output Instructions
Slug:json-output-instructions
Tone Guidelines
Slug:tone-formal
tone-casual
Error Handling Instructions
Slug:error-handling
Language Instructions
Slug:respond-in-language
Conditional Snippets
Snippets can use the same input variables as your prompt:Nested Includes
Snippets can include other snippets: Snippet:standard-instructions
Managing Snippets
Editing Snippets
- Open Prompt Snippets
- Click the snippet to edit
- Make changes
- Save
Changes to snippets apply immediately to all prompts that include them. Test affected prompts after making changes.
Deleting Snippets
Before deleting a snippet:- Search for its usage in prompts
- Remove or replace the
{% include %}tags - Then delete the snippet
Finding Snippet Usage
To find which prompts use a snippet:- Open the snippet
- Look for a Used By or References section
- Click through to see the prompts
Best Practices
Keep snippets focused
Keep snippets focused
Each snippet should do one thing well. Prefer multiple small snippets over one large one.
Use descriptive slugs
Use descriptive slugs
The slug should clearly indicate what the snippet does:
json-output-instructions not snippet1.Document your snippets
Document your snippets
Add comments in the snippet content explaining its purpose.
Test after changes
Test after changes
When you update a snippet, test the prompts that use it.
Create a snippet library
Create a snippet library
Build a collection of standard snippets for common patterns in your organization.
Common Snippet Patterns
| Category | Snippets |
|---|---|
| Output Format | json-output, markdown-output, plain-text |
| Tone | tone-formal, tone-casual, tone-technical |
| Error Handling | error-handling, validation-rules |
| Persona | expert-analyst, friendly-assistant |
| Constraints | word-limit, brevity, no-speculation |

