AI Prompt Builder & Reference
Build prompts live · Reference techniques · Copy anywhere

How to use

Pick the framework that fits your task, fill in the fields, and your prompt builds live in the preview. Blank fields are silently omitted. Copy and paste directly into any AI.

1
Pick a framework
2
Fill the fields
3
Watch it assemble
4
Copy & paste
CO-STAR
Context · Objective · Style · Tone · Audience · Response
Best for: reports, essays, long-form content
Live Preview
Start filling in the fields…

AUTOMAT
Act as · User · Targeted action · Output · Mode · Atypical · Topic
Best for: complex system prompts, API configs
Live Preview
Start filling in the fields…

CRAFT
Context · Role · Action · Format · Tone
Best for: everyday tasks, general-purpose
Live Preview
Start filling in the fields…

RACE
Role · Action · Context · Expectation
Best for: audits, reviews, risk assessments
Live Preview
Start filling in the fields…

RTF
Role · Task · Format
Best for: quick outputs — code, lists, tables
Live Preview
Start filling in the fields…

ROSES
Role · Objective · Scenario · Expected solution · Steps
Best for: workflows, project planning
Live Preview
Start filling in the fields…

CARE
Context · Action · Result · Example
Best for: business comms, persuasive writing
Live Preview
Start filling in the fields…

CRISPE
Context · Role · Instruction · Steps · Personality · Example
Best for: data analysis, detailed reports
Live Preview
Start filling in the fields…

APE
Action · Purpose · Expectation
Best for: simple tasks — start here if unsure
Live Preview
Start filling in the fields…
Technique Reference
12 prompting techniques · hover examples to copy
AI Prompt Engineering Cheatsheet
Beginner

Download the full guide.

A practitioner's reference for getting predictable, high-quality outputs from any large language model.
📥 Download Now
🎯
The Basic Structure
Beginner

The foundation of every good prompt. Context + Task + Format = Quality Output. Get this right before reaching for anything else.

Context: You are a senior Python developer…
Task: Refactor this code to use list comprehensions…
Format: Return only the code block with comments.
  • Always provide relevant context first
  • Be specific about the task — vague in, vague out
  • Define output format explicitly
🎨
Few-Shot Prompting
Beginner

Provide 2–5 input/output examples to pattern-match the model's behavior. Faster than writing detailed instructions for consistent formatting.

Input: "The movie was fantastic!" → Output: Positive
Input: "I hated every minute" → Output: Negative
Input: "It was okay, nothing special" → Output:
  • Use 2–5 examples for best results
  • Keep examples diverse but consistent in structure
  • Include edge cases if your task has them
🧠
Chain of Thought (CoT)
Intermediate

Force the model to show its reasoning before answering. Dramatically improves accuracy on multi-step logic, math, and analytical tasks.

Solve step by step:
"A train travels 120 km in 2 hours. How long to travel 300 km?"

Magic phrases: "Let's think step by step" · "Explain your reasoning" · "Break this down"
  • "Let's think step by step" is a reliable trigger
  • Ask for intermediate reasoning, not just the answer
  • Verify each reasoning step in the output
🎭
Role Prompting
Beginner

Assign a specific expert persona to shape tone, vocabulary, and depth. "Act as a senior X with Y years of Z" outperforms generic requests.

"Act as a seasoned cybersecurity expert with 10 years of penetration testing experience. Assume the reader has no security background."

"You are a skeptical editor reviewing this article for logical gaps."
  • Be specific about expertise level and years
  • State the audience — expert role + lay audience = clear explanations
  • Add behavioral constraints ("be concise", "no jargon")
🔄
ReAct Pattern
Advanced

Reasoning + Acting. Interleave thought and action for tool-augmented workflows. The backbone of agentic AI systems.

Thought: I need to find the current weather.
Action: search_weather[location=London]
Observation: 15°C, rainy
Thought: Now I can make a recommendation.
Final Answer: Bring an umbrella, it's raining in London.
  • Use for tool-augmented / function-calling workflows
  • Structure strictly as Thought → Action → Observation
  • Useful for API integration and multi-step retrieval
📋
Structured Output
Intermediate

Force specific output formats for reliable downstream parsing. Provide the exact schema — don't describe it, show it.

Return ONLY valid JSON. No prose, no markdown fences:
{
  "summary": "…",
  "key_points": ["…", "…"],
  "sentiment": "positive | negative | neutral"
}
  • Provide the exact schema, not a description of it
  • Use "No prose, only JSON" for strict formatting
  • Validate output structure programmatically
🚧
Constraints & Guardrails
Intermediate

Define what NOT to do as clearly as what TO do. Negative constraints narrow the output space and prevent common failure modes.

Rules:
— Do not use technical jargon
— Maximum 3 sentences per section
— Never mention competitor brands
— If unsure, say "I don't know" rather than guessing
— Respond only within the scope of [topic]
  • Use negative constraints sparingly but precisely
  • Set word/character limits to prevent over-generation
  • Define what counts as out-of-scope
🗳️
Self-Consistency
Advanced

Generate multiple independent answers and take the majority vote. Reduces variance on critical decisions where a single run may be unreliable.

"Generate 5 different solutions to this problem, then analyze which is most robust and explain why you chose it."

Or: run the same prompt 3–5× at temperature > 0 and compare outputs manually.
  • Use higher temperature (0.7–1.0) to ensure diversity between runs
  • Ask the model to evaluate its own options
  • Best justified on high-stakes, low-frequency decisions
🌡️
Model Parameters
Intermediate

Control randomness and creativity through sampling parameters. The right temperature is determined by the task, not the vibe.

ParameterLow valueHigh value
TemperatureDeterministic (0.0–0.3)Creative (0.7–1.0)
Top PNarrow focus (0.1)Diverse (0.9)
Max TokensShort answersLong-form content
  • Temp 0 for code/facts; 0.7–0.9 for creative writing
  • Adjust Top P instead of Temperature for finer control
  • Set max tokens to prevent runaway generations
✂️
Delimiters & Separation
Beginner

Use clear delimiters to separate instructions from content. Prevents prompt injection and makes long, multi-part inputs unambiguous.

Summarize the text between triple quotes:
"""
[Your text here]
"""

Or use XML tags:
<article>…</article>
<question>…</question>
  • Triple quotes for long text blocks
  • XML tags for complex multi-part inputs
  • Markdown code blocks for code snippets
🌳
Tree of Thoughts (ToT)
Advanced

Explore multiple reasoning paths simultaneously and backtrack when dead ends are reached. Simulates deliberate planning rather than linear generation.

"Imagine three different experts answering this question. Each expert writes down one step of their thinking, then shares it with the group. All experts proceed to the next step. If any expert realizes they're wrong, they leave the discussion."
  • Best for complex planning and creative problem-solving
  • Simulates multi-agent deliberation in a single prompt
  • Allows exploration, evaluation, and backtracking
⚙️
System Prompts
Intermediate

Set global behavior rules that persist across the entire conversation. The right place to define persona, safety boundaries, and response defaults.

System: You are a coding assistant. Always:
1. Explain the code before writing it
2. Include error handling
3. Add type hints
4. Never use deprecated functions

User: Write a function to fetch user data…
  • Use for persistent behavioral instructions
  • Define scope, persona, and safety limits here
  • Keep system prompts focused — longer ≠ better