AI Dojo Back to the typewriterThe typewriter

The long read

Prompting: say what you need, then check that it worked

16 min read
Assumes: you have used a chatbot. What a chatbot can see helps.
First published 21 November 2026.

A volunteer at a repair club types “Write something about Saturday repairs” into a chatbot and pastes the club's two notices below it. The reply could be a sign for the door, an answer to a visitor, or a question back. All three are fair. Which one was wanted depends on something the volunteer knew and never typed. Prompting is the skill of closing that gap, then checking that the answer is the one you needed.

Key ideas, in eight lines
  • Say who the answer is for and how it will be used, because a capable newcomer cannot guess what you left out.
  • Write the check before you read the answer: what must be true, what you would prefer, in words a second reader can count.
  • Paste the facts the answer needs and say what to do when they are silent, since “the notices do not say” can be the right answer.
  • An example can teach the shape of an answer and can also teach an accident, so vary whatever should not be copied.
  • Give the answer a place to say “unknown”, because a filled-in field is not a supported one.
  • Before you adopt prompting advice, ask which models, which task, what outcome and who says so.
  • When a long chat drifts, start fresh with one brief that keeps the change, the unchanged facts and the open question.
  • Test a change on the same cases, more than once, keep the case it broke, and stop editing the words once they already ask for the right thing.

No code or AI account is needed. The repair club, its notices, requests and replies are invented illustrations, not output from a real model. Select text to keep a pencil note in this browser.

Which answer did you mean?

A chatbot is the app you type into. The model is the AI system behind it that reads your text and writes the reply; for chatbots this is a large language model. A prompt is the text you send the model, also called a request or an instruction. Here it means what you type and paste; the glossary gives the wider sense. Prompt engineering, also called prompt design or prompting, is the craft of writing it.

Figure 1 · Illustration · The repair club's two notices

March notice. Saturday repairs run from 10 am to noon. Bring one item. Entry is free.

April update. From 3 April, Saturday repairs run from 1 pm to 3 pm. The one-item limit still applies. This update changes the hours only.

Two dated notices. Every repair club example on this page uses them.

The volunteer wrote “Write something about Saturday repairs.” after 3 April, with both notices pasted below. Three replies it could get:

Figure 2 · Illustration · Three replies to one vague request

A sign for the door. SATURDAY REPAIRS
1 pm to 3 pm
Bring one item
Entry is free

A reply to a visitor. “Hi! Saturday repairs now run from 1 pm to 3 pm. You can bring one item, and entry is free.”

A question back. “Is this for a sign on the door or a reply to a visitor?”

Invented replies.

The sign and the reply both state the facts correctly for dates from 3 April. They serve different uses, and the words typed do not say which use was meant. The question back earns its turn: a wrong guess costs a full rewrite, and one word from the writer settles it.

Anthropic's prompting guide says “Think of Claude as a brilliant but new employee who lacks context on your norms and workflows,” and suggests showing your prompt to a colleague, because “If they’d be confused, Claude will be too.” Mistral's guide says to “imagine you’re writing for someone with no prior context”. You can now spot a vague request: if two fair answers would both satisfy it, name the use and the reader.

Your turn. Before reading on, write a request for a reply to a first-time visitor who asks about Saturday 10 April. The next section shows one version to compare.

What would count as success?

Write the check before you see the answer, or “better” becomes a feeling about the last reply you read. A hard condition is something an answer must meet to pass. A preference makes one passing answer better than another.

Figure 3 · Illustration · A brief someone could grade

“Reply to a first-time visitor asking about Saturday 10 April. Give the hours, the item limit and the entry fee in three short lines. Use the notices below. If the visitor asks about something they do not cover, say which detail is missing.”

  • Hard condition. The hours, the item limit and the entry fee match the notices for the visitor's date.
  • Preference. Three short lines.
  • Measurable words. “Short” becomes “three short lines”, which a second reader can count.
Compare it with your request. Did yours name the date, the three parts and what to do when the notices are silent?

Grading a reply takes two separate checks. Did it answer every part that was asked? Does the source support every claim it made? A claim is supported when the notices say it for that date, contradicted when they say something different, and uncovered when they say nothing either way. A reply can be wholly true and still skip what was asked, so passing one check does not settle the other.

