Free guide

How to write a good AI prompt: one example, built in four steps

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.

Verified 18 Nov 2026 How this is maintained


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.

PartThe question it answersWhat happens without it
GoalWhat do you want, and who is it for?You get a generic piece for nobody in particular
ContextWhat do I need to know that I can't guess?It invents the details, or leaves them vague
ExampleWhat does good look like to you?The tone and length are its choice, not yours
FormatWhat 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:

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:

  1. The facts. Are both dates right, in both versions? Assistants do get a date wrong between one paragraph and the next.
  2. The promises. Has it offered anything she didn't authorise, such as a refund or a free session? Helpful-sounding additions are common.
  3. 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:

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

Common questions

How long should a good AI prompt be?

As long as it takes to say what a capable stranger would need to know, and no longer. For a quick factual question that's a sentence. For a piece of writing with an audience and constraints it's often a short paragraph or two. Length isn't the aim. Missing context is the usual problem, not too few words.

Do I need to give the AI a role, like "act as an expert"?

It can help a little with tone, but it's the weakest part of a prompt and no substitute for the other four. Telling an assistant it's an expert marketer does less than telling it who the readers are and what you want them to do. If you're short of time, spend it on context.

Does the same prompt work in every AI tool?

Mostly, yes. Goal, context, example and format are about being clear, and clarity carries across assistants. The answers will differ in style and length, and one tool may handle a long example better than another. Expect to adjust a line or two when you move, not to start again.

Should I say please and thank you to an AI?

It makes no real difference to the quality of the answer, so do whatever feels natural. What does make a difference is writing in full sentences as you would to a colleague, because that's how you end up including the detail the assistant needs.

Why does my prompt give a different answer each time?

Because assistants choose their words with a degree of randomness, so the same prompt rarely produces the same text twice. That's normal. A well-specified prompt narrows the range: the answers still vary in wording, but they stop varying in what they cover and how they're laid out.

Go deeper

Modules that teach this properly

More on this

Practical AI skills

Every guide on this topic →

Next step

Find out where you actually stand

A short placement assessment scores you across five skill areas and builds a path through our 18 released modules, skipping whatever you already know. No card needed.

Find your level
When this changes

The facts on this page are re-checked on a schedule. One email a month says what moved in AI tools and the rules, and what it means for you.

Once a month. We’ll email you a link to confirm, and every issue has a one-click unsubscribe. How we use your address.