Prompt Snippets
Quick Start
1. Create a Snippet via REST API
POST /snippetstore/snippets
Content-Type: application/json
{
"name": "cautious_mode",
"category": "governance",
"description": "Instructs the agent to verify facts before responding",
"content": "IMPORTANT: You must always verify facts before responding. If you are unsure about something, say so explicitly rather than guessing. Never fabricate information.",
"tags": ["safety", "production"],
"templateEnabled": true
}2. Use in a System Prompt
You are a helpful customer service agent for {{properties.company_name.valueString}}.
{{snippets.cautious_mode}}
Always respond in {{properties.preferred_language.valueString}}.How It Works
Auto-Loading
Caching
Name Validation
Valid ✅
Invalid ❌
Template Control
templateEnabled (default: true)
templateEnabled (default: true)Inline Override
REST API Reference
Method
Path
Description
Query Parameters for Descriptors
Param
Default
Description
Model Reference
Example Snippets
Governance — Cautious Mode
Persona — Formal Tone
Compliance — GDPR Notice
Dynamic — Context-Aware Routing
Composing a Full System Prompt
Migration from Legacy Services
Legacy Service
Snippet Replacement
Last updated
Was this helpful?