In this categoryChatGPT ยท 25
ChatGPTBeginner

How to Improve a Prompt by Adding One Example

Show the exact output shape you want with a single worked example so the model stops guessing the format.

6 minBeginner

When a model returns the right content in the wrong shape, the fix is usually not more instructions, it is one example. Showing a single worked input and output pins the format far more reliably than describing it in words. This guide upgrades a vague prompt with one example.

What you need

  • A prompt that returns the wrong format
  • One example of the output you want
  • About 5 minutes

Step 1: Spot the format mismatch

Run the plain prompt and note exactly how the shape is wrong: prose instead of a list, missing a field, or the wrong order.

Chat - vague prompt
You
Turn these notes into action items.
Agent
There are several things to do, including following up with the vendor and updating the deck...
Right idea, wrong shape.

Step 2: Add one worked example

Include a tiny input-output pair right in the prompt. The model copies the structure of your example onto the real input.

prompt
Turn notes into action items. Match this format exactly:

Notes: call Sam, the report is late
Action items:
- [ ] Call Sam (owner: me, due: today)
- [ ] Send the report (owner: me, due: tomorrow)

Notes: {your notes here}
Action items:

Step 3: Confirm the shape holds

Run it again. The output should now mirror the example: checkboxes, an owner, and a due date on every line.

Chat - with example
You
(same notes, example-led prompt)
Agent
- [ ] Follow up with the vendor (owner: me, due: today) - [ ] Update the deck (owner: me, due: tomorrow)
The output now copies the example's structure.
One good example beats five rules
A single concrete example usually constrains format better than a paragraph of instructions. Add more examples only if the first one is not enough.

Result: the model returns the exact shape you want because it had a pattern to copy instead of a description to interpret.

Watch related tutorials

Free weekly email

New guides in your inbox

Fresh step-by-step how-to guides as we publish them. One email a week, no more.

Tags
#prompting#examples#formatting#tips#output