In this guide
A good AI prompt states the task clearly, supplies the context the model needs, sets limits on the answer, and says what format you want back. If you cover those four things and then check the result, you will get better output than from most clever-sounding templates. This guide gives you a framework you can reuse for almost any task.
The five-part prompt framework
Think of a prompt as five building blocks. You will not always need all five, but running through them stops you from leaving out something important.
- Role: who the model should act as, if that helps.
- Task: the specific thing you want done.
- Context: the background, audience and source material.
- Constraints: length, tone, scope, things to avoid.
- Format: how the answer should be laid out.
You can add a sixth step after the answer arrives: verification, where you check facts, logic and fit with your needs.
Step 1: Start with a clear task
Use an action verb and name the outcome. "Summarise", "compare", "rewrite", "classify" and "draft" are all better starting points than "help me with".
Weak: Marketing plan. Better: Draft a one-page outline of a four-week email campaign to re-engage customers who have not bought in six months.
If a task is large, split it. Asking for a research summary, then an outline, then a draft usually works better than asking for a finished report in one go.
Step 2: Give context the model cannot guess
Models do not know your company, audience or situation unless you say so. Useful context includes:
- Who will read the output and what they already know.
- The purpose: to inform, persuade, decide or teach.
- Source text, data or notes to work from, pasted directly.
- What has already been tried or decided.
When you paste source material, label it clearly so the model can tell instructions from content:
Task: Summarise the notes below in five bullet points for a manager who missed the meeting.
Notes:
"""
[paste meeting notes here]
"""Step 3: Set constraints
Constraints turn a generic answer into a usable one. Common ones are:
- Length: "under 150 words" or "three paragraphs".
- Tone: "formal but warm", "plain English, no jargon".
- Scope: "only use the notes provided", "do not suggest paid tools".
- Exclusions: "do not use bullet points", "avoid buzzwords".
Be careful with long lists of rules. If you give twenty constraints, some will be missed. Keep the ones that really matter.
Step 4: Specify the format
If you need a table of data, a numbered list, a short email or valid JSON, say so. For text you will paste elsewhere, describe the structure exactly:
Return the answer in this format:
Subject: <under 60 characters>
Body: <three short paragraphs>
Next step: <one sentence>Showing a sample of the format is often even clearer. That idea is covered in few-shot prompting explained.
Step 5: Add a role when it helps
A role can set vocabulary and perspective, for example "act as an experienced copy editor". It works best when paired with a concrete task. A role alone, such as "you are a world-class expert", adds little. You can read more in system prompts and role prompting.
A full worked example
Role: You are a customer support lead.
Task: Rewrite the reply below so it is clearer and more empathetic.
Context: The customer was charged twice for one order. Our policy is to refund duplicates within five working days. The customer is frustrated but polite.
Constraints: Under 120 words. Apologise once, do not blame the customer, do not promise anything beyond the policy.
Format: Greeting, two short paragraphs, sign-off.
Draft reply:
"""
[paste draft here]
"""This prompt takes under a minute to write and removes most of the guesswork. For more ready-made patterns, see 20 AI prompt examples for work.
Step 6: Review and iterate
Read the response critically. Ask yourself:
- Did it follow every constraint?
- Are any claims, numbers or names unsupported by what I provided?
- Is anything missing or off-tone?
Then refine with a specific follow-up, such as "shorten the second paragraph and remove the apology in the first line", rather than starting from scratch. If results keep disappointing you, work through common prompt mistakes and fixes. For the bigger picture, start with what prompt engineering is.
A quick checklist
- Is the task a clear action?
- Have I included the context a stranger would need?
- Have I set the few constraints that matter most?
- Have I said what the output should look like?
- Do I have a plan to verify the result?
Our lessons practise this framework through short text exercises, and the curriculum shows where prompting sits among the eight stages.
Key takeaways
- A reliable prompt covers role, task, context, constraints and format, followed by your own review.
- Give the model information it cannot guess, and paste source text rather than describing it loosely.
- Fewer, well-chosen constraints work better than a long list.
- Iterate with specific follow-ups instead of rewriting everything.
- Always verify facts and logic yourself.
Frequently asked questions
How long should a prompt be?
As long as it needs to be to remove ambiguity, and no longer. A simple request may need one sentence, while a complex task may need several paragraphs and source text. Length is not a sign of quality; clarity is.
Should I say "please" or use special phrases?
Politeness does not hurt, but it does not change quality in any reliable way. Clear instructions matter far more than particular words. Be wary of advice that promises a magic phrase.
Can I reuse the same prompt for different tasks?
You can reuse the structure, but the content should change. Keep a template with blanks for task, context and constraints, and fill them in each time. Save versions that work well so you can adapt them later.
This guide is general educational information and is reviewed periodically. AI tools change quickly, so check each vendor's current documentation before relying on specific features or limits.