AI & LLM
Prompt Template (Reusable) JSON Example
A JSON example of a reusable LLM prompt template — includes the template string with variables, input schema, model parameters, and few-shot examples. Copy-ready for prompt management.
Field Reference
idrequiredstringStable identifier used to fetch the template at runtimeversionrequiredintegerIncremented on each edit so you can pin and roll back promptstemplaterequiredstringThe prompt body with {{variable}} placeholders to interpolatevariablesrequiredarray<object>Declared inputs with types — lets you validate before renderingparametersoptionalobjectDefault model settings (temperature, max_tokens) for this promptVariants
Few-shot templateIncludes example input/output pairs to steer the model's format.
Common Use Cases
- →Versioning and storing prompts outside application code
- →A/B testing prompt variations and rolling back bad changes
- →Sharing reusable, parameterised prompts across a team
promptprompt templateprompt engineeringfew-shotllmprompt management
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
AI & LLMChat Conversation HistoryOrdered messages array with system, user, and assistant roles for LLM chats.AI & LLMLLM Structured Output (JSON Schema)Structured output request with a JSON Schema and the model's schema-valid response.AI & LLMFine-Tuning Dataset Example (JSONL)A single fine-tuning training example in the chat messages JSONL format.