Start from a template, then edit any field:
Your prompt
0/ 100
Saved prompts
5 prompt techniques worth knowing
- Be specific. “Summarize this” → “Summarize this article in 3 bullet points for a busy manager.” Vague prompts get generic answers.
- Give context. Say who the answer is for and why you need it. The same question deserves a different answer for a 10-year-old and a senior engineer.
- Few-shot examples. Showing one to three examples of the output you want is often more effective than describing it.
- Step-by-step reasoning. Asking the model to work through a problem before giving its final answer (chain-of-thought) improves maths, logic and planning tasks.
- Specify the format. Ask for a table, JSON, numbered steps or a word limit so the answer is ready to use.
Then iterate: read the answer, find what's missing, and add that to the context or constraints. Prompting is a conversation, not a single shot.
The anatomy of a good prompt
- Role — who the AI should act as (“an experienced Python tutor”).
- Task — one clear instruction with an action verb.
- Context — who it is for and why; the model can't read your mind.
- Input — the text, code or data to work on, clearly separated.
- Output format — bullet list, table, JSON, word limit.
- Constraints — what to avoid or always do.
- Examples — one to three samples of the answer you want (few-shot prompting).
Why the tags?
Wrapping parts of the prompt in simple tags like <context> and <input> helps the model tell your instructions apart from the material it should process. Claude in particular is trained to pay attention to XML-style tags, and they work well with ChatGPT and Gemini too.
Everything you type stays in your browser. Saved prompts are stored only on this device.
More Learn AI
🔤AI TokenizerSee how GPT models split text into tokens
📚AI/ML Glossary & Quiz100+ AI terms explained simply, with flashcards and a quiz
🧠Neural Network PlaygroundTrain a real neural network in your browser and watch it learn
⛰️Gradient Descent VisualizerWatch SGD, Momentum, RMSProp and Adam race to the minimum
🎯K-Means Clustering VisualizerStep through k-means, k-means++ and the elbow method