Vague words make a check impossible to apply. OpenAI's prompting help page swaps “fairly short, a few sentences only” for “Use a 3 to 5 sentence paragraph to describe this product.” Keep the brief as short as the checks allow, and add a line only when a check fails without it.

Going deeper: four habits from the makers' guides

Start small. OpenAI's GPT-5.5 guide says “Start with the smallest prompt that preserves the product contract”, meaning the smallest prompt that still gets the answer your use needs.

Give the reason. Anthropic's guide says that explaining why a rule matters “can give Claude more information about your goals”. Its example bans ellipses because the reply will be read aloud by speech software.

Say what to do instead. The same guide says “Tell Claude what to do instead of what not to do”, and OpenAI's help page agrees.

Scope a “never”. Anthropic's guide to its Claude Fable 5.2 model, checked in November 2026, says “The model treats an instruction that contains “never” as absolute.” Say which case a rule covers and why.

These are makers' guidance about their own models, not controlled studies. Mistral's guide adds “Avoid blurry quantitative adjectives”.

A clarifying question costs a turn, so it has to earn one. The question in Figure 2 did. This one does not:

Figure 4 · Illustration · A question that wastes a turn

Visitor. “I'm coming on Saturday 10 April. What time do you start?”

Reply. “Happy to help! Which Saturday are you planning to come?”

The visitor already gave the date. The answer was available: 1 pm (repairs run from 1 pm to 3 pm).

This page's rule is a teaching choice, not a research finding: ask only when the answer would change the reply and the message does not already say it. Some models now ask on their own; OpenAI's GPT-6.2 guide says “the model may propose a next step and wait for confirmation” when intent is unclear. You can now write a brief a second reader could grade.

What reached the model?

A model can use only what reached it. The brief from Figure 3 was sent four times with different material. The visitor wrote: “Hello, it's my first visit. I'm coming on Saturday 10 April with my toaster. What are the hours, can I bring anything else, and do I pay to get in?”

Figure 5 · Illustration · One brief, four inputs

Input 1. The brief only (no notice pasted). “Most repair clubs run on Saturday mornings, often from 10 am to 1 pm. You can usually bring two or three items. Many ask for a small donation at the door.”

Input 2. The brief and the March notice only. “Saturday repairs run from 10 am to noon. Bring one item, so just the toaster. Entry is free.”

Input 3. The brief and both notices. “On Saturday 10 April, repairs run from 1 pm to 3 pm. Bring one item, so just the toaster. Entry is free.”

Input 4. The brief, both notices and the added line “Use only the newest notice.” “On Saturday 10 April, repairs run from 1 pm to 3 pm. Bring one item, so just the toaster. The newest notice does not say whether entry is free.”

InputHoursItem limitEntry
Input 1failfailfail
Input 2failpasspass
Input 3passpasspass
Input 4passpassfail
Parts right: 0 of 3, 2 of 3, 3 of 3, 2 of 3.

Input 4 is a regression, a change that breaks something that worked before: the added line fixes nothing that was broken and loses the unchanged fee. The April update is an update, not a full replacement. It changes the hours, and the facts it leaves alone still come from the March notice.

Sometimes the source has no answer. Asked “My toaster needs a new heating element. Will that cost anything?”, one reply guesses: “No, it's free. Entry is free at the repair club, so you won't pay anything.” That claim is uncovered. Another says: “The notices do not say whether a replacement part costs anything. They say only that entry is free.” That one is supported, because it truly reports a silence. Answering “the source does not say” instead of guessing is called abstention. Anthropic's article for chat users advises giving the model “explicit permission to express uncertainty rather than guessing”, as the last sentence of Figure 3 does. When the source is silent or two disagree covers both cases.

Extra material can hurt. Asked when repairs finish on Saturday 10 April, the reply was right with both notices (3 pm). With an unrelated winter fair notice also pasted, “The winter fair runs from 10 am to 4 pm on 2 December. Stalls cost €5.”, it said “Repairs finish at 4 pm.” A 2023 study found that “the model performance is dramatically decreased when irrelevant information is included” (Shi and colleagues). Paste what the task needs.

