AI
All toolsPrompt Template Builder
Build reusable prompt templates with variables and live preview.
Template
Variables found: role, task, tone, audience, format
Rendered prompt
You are a {{role}} expert.
Task: {{task}}
Tone: {{tone}}
Audience: {{audience}}
Respond in {{format}}.Frequently asked questions
- What goes in a good prompt template?
- A clear role or system instruction, well-named variable placeholders for the dynamic parts, explicit output format rules, and one or two few-shot examples when the task is ambiguous.
- Should variables use double curly braces?
- Double braces like {{name}} are the de facto convention because they rarely collide with code or natural prose. Single braces conflict with JSON and f-string syntax inside prompts.
- How do I keep templates from breaking when inputs are long?
- Put the volatile, long content (documents, transcripts) at the end of the prompt and keep instructions at the top. This survives context-window truncation and tends to improve instruction following.