Most disappointing AI answers are not a model problem. They are a prompt problem: the model was never told who the answer is for, how long it should be, or what shape it should take. This guide gives you one reusable template you can paste into any chat model, plus three filled-in examples you can adapt in a minute.
The template
Copy this, replace the brackets, and delete any line you do not need.
Role: You are a [role] with expertise in [domain].
Task: [One clear sentence describing what to produce.]
Context:
- Audience: [who will read or use the output]
- Goal: [what the output is for]
- Background: [facts, data, or text the model must use]
Constraints:
- Length: [word count or number of items]
- Tone: [plain, professional, friendly, technical]
- Must include: [required elements]
- Must avoid: [things to leave out]
Output format: [bullets, table, numbered steps, JSON, headings]
Before you answer: If anything above is unclear or missing, ask me up to 3 questions first. Otherwise, write the answer and finish with a 2-line self-check listing any assumptions you made.
Why each part matters
• Role narrows vocabulary and level of detail. A prompt written for a senior reviewer produces different feedback than one written for a beginner tutor.
• Task should fit in one sentence. If it does not, split it into two prompts and run them in sequence.
• Context is where most prompts fail. The model can only use what you give it, so include the audience, the goal, and the source material.
• Constraints turn a vague idea of good into something you can check: a length, a tone, required items, banned items.
• Output format saves you from reformatting. If the result goes into a spreadsheet or an app, ask for the exact structure.
• Before you answer gives the model permission to ask instead of guess. This single line removes a large share of confident but wrong answers.
Example 1: Product update email
Role: You are a product marketer who writes clear, friendly customer emails.
Task: Write an email announcing our new dark mode feature.
Context:
- Audience: existing free and paid users of a note-taking app
- Goal: get users to try dark mode this week
- Background: Dark mode is in Settings > Appearance. It works on web, iOS and Android. It reduces eye strain at night.
Constraints:
- Length: under 120 words
- Tone: warm, no hype
- Must include: where to find the setting, one clear call to action
- Must avoid: exclamation marks and the word revolutionary
Output format: a subject line, then the body in short paragraphs.
Before you answer: If anything is unclear, ask me up to 3 questions first. Otherwise, write the email and finish with a 2-line self-check listing any assumptions.
Example 2: Code review
Role: You are a senior Python reviewer focused on bugs and readability.
Task: Review the function below and list problems in order of severity.
Context:
- Audience: a junior developer who wants to learn
- Goal: fix real bugs first, style second
- Code:
[paste your function here]
Constraints:
- Maximum 6 findings
- For each finding: what is wrong, why it matters, and a one-line fix
- Must avoid: rewriting the whole function
Output format: a numbered list, then a corrected version of only the lines that changed.
Before you answer: If the code depends on something you cannot see, ask me up to 3 questions first. Otherwise, review it and finish with a 2-line self-check listing any assumptions.
Wrapping pasted material in tags such as or tells the model where your instructions end and your data begins.
Example 3: Extracting data into JSON
Role: You are a data extraction assistant.
Task: Extract the fields below from the text between the tags.
Context:
- Goal: load the result into a spreadsheet
- Text:
[paste your text here]
Constraints:
- Use only information that appears in the text
- If a field is missing, use null
- Do not add commentary
Output format: valid JSON with the keys name, company, email, meeting date (YYYY-MM-DD).
Before you answer: If the text is ambiguous, ask me first. Otherwise, return only the JSON.
How to test and improve a prompt
- Run it three times. If the three results differ a lot, the prompt is under-specified.
- Change one thing at a time. If you edit the role, the constraints, and the format together, you will not know which change helped.
- Add a failure rule. When the model makes a mistake, add one line that forbids it, such as Do not invent statistics.
- Add an example. For stubborn formatting problems, paste one short example of the exact output you want.
- Save versions. Keep a simple log with the prompt, the date, and what you changed. Good prompts are built, not guessed.
Common mistakes
• Stacking tasks. Summarize, translate, and critique in one prompt usually does all three badly.
• Vague quality words. Better, professional, and engaging mean different things to different readers. Replace them with measurable constraints.
• No format. If you do not ask for a structure, you get whatever the model prefers.
• Unmarked pasted text. Without delimiters, instructions inside your document can be mistaken for instructions to the model.
• Only saying what to do. Add what to avoid. A short must-avoid list often fixes more than a long description.
Quick checklist
• Is the task one sentence?
• Does the prompt name the audience and the goal?
• Is all required source material included and marked with tags?
• Are length, tone, and banned items stated?
• Is the output format explicit?
• Did you allow the model to ask questions before answering?
Try it and share your results
Take one prompt you use every week, rewrite it with this template, and compare the old and new outputs side by side. Post your before-and-after in the comments, along with the model you used. The most useful thing the community can share is what changed and why.
Top comments (0)