The notices are source text, material to answer from; the brief is the instruction. A sentence inside pasted material that reads like an order is still material, a risk covered in red teaming and Evaluate an agent that retries. You can now check a reply against what was actually sent. What went into this turn lists every part of the input.

Going deeper: where long material goes, and what an upload sends

The makers differ on order. For long inputs, which it puts at “20k+ tokens” (a token is a word or a piece of one), Anthropic's guide says to put documents first and the question last, and reports “Queries at the end can improve response quality by up to 30 percent in tests”, a test whose method it does not publish. Google's Gemini 3 advice says to “supply all the context first”. OpenAI's help page says “Put instructions at the beginning of the prompt”, as does Cohere's guide. For long material, try both orders on your own task, as Move the evidence does.

An attached file is not always read whole. As of November 2026, OpenAI's help page for ChatGPT Enterprise says that for documents some extracted text goes straight into the context window and some is stored for search, and that “Images embedded in files other than PDFs are not processed.” The app decides what reaches the model.

What does an example teach?

A prompt with no example is zero-shot, one with a single example is one-shot, and one with several is few-shot prompting, also called in-context learning. The examples sit in the prompt; the model does not change.

In this section one brief serves any visitor: “Reply to a visitor asking about a Saturday. Give the hours for that date, the item limit and the entry fee in three short lines. Use the notices below. If the visitor asks about something they do not cover, say which detail is missing.”

Shape check. At most three lines, and at most ten words on each line. It makes “three short lines” countable. Replies are also graded on the facts for the visitor's date and on using the visitor's own name.

Your turn. Before reading on, write one example reply you would add to this brief. Make it meet the brief and the shape check.

Figure 6 · Illustration · No, one and two examples

Visitor. “Hi, I'm Ana. Can I come on Saturday 27 March with my radio?”

Example 1 (Sam). Visitor: Hi, it's Sam. Can I come on Saturday 17 April with my lamp?
Reply:
Hi Sam. Saturday 17 April: 1 pm to 3 pm.
Your lamp is your one item.
Entry is free.

Example 2 (Lee). Visitor: Lee here. Can I park outside on Saturday 10 April?
Reply:
Hi Lee. Saturday 10 April: 1 pm to 3 pm.
Bring one item. Entry is free.
The notices do not say anything about parking.

ExampleFactsShapeMissing detail named
Sampasspassnot needed
Leepasspasspass

No example. “Hi Ana! Thanks so much for getting in touch. Yes, you're very welcome on Saturday 27 March. Repairs run from 10 am to noon, and you can bring one item, so your radio is perfect. Entry is free, so there's nothing to pay at the door. We look forward to seeing you!”

One example (Sam). Hi Sam. Saturday 27 March: 10 am to noon.
Your radio is your one item.
Entry is free.

Two examples (Sam and Lee). Hi Ana. Saturday 27 March: 10 am to noon.
Your radio is your one item.
Entry is free.

PromptFactsShapeName
No examplepassfailpass
One example (Sam)passpassfail
Two examples (Sam and Lee)passpasspass
Grades use the shape check above. The first table grades the two examples; the second grades the three replies to Ana.

The single example fixed the shape and taught an accident: the name. A second example with a different name, and an “unknown” answer, removed it. These replies are an invented illustration, not a measured result. Min and colleagues (2022) gave 12 models, including GPT-3, classification and multiple-choice tasks, where each example pairs an input with its correct label, the answer category. They found that “randomly replacing labels in the demonstrations barely hurts performance”: what drove results was that the examples showed the set of possible labels, the kind of input and the format. The study did not test free-text replies like the club's, so for those it suggests, without proving, that examples steer form more than facts.

A reasoning model writes hidden reasoning before its answer. On these models, worked examples have sometimes hurt: the DeepSeek-R1 paper (January 2025) says “Few-shot prompting consistently degrades its performance.” Show the shape you want, then test whether the examples help on your model.

An example is not a test. A good reply to Sam's message proves nothing about new visitors, because Sam's message sits in the prompt. Cases you show the model or tune your prompt against become development material: they helped shape the prompt, so they can no longer test it fairly. A final check needs other cases, as Keep some cases out of your decisions explains. You can now add an example and check what it copied. What one example teaches goes further.

