How-to guide
How to Use Role, Context and Format in Your Prompts
Improve any AI answer by assigning a specific role, supplying real context and defining the output format, with a reusable template and a worked example.
- Updated
Once you can write a clear request, the next step is to give the AI a role, enough context and a defined output format. These three habits are the fastest way to improve almost any answer. This guide explains each one with copy-ready templates and a worked example.
What you will learn
- When assigning a role helps, and when it does not.
- How much context to provide and how to provide it.
- How to specify formats so answers are ready to use.
- A reusable template you can save.
Time: 20 minutes. Level: Beginner to intermediate. You need: any AI assistant and a real task to practise on.
Step 1: Assign a role
A role tells the AI which perspective and standards to use. “Act as an experienced copy editor” shapes vocabulary and priorities. A role works best when it is specific and relevant to the task.
| Weak role | Stronger role |
|---|---|
| You are an expert | You are a UK employment-law explainer writing for small business owners (not legal advice) |
| You are a writer | You are a plain-English editor who shortens text without losing meaning |
When a role does not help: for simple factual questions, a role adds little. Do not use a role to claim authority the AI does not have, such as “act as a licensed doctor”.
Step 2: Provide the context it needs
The AI only knows what is in the conversation. Give it the facts, not a description of the facts.
- Paste the material: the text to edit, data to analyse or notes to summarise.
- State the goal and audience: what should happen as a result, and who will read it.
- Add constraints that matter: deadlines, budget, brand rules, what has already been tried.
- Label sections: use headings like Context, Task and Notes so nothing blurs together.
Step 3: Define the output format
Describe the shape of the answer so you can use it without reformatting.
| You want | Say |
|---|---|
| A comparison | A table with columns for option, strengths, weaknesses and best for |
| A plan | A numbered list with an owner and a deadline for each step |
| Text for a tool | Valid JSON with exactly these keys |
| An email | A subject line and a body under 120 words |
Step 4: Add an example if style matters
One short example of the style you want is often stronger than a paragraph of description. Paste a sample and say “match this tone”.
Step 5: Ask it to flag uncertainty
Add a line such as “If you are unsure, or need more information, say so instead of guessing.” This reduces confident but wrong answers.
A reusable template
Fill in the blanks below, or click a highlighted word in the prompt.
Role: [who the AI should act as]
Task: [what to do, as one clear action]
Context: [background, audience and goal]
Material: [paste the text or data]
Format: [how the answer should look]
Constraints: [length, tone, things to avoid]
If anything is unclear or missing, ask me before you answer.
Worked example
Weak prompt: “Write about our new pricing.”
Improved prompt:
Role: You are a customer-communications writer for a small software company.
Task: Write an email announcing our new pricing to existing customers.
Context: Prices rise by 8 percent from 1 January. Existing customers keep the old price until their next renewal. Tone should be honest and respectful.
Format: Subject line plus a body under 150 words with one clear call to action.
Constraints: No jargon, no apologies that sound insincere, do not promise future price freezes.
If anything is missing, ask me before writing.
Common mistakes
- Giving a role but no context.
- Describing the material instead of pasting it.
- Asking for a format and then ignoring it in follow-ups.
- Using a role to get advice that needs a qualified professional.
Checklist
- Role is specific and relevant.
- All needed facts are in the conversation.
- Format is described.
- The AI is told to ask when unsure.
Frequently asked questions
Do I need a role every time?
No. Use one when tone or expertise matters. For simple tasks, a clear task and context are enough.
Why does the AI ignore my format?
Make the format part of the task, give an example and keep the instructions in one place rather than scattered through the conversation.
Next steps
Try the Prompt Improver skill on one of your prompts, then see How to Fact-Check AI Answers. Related terms: system prompt and context window.
Was this helpful?
Thanks — that helps us improve this page.