How to write a good AI prompt: say the goal, give the context the assistant can't guess, show an example of what good looks like, and ask for a format. In that order. This guide builds one real prompt a line at a time so you can see what each part changes.
Type "write a notice about the pool closing" into an AI assistant and you'll get a notice. It will be polite, tidy and of no use, because it knows nothing about your pool. The assistant didn't fail. It filled every gap you left with the most average thing it could think of.
A good prompt leaves fewer gaps. There are four parts, they go in a set order, and the quickest way to learn them is to watch one prompt grow.
How to write a good AI prompt: the four parts, in order
A good AI prompt has a goal, context, an example and a format, added in that order. Each part answers a question the assistant would ask you if it could.
| Part | The question it answers | What happens without it |
|---|
| Goal | What do you want, and who is it for? | You get a generic piece for nobody in particular |
| Context | What do I need to know that I can't guess? | It invents the details, or leaves them vague |
| Example | What does good look like to you? | The tone and length are its choice, not yours |
| Format | What shape should the answer be? | You get an essay when you wanted a sign |
Our example throughout: Morag is duty manager at a community leisure centre in Inverness. The main pool is closing for a fortnight for repairs, and she needs to tell members.
Step one: say what you want and who it's for
The goal is one or two sentences naming the thing you want and its reader. Morag's first attempt had the thing but not the reader. Her second:
Write a notice telling our leisure centre members that the main pool will be closed for repairs. The readers are regular swimmers, many of them older, and parents of children in swimming lessons.
What comes back is already better aimed. It's warmer, and it mentions lessons. It also says the pool will reopen "soon" and offers "alternative arrangements", because the assistant has no idea what's true. Naming the reader fixed the voice. It couldn't fix the facts.
Step two: add the context it can't guess
Context is every fact that exists in your head and not in the assistant's. Ask yourself what a temp on their first day would need telling. For Morag:
- The pool closes on Monday 2 March and reopens on Monday 16 March.
- The reason is replacement of the filtration plant.
- The small teaching pool stays open, so children's lessons carry on.
- Adult lane swimming moves to the teaching pool at set times each morning.
- The gym, classes and café aren't affected.
- Members mostly worry about two things: lessons and whether they're paying for something they can't use.
That last line matters as much as the dates. Telling the assistant what readers are anxious about changes what it puts first.
Be careful what context you include. Facts about the closure are fine. A list of members' names and health conditions is not something to paste into an assistant. Our guide on how to give AI context goes further on choosing what goes in.
With this added, the draft has real dates and real arrangements. It's accurate. It's also three times too long and sounds like a council letter.
Step three: show it what good looks like
An example does what adjectives can't. "Friendly but professional" means something different to everyone. A notice you've already written and liked means exactly one thing.
Morag pastes in last winter's short notice about the car park resurfacing and adds:
Here is a notice we sent before that members responded well to. Match its tone and its length. Don't reuse its content.
That final sentence is there for a reason. Assistants lean hard on examples, and without it you can find the car park creeping into the pool notice. Say what to copy and what to leave. Giving one or more examples like this has a name, few-shot prompting, and there's a fuller treatment in few-shot prompting at work.
No example to hand? Describe one: "like a note pinned up by someone who works here, not a press release".
Step four: ask for the shape you need
Format is the part people forget, and it saves the most editing. Morag doesn't need one notice. She needs something for the noticeboard and something that fits in a text message. So she asks:
Give me two versions. First, a noticeboard version: a headline of six words or fewer, the two dates on their own line, then no more than five short sentences. Second, a text message version under 300 characters. Then list any assumption you made that I didn't state.
The closing request is worth adding to almost any prompt. It makes the assistant show where it filled a gap.
The finished prompt
Put together, the four parts read as one message a colleague could act on:
Write a notice telling our leisure centre members that the main pool will be closed for repairs. The readers are regular swimmers, many of them older, and parents of children in swimming lessons.
>
The facts: the main pool closes on Monday 2 March and reopens on Monday 16 March, for replacement of the filtration plant. The teaching pool stays open, so children's lessons continue as normal. Adult lane swimming moves to the teaching pool each morning. The gym, classes and café are unaffected. Members will mainly want to know about lessons and about what they're paying for; on payments, say only that reception can answer questions.
>
Below is an earlier notice members responded well to. Match its tone and length, not its content.
>
Give me a noticeboard version (a headline of six words or fewer, the dates on their own line, at most five short sentences) and a text version under 300 characters. Then list any assumptions you made.
It's longer than "write a notice about the pool closing". It took perhaps three minutes to write. The result needs a light edit, not a rewrite.
Step five: read it, then ask again
The first answer to a good prompt is a draft, and the second message is where much of the quality comes from. Morag reads hers and checks three things:
- The facts. Are both dates right, in both versions? Assistants do get a date wrong between one paragraph and the next.
- The promises. Has it offered anything she didn't authorise, such as a refund or a free session? Helpful-sounding additions are common.
- The assumptions. Does the list at the end include anything untrue?
Then she replies in the same conversation: shorten the headline, put the lessons line second, drop the apology. You don't need a new prompt for that. More on the back-and-forth in how to iterate with AI.
Practising in the Lab
Prompting improves with feedback, and that's what the Lab at Teach me AI is for. On a lesson's practice task you write your own prompt, plan or draft, and an AI coach gives you feedback on it. The task is written around your kind of work, so a leisure centre manager isn't asked to practise on a software launch.
The details, plainly:
- The Lab runs on Claude. That's a practical choice and not a recommendation; the skills apply to any assistant.
- Lab work is deleted after 24 hours. Copy anything you want to keep.
- Prompts worth keeping can be saved to your toolkit, to copy and edit later.
- The Lab is part of Pro. The pricing page has the terms.
Prompting is taught in the module Prompting well, and the first lesson of that module is free. There's also a prompt template library among the free downloads on the Resources page, and a complete sample lesson you can read without an account.
Who this won't suit: anyone hoping for a list of prompts to paste. A borrowed prompt carries someone else's context. The Lab also gives feedback on what you wrote. Checking whether an assistant's answer is true stays with you.
A prompt checklist to keep
- Goal: what is it, and who reads it?
- Context: what would a temp need telling?
- Example: what have I already got that's right?
- Format: what length and shape do I need?
- Ask it to list its assumptions.
- Check every fact and every promise before it leaves you.