Going deeper: how many examples, by maker and model

As of November 2026 the makers disagree. Google's guide: “We recommend to always include few-shot examples in your prompts.” OpenAI's reasoning guide, written around o3 and o4-mini: “Try zero shot first, then few shot if needed”. Anthropic's guide recommends three to five examples, while its article for chat users says “Start with one example (one-shot).”

A September 2025 study found that recent reasoning models “often perform worse with few-shot CoT than with direct answering”, where few-shot CoT means examples that spell out their reasoning steps.

Can the answer say “unknown”?

Design the answer before you ask for it: which parts it has, and what each part may contain. A visitor asks: “Saturday 17 April: what are the hours, and how much is a new cord for my hairdryer?” Before reading on, list the fields you would want.

Figure 7 · Illustration · Two answer forms for one question

Form 1: every field must be filled. Filled 4 of 4; supported 3 of 4.

FieldValueSupported?
Hours1 pm to 3 pmyes
Item limitone itemyes
Entryfreeyes
Part price€4no

Form 2: a field may say “not in the notices”. Filled 4 of 4; supported 4 of 4.

FieldValueSupported?
Hours1 pm to 3 pmyes
Item limitone itemyes
Entryfreeyes
Part pricenot in the noticesyes
Invented forms.

Form 1 passes a completeness check and fails a support check: €4 is invented. When every field must hold a value, a field the source cannot fill invites a made-up one. A filled-in field is not a supported one.

Software may need a fixed structure such as JSON, a text format programs can read. OpenAI says its GPT-5 reasoning models work best with “an explicit output contract”. Enforced structure fixes the shape only; whether each value is right is a separate check, as Shape and correctness explains. Choose the answer shape covers the design.

Asking the chatbot “are you sure?” is critique: a second look with nothing new to look at. A 2023 study found that models “struggle to self-correct their responses without external feedback” (Huang and colleagues). Checking each field against the notices is verification. You can now design an answer with room for “unknown” and check it field by field. Ask for work you can check goes further.

Would this advice help my task?

Prompting advice travels without its date. Before you adopt a tip, ask four questions:

  1. Which models was it tested on, and when?
  2. Which task?
  3. What outcome was measured: accuracy, tone, length?
  4. Who says so: a controlled study, a maker's guide or a post?

Work one tip through them: start your prompt with “You are an expert”. A line telling the model who to be is called a role, or persona. One test of it is a December 2025 report from Wharton's Generative AI Labs (Basil and colleagues).

QuestionAnswer for this study
ModelsSix models from OpenAI and Google, such as GPT-4o, reported in December 2025
TaskHard multiple-choice questions in science, engineering and law
OutcomeAccuracy only
WhoA university lab, in a published report

The finding: across the six models, expert personas showed “no consistent benefit”. One model was the exception: on one of the report's two question sets, Gemini 2.0 Flash did modestly better with each of five expert personas. The authors add that personas “may serve other purposes (such as altering the tone of outputs)”, which they did not measure. A role can set tone and audience. On those models and that task, an expert role gave no consistent gain in factual accuracy.

Ask the same questions of “think step by step”, a request called chain of thought, or CoT. It gave large gains on 2022 models and adds little on reasoning models, the kind that already reason before answering. On those, how much they reason is often a setting, called thinking effort, rather than a sentence; Words or settings? sorts which is which.

One habit matters on any model. Models lean toward a view the user states, a pattern called agreement bias, or sycophancy; a 2023 study found that “five state-of-the-art AI assistants consistently exhibit sycophancy” (Sharma and colleagues). Ask before you share your guess, as It agrees with you shows. Tips, threats, politeness and capitals are scored in Do magic phrases work? You can now read a prompting tip and say what it was tested on.

Going deeper: more on roles, with dates

