Free guide

How to use examples in prompts: one, two and three, on a real task

To use examples in prompts, paste in one to three pieces of writing you already like, mark clearly where each starts and ends, and say what to copy and what to ignore. One example fixes the format. Two or three show the model what stays the same and what is allowed to change.

Verified 18 Nov 2026 How this is maintained


Describing a style is hard. Try explaining "friendly but not chatty, short, no apology unless we caused it" to a new colleague and you'll end up handing over an old notice and saying "like this". Models respond to the same shortcut. A good example carries tone, length, layout and vocabulary in one go, and saves you a paragraph of adjectives the model would have read loosely anyway.

What follows takes a single task and runs it four times, with no example, then one, two and three, so you can see what each addition buys.

The task: a maintenance notice

Our task is small and ordinary. Shona coordinates facilities for a university in Swansea. Most weeks she writes a notice telling staff that something will be out of action: a lift, a car park, the hot water in one building. She has written dozens. They follow an unwritten house pattern, and she wants a draft she barely needs to touch.

This week's facts: the lift in the Taliesin Building is out of service on Tuesday from eight until noon for its annual inspection. The stairs and the ramp at the east entrance stay open.

Step one: no example

Starting with no example shows you what the model does by default. Shona types:

Write a short notice to staff. The lift in the Taliesin Building will be out of service on Tuesday from 8am to 12 noon for its annual inspection. Stairs and the east entrance ramp remain open.

What comes back is usually accurate and usually wrong in manner. Expect a subject line she didn't ask for, an opening that hopes everyone is well, an apology for the inconvenience, and a sign-off inviting questions. Nothing in it is false. It just isn't hers. This is the model's average idea of a workplace notice, and no amount of "make it more concise" quite gets it to her pattern.

Step two: one example

Adding one example fixes the format at once. Shona pastes last month's notice and marks it off:

Write a notice to staff in the same format as the example. Copy the layout, length and tone. Do not copy the subject matter.

>

EXAMPLE
Car park B: closed Thursday
Car park B is closed all day Thursday 14th for resurfacing. Car parks A and C are open as usual. Blue badge bays have moved to the front of car park A for the day.
END OF EXAMPLE

>

New facts: the lift in the Taliesin Building is out of service Tuesday, 8am to 12 noon, for its annual inspection. Stairs and the east entrance ramp remain open.

The reply now has a plain heading, three sentences and no pleasantries. It may also contain something odd, such as a line about blue badge bays, or "all day" where she said the morning. With only one example, the model can't tell which features are the pattern and which were particular to car parks. Sometimes it guesses wrong.

The labels matter. Words such as EXAMPLE and END OF EXAMPLE are delimiters: they show where the sample stops and the instruction resumes. Without them a model can blur the two.

Step three: two examples

Two examples let the model compare, and comparison is where the pattern appears. Shona adds a second notice on a different subject: a fire alarm test in the library, lasting ten minutes, with nothing staff need to do.

Whatever the two share now reads as the rule: a heading that names the thing and the day, the fact first, what still works second, any action last. Whatever differs reads as free to vary: the subject, the duration, whether there's an action at all. The stray blue badge line stops appearing, because the second example has no equivalent.

Choose the second example to be unlike the first in the ways you want flexibility. Two car park notices would teach the model that every notice is about car parks.

Step four: three examples

A third example earns its place when there's an edge case the first two don't cover. For Shona that's the notice with bad news in it: the hot water that will be off for two days, with a line saying where the nearest working showers are. It shows the model how the pattern stretches when the disruption is real. The format holds, one sentence of practical help is added, and there's still no grovelling.

Past three, the returns thin out. If the output still misses, look at the examples. Do they contradict each other? Is one of them not actually good?

What each step changes

ExamplesWhat the model picks upWhat tends to go wrong
NoneOnly your instruction, plus its own default styleGeneric tone, extra sections, padding
OneLayout, length and voiceCopies details that belonged only to that example
TwoWhat stays fixed and what may changeNarrow if both examples are too alike
ThreeHow the pattern handles an awkward caseLonger prompt; a weak third example pulls quality down

How to use examples in prompts without being copied

Using examples in prompts well comes down to five habits, and each one answers a mistake from the walkthrough.

Examples aren't always the right tool. For a one-off question, or a task where you want a fresh approach, they only narrow the answer. And they're not a substitute for background: the model still needs to know who the notice is for. Our guides on how to give AI context and how to write a good AI prompt cover that side.

Turning a working prompt into a template

Once three examples reliably produce the right notice, the prompt is worth keeping. Replace this week's facts with a gap, and you have a template: instruction, examples, a slot for new facts. Next week takes thirty seconds. There's more on that in prompt templates for recurring tasks.

Review the examples now and then. If your house style shifts and the samples don't, the template quietly keeps the old style alive.

Where Teach me AI teaches it

Teach me AI covers prompting with examples in the Practitioner level, in the module called Prompting well. Each lesson has a fixed, checked core. The worked example and the practice task around it are written for your kind of work, so a facilities coordinator practises on notices and a recruiter on job adverts. If the task doesn't suit you, "This doesn't fit me" asks for another.

For members on Pro, the Lab is where the technique gets tested. You write your prompt for the lesson's task, examples and all, and an AI coach comments on it: whether the examples are marked off, whether the instruction says what to copy. Lab work is deleted after 24 hours, so copy out anything you want. A prompt worth keeping goes in your toolkit, where you can copy, edit or delete it later.

You can see how a lesson reads before deciding anything. There's a complete sample lesson that needs no account, and the glossary has plain definitions of few-shot and zero-shot prompting.

Before you next ask an assistant to "write it in our style", try this instead:

  1. Find two past pieces you were happy with, on different subjects.
  2. Remove anything private.
  3. Label them, and say what to copy.
  4. Add this week's facts in their own block.
  5. Check the facts in what comes back.

Common questions

What is few-shot prompting?

Few-shot prompting means including a few worked examples in your prompt so the model can follow the pattern. With no examples it is called zero-shot, and with one it is often called one-shot. Nothing is being trained. The model simply reads your examples as part of the prompt and continues in kind.

How many examples should I give?

For everyday writing, two or three is usually enough. One example tends to get copied too closely. Past three or four you are mostly adding length, and a long prompt leaves less room for everything else. If three good examples haven't fixed the output, the fault is probably in the instruction, not the count.

Can I use real emails or documents as my examples?

Only if they contain nothing you wouldn't be allowed to paste anyway. An example is still text you're giving to the tool. Strip out names, addresses, reference numbers and anything confidential, or write a clean example by hand. Your employer's rules on what can go into an AI tool apply to examples just as they do to questions.

Do examples work for images or spreadsheets too?

The idea carries over: showing beats describing. Asking for a formula, you can give two rows of input and the output you'd expect for each. Results depend on the tool, so test on a case where you already know the right answer before you trust it.

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.