Skip to main content
Back to Blog
few-shot promptingprompt examplesai consistencyprompting habitsshow dont tellai output formatprompt engineeringai writing

Few-Shot Prompting: One Example Beats Five Rules

Stop describing the style you want and show it. This Part 4 guide teaches few-shot prompting: paste one or two examples and get consistent AI output every time.

June 4, 2026
7 min read

TL;DR

The fastest way to fix inconsistent AI output is to show an example instead of describing what you want. This is called few-shot prompting. Paste one or two samples of the style, tone, or format you are after, then ask the AI to match them. One good example teaches more than five sentences of instructions, and it works for emails, summaries, lists, and almost any task you repeat.

Stop describing the style you want. Show the AI one example, and watch it match you.

Info

This is Part 4 of Prompting Pro in 21 Days. New here? Start at Part 1. Up next: Control the Shape of the Answer.

You have a picture in your head of what you want. A certain tone. A certain shape. So you write more and more rules to describe it.

And the AI still misses.

There is a faster way. Instead of describing the result, you show one. This habit is called few-shot prompting, and it is the single biggest upgrade most people skip.

Why Words Fail and Examples Win

Try to describe your own writing voice in words. Go ahead.

"Friendly but professional. Warm, not stiff. Clear and direct, but not blunt." See the problem? Those words mean something different to everyone, including the AI.

A description points at a target. An example is the target.

When you show the AI a finished sample, it does not have to guess what "warm" means to you. It reads the rhythm, the word choices, the punctuation, the length. Then it copies the pattern.

This is how people learn too. You would not explain how to fold a paper airplane in five sentences. You would fold one and let them watch. Same idea here.

In Part 3 we gave the AI a role. Now we give it a model to copy.

See the Difference

Here is a real before-and-after. The task is writing a short, friendly reminder email.

Before

Write a friendly reminder email to a client about an overdue invoice. Keep it polite and professional but not stiff.

After

Write a reminder email to a client about an overdue invoice. Match the tone of this example: "Hi Sam, hope your week is going well! Quick nudge on invoice #204 from last month. No rush at all, but it slipped past its due date and I wanted to flag it. Let me know if you have any questions. Thanks!"

The "before" version leaves "polite and professional but not stiff" up to the AI's imagination. You might get something formal and cold. You might get something too casual.

The "after" version removes the guessing. The AI sees the cheerful opener, the short lines, the "no rush" softener. It produces a new email that feels like the same person wrote it.

You did not write more rules. You wrote one good example.

How to Add an Example in 30 Seconds

The habit is simple. You sandwich an example between your task and your real request.

1

State the task in one line.

2

Add a label like "Match this style:" or "Format it like this example:".

3

Paste one short, finished sample.

4

Give your actual request.

That label matters. It tells the AI what to do with the example. Without it, the AI might think the example is part of the content you want it to use.

Here is the pattern in a copy-paste shape:

code
Task: Write a product description for a coffee mug.

Match the style of this example:
"Meet your new morning ritual. This ceramic tumbler keeps coffee hot for hours and feels great in your hand. Dishwasher safe, drip free, and built to last."

Now write one for a stainless steel water bottle.

Notice the example is short. Three sentences. It shows the punchy opener, the benefit-first lines, the casual close. That is all the AI needs.

Tip

Keep each example tight. One example of three or four lines teaches more than a long sample padded with extra detail. Trim it down to only the pattern you want copied.

One Example for Style, Two for Tricky Cases

Most of the time, one example does the job. Reach for a second one when the task has more than one situation to handle.

Say you are sorting customer messages into "complaint," "question," or "praise." One example only shows the AI how to label one type. Two or three examples show it the full range.

code
Sort each message into: complaint, question, or praise.

Examples:
"My order arrived broken." → complaint
"Do you ship to Canada?" → question
"Love this product, thank you!" → praise

Now sort these:
1. "When will my refund show up?"
2. "Best purchase I made all year."

Each example covers a different case. Now the AI knows what each label looks like. This is where a second and third example earn their keep.

Warning

More examples are not always better. Past two or three, you fill up space and slow things down for little gain. If two clear examples do not work, fix the examples themselves rather than piling on more.

Use Your Own Past Work

Here is the best part of this habit. You already have examples sitting in your sent folder and your documents.

Want the AI to write in your voice? Paste two or three sentences you actually wrote. Then say "match this style." The AI copies your rhythm far better than it can follow a written description of your tone.

code
Here is how I write, for reference:
"Quick update on the project. We hit a small snag with the vendor, but nothing we can't handle. I'll have the fixed timeline to you by Friday."

Using that same voice, write a short message telling my team the launch is moving to next week.

This trick turns every good thing you have ever written into a teaching tool. Keep a few favorites handy.

One caution. Do not paste anything private into a public AI tool. Swap out client names, account numbers, or personal details first. We cover safe verification more in Part 7.

When Examples Are Overkill

This habit is powerful, but it is not for every prompt.

Skip the example when the task is common and the format is obvious. "List five gift ideas for a coffee lover" does not need a sample. The AI already knows what a list looks like.

Use an example whenSkip the example when
You want a specific voice or toneThe task is simple and common
The format is unusual or pickyA plain list or paragraph is fine
You keep getting inconsistent resultsThe first try already nails it
You are sorting or labeling thingsYou are brainstorming open ideas

The rule of thumb is easy. If you have asked twice and still get the wrong shape, stop adding rules. Add an example instead.

Build the Example Into Your Tools

Once you find an example that works, you do not want to retype it every time. That is wasted effort.

This is where saving your best prompts pays off. Our template builder lets you store a prompt with the example baked right in, so the pattern travels with you. You will turn your best prompts into reusable templates properly in Part 8.

You can also paste a prompt with examples into the free prompt scorer to see if it is clear enough before you rely on it.

The point is this. A great example is too valuable to use once and lose.

Try This Today

Pick one task you do often. An email, a summary, a caption, a label.

Find one finished example of it done right. It can be something you wrote or something you admire. Keep it short.

Then build the sandwich: task line, "match this example," your sample, your real request.

Tip

Today's habit: Replace one set of style instructions with one real example. Run it once with your old rules-based prompt, once with the example. Keep the version that wins.

Notice how much shorter the example version is, and how much closer it lands. That gap is the whole lesson. Showing beats telling, almost every time.

Keep going

Next → Part 5: Control the Shape of the Answer

Or see the full Prompting Pro in 21 Days series.

Try it yourself

Build expert-level prompts from plain English with SurePrompts — 350+ templates with real-time preview.

Open Prompt Builder

Ready to write better prompts?

SurePrompts turns plain English into expert-level AI prompts. 350+ templates, real-time preview, works with any model.

Try AI Prompt Generator