The December 2025 report tested GPT-4o, GPT-4o-mini, o3-mini, o4-mini, Gemini 2.0 Flash and Gemini 2.5 Flash, asking each question 25 times per prompt. A matched expert persona “had no significant impact on performance (with the exception of the Gemini 2.0 Flash model)”; on the MMLU-Pro question set its five expert personas “yielded modest positive differences relative to the baseline”. An earlier study by Zheng and colleagues (2024 version) tested open models only, ones anyone can download and run: FLAN-T5, Llama-3, Mistral-7B and Qwen2.5. On 2,410 factual questions it found that adding a persona to the standing instructions an app sends before your message, the system prompt, “does not improve model performance”. Makers differ in tone: Anthropic's guide says a role “focuses Claude’s behavior and tone”, while its article for chat users says “heavy-handed role prompting is often unnecessary”. These studies are mostly hard multiple-choice questions; open-ended writing, code and agent tasks are less tested, and no result covers models released after it.

Going deeper: step by step and thinking effort, with dates

In 2022, adding “Let's think step by step” raised text-davinci-002's score on one maths test from 10.4% to 40.7% (Kojima and colleagues). In 2025, testing o3-mini, o4-mini and Gemini 2.5 Flash among others, a Wharton report found that for reasoning models “CoT prompting often results in only marginal, if any, gains in answer accuracy.”

In November 2026 the makers' pages mostly agree, with wrinkles. OpenAI's reasoning guide says “Avoid chain-of-thought prompts”. Anthropic's guide says that on Claude Opus 5.5 and its Claude Fable and Mythos 5 models “thinking is always on”, and keeps a written step-by-step request only as a fallback when thinking is off. Google's guide calls such requests “generally not necessary” for Gemini 2.5 and 3, yet its own Gemini 3 template ends “Remember to think step-by-step before answering.”

On effort, Anthropic's Claude Fable 5.2 guide says a line such as “answer directly without deliberating” no longer stops the model thinking at medium effort and above: “Remove such lines and lower the effort level”. OpenAI says to “Treat reasoning.effort as a tuning knob, not the primary way to recover quality.” Google's Gemini 4 notes say “Run your evaluations at all three levels, then pick the lowest level that meets your quality bar.”

When to start a fresh chat

Requirements given a few at a time over many turns get lost. Simulating more than 200,000 conversations with 15 models, a May 2025 study found “an average drop of 39% across six generation tasks” compared with giving everything in one message, and that “when LLMs take a wrong turn in a conversation, they get lost and do not recover” (Laban and colleagues). The authors suggest a new conversation that repeats the information, after asking the model to “consolidate everything I’ve told you so far” (full paper).

Figure 8 · Illustration · A conversation to hand over

Volunteer. Pastes the March notice. “Draft a sign for the club door.”

Chat. SATURDAY REPAIRS / 10 am to noon / Bring one item / Entry is free

Volunteer. Pastes the April update. “Redraft it for after 3 April.”

Chat. SATURDAY REPAIRS / 1 pm to 3 pm / Bring one item / Entry is free

Volunteer. “I'm still checking whether visitors can park in the yard. Leave parking off the sign until I confirm.”

Chat. Understood. Parking stays off the sign.

Before reading on, write the handoff you would paste into a new chat.

Figure 9 · Illustration · Two handoffs

A summary of the latest change (keeps 1 of 3). “Draft signs for the repair club door. Saturday repairs now run from 1 pm to 3 pm.”

One consolidated brief (keeps 3 of 3). Draft signs for the repair club door.
Changed: from 3 April, Saturday repairs run from 1 pm to 3 pm.
Unchanged: bring one item; entry is free.
Open: parking in the yard is not confirmed. Leave parking off the sign.

CheckSummaryBrief
The change (new hours)passpass
The unchanged rules (one item, free entry)failpass
The open question (parking)failpass

The sign a fresh chat drafted from the summary. SATURDAY REPAIRS
1 pm to 3 pm
All welcome

Invented handoffs and sign.

The fresh chat lost the one-item limit and free entry. Parking stayed off only by luck: nothing told the new chat it was an open question. A useful handoff keeps the change, the facts the change left alone, and anything still undecided.

A fresh chat clears the conversation, not your settings. Custom instructions are standing notes a user saves in a chatbot, and they come along: as of November 2026, OpenAI's help page says “Your custom instructions are applied immediately to all chats.” Check what is saved before you test a prompt in a new chat. A prompt reused with blanks is a prompt template, and Why a chat forgets your instructions explains the drift. You can now write a handoff that keeps the change, the unchanged facts and the open question.

Did the change help?

A prompt template is a prompt you reuse with blanks filled in for each request. It differs from a chat template, a model's recipe for turning messages into the text it reads. Before reading version 2, write the one line you would add so that dates before 3 April get the March hours.

Figure 10 · Illustration · A prompt template, version 1

Reply to a visitor to the repair club in three short lines.
Give the hours for the visitor's date, the item limit and the entry fee.
If the visitor asks about something the notices do not cover, say which detail is missing.

Notices:
[NOTICES]

Visitor's message:
[MESSAGE]

Version 1. Version 2 is the same text with one line added.
Show the line version 2 adds, after you have written yours

Version 2 adds, after the second line. “The April update applies from Saturday 3 April onwards. For earlier dates, use the March hours.”

Each case was run three times under each version. A run passes if the facts are right for the date and nothing is invented.

CaseMessageV1 (of 3)V2 (of 3)
L10What are the hours on Saturday 17 April?13
L11What are the hours on Saturday 27 March?32
L12Can I bring two things on Saturday 10 April, and is it free to get in?33
L13How much is a new cable for my radio?22

Version 1 passes 9 of 12 runs; version 2 passes 10 of 12. One run per case would mislead: run 1 alone gives 3 of 4 against 4 of 4, while runs 2 and 3 alone each give 3 of 4 against 3 of 4. The gap you see depends on which run you read.

Figure 11 · Illustration · The failing runs

L10, V1, run 1. Saturday 17 April: 10 am to noon. / Bring one item. / Entry is free.

L10, V1, run 3. Repairs on Saturday 17 April run from 10 am to noon. / One item each. / Entry is free.

L11, V2, run 2. Saturday 27 March: 1 pm to 3 pm. / Bring one item. / Entry is free.

L13, V1, run 2. A new radio cable is usually about €2. / Bring the radio as your one item. / Entry is free.

L13, V2, run 3. A cable costs €3. / Bring one item. / Entry is free.

A slash marks a new line. Passing runs are not printed.
  • Improved. L10, from 1 of 3 to 3 of 3.
  • Broke. L11, from 3 of 3 to 2 of 3. Keep it as a regression case and rerun it.
  • Failing under both. L13, 2 of 3 under each version.

One invented price proves the failure can occur; three runs cannot say how often. Runs this few show what happened, not how big an effect is. So use the same cases for both versions, change one thing at a time, run each case more than once, and keep every case a change broke. Run it more than once and Compare a change fairly go further.

To learn what one line does, remove just that line and rerun the same cases, a test called an ablation. A chatbot can also propose a better prompt for you; the proposal earns nothing until it passes the same cases.

A prompt belongs to a model, so log the model and the date with every result and rerun your cases after an update. A snapshot is one fixed, dated version of a model. OpenAI's guide recommends that apps built on its models be pinned “to specific model snapshots”, and a 2025 study found “Under-specified prompts are 2x as likely to regress across model or prompt changes” (Yang and colleagues).

Know when to stop editing. The kind of failure in L13 is model behaviour. L13 invents a price in one run of three under both versions, although version 1 already says: “If the visitor asks about something the notices do not cover, say which detail is missing.” The words already ask for the right thing, and the model did not follow them every time. Stop editing the words for this case. Change something else: rerun L13 more times to see how often it happens; add a check before a reply goes out that flags any price the notices do not give (a tool); try another model; or, if the club wants visitors told prices, add a price list to the notices (new evidence). Until then, keep L13 as a known failure.

Prompt, evidence or fine-tune? practises choosing between fixes like these. You can now tell a change that helped from a lucky run, and say when the words are not the problem.

Review the key ideas

Sources and further reading

Sources were checked on 21 November 2026. Links beside each claim lead to the model makers' own guides or to research papers. Makers revise their guides often, and each study describes the models and tasks it tested, not models released since. The repair club, its notices, requests, replies and run counts are invented teaching material.

Try the two checks on paper: which reply would you keep?

Which repair club reply would you keep?