Most weak prompts have the same problem: they leave out information the AI needs and then hope it guesses right. A formula fixes that by giving you a quick checklist to run through before you hit enter. You won't need every part every time, but knowing the five parts means you'll rarely forget the one that matters.
Here's the formula we use as the backbone of nearly every prompt on Learn2Prompt:
- Role: who should the AI act as?
- Task: what exactly do you want done?
- Context: what's the situation, and who is it for?
- Format: what shape should the answer take?
- Tone: how should it sound?
The full template
Copy this, swap the bracketed parts, and delete any line you don't need.
Copy-ready prompt
The 5-part template
Now let's look at each part, why it helps, and what it looks like in practice.
1. Role: give the AI a point of view
Telling the AI to "act as" a certain kind of expert nudges it toward the vocabulary, priorities, and level of detail that person would bring. "Act as a patient math tutor" produces something very different from "act as a university math professor", even for the same question.
The role should match the help you want, not just the topic. If you're asking about a car noise, "an experienced mechanic explaining things to a customer with no car knowledge" is more useful than "a mechanic". We go deeper on this in our guide to role prompting.
2. Task: use a clear action verb
The task is the heart of the prompt. Start it with a specific verb: write, summarize, compare, explain, plan, rewrite, brainstorm, check, translate, outline. Then say what the output is for.
Weaker prompt
Stronger prompt
If you have more than one task, number them. "First do this, then this" is easier for the AI to follow than a long paragraph with requests buried inside it.
3. Context: the part most people skip
Context is everything the AI can't know unless you tell it: who the audience is, what your constraints are, what's already happened, and what "good" looks like to you. It's usually the part that makes the biggest difference, and it's the part beginners leave out most.
Useful context often includes:
- Who it's for (your boss, a ten-year-old, customers, yourself)
- Your situation (budget, location, time available, skill level)
- What you've tried already and why it didn't work
- Anything to avoid (topics, ingredients, jargon, a certain tone)
Two or three sentences of context is often enough to move an answer from generic to genuinely useful.
4. Format: describe the answer you want to receive
If you don't specify a format, the AI picks one, and it's often a long block of text with headings you didn't need. Say what you want instead: a bulleted list, a table, a step-by-step plan, a short email, three options to choose from, under 150 words.
Weaker prompt
Stronger prompt
5. Tone: decide how it should sound
Tone matters most when the output will be read by other people. "Professional" is a start, but you'll get closer with combinations like "warm but brief", "firm but polite", "plain English, no jargon", or "upbeat, like a friendly neighbor". If you have an example of writing you like, paste it and ask the AI to match its style; see our guide on giving AI examples.
Putting it all together
Here's the formula used on a common real-world task.
Weaker prompt
Stronger prompt
And here's a second example for something personal rather than practical:
Copy-ready prompt
Formula example: planning a celebration
You don't need all five every time
For a quick fact or a simple request, the formula would be overkill. "What's a good substitute for buttermilk in pancakes?" works fine as it is. Use the formula when the answer matters, when it involves other people, or when your first attempt came back generic.
A good habit: if an answer disappoints you, look at the formula and ask which part you left out. Nine times out of ten, it's context or format. Add it in a follow-up message and you'll usually see the improvement immediately.
A quick memory trick
If five parts feels like a lot, shrink it to one question before you send: "Would a smart stranger know exactly what I want from this message?" If the answer is no, add whatever's missing. That's really all the formula is.
Frequently asked questions
Does the order of the five parts matter?
Not much. The order in the template is easy to remember and reads naturally, but the AI will understand the parts in any order. What matters is that the information is there.
Is "act as" really necessary?
No, it's optional. It's useful when you want a certain kind of expertise or perspective, but for many tasks a clear task plus good context does most of the work.
Does this formula work in both ChatGPT and Claude?
Yes. It's built on general principles of clear communication rather than features of a specific tool, so it works across the major AI chat assistants.
What's the most important part if I only add one?
Usually context. A clear task with no context gets a generic answer; adding who it's for and what your situation is tends to produce the biggest improvement.