Skip to content

Using Examples in a Prompt to Match Your Style

Checked 24 November 2026

Describing a style is hard. "Warm but professional" means different things to different people. A sample is easier. Paste one you like, and the tool has something real to match.

Why examples work

Wikipedia says a prompt may include a few examples for the tool to learn from. Its illustration is a pattern of French words and their English matches, ending on a word left blank. The tool is expected to fill in "dog".1

You're doing the same thing on a business scale. Give two or three finished pieces and ask for a new one in the same pattern.

Anthropic's guidance calls examples one of the most reliable ways to steer a Claude answer's format, tone and structure.2 That's the shape, the voice and the layout.

How to set one up

  1. Pick a real piece of your own writing that you're happy with. An email, a product blurb, a social post.
  2. Paste it into the prompt and label it, for example "Here is a reply I liked:".
  3. Say what to copy. "Match the tone and length, not the details."
  4. Give the new job, with the facts it needs.

Step three matters. Without it, the tool may copy names, offers or phrases from the sample into the new piece. Look for that when you read the result.

Showing the tool a samplePaste a sample you likeSay what to copy from itGive the new taskCompare the result to the sample
Paste the sample, say what it shows, then give the new job.

How many examples

Anthropic suggests including three to five examples for the best results.2 That's for tasks you repeat and want to get right. For a one-off email, one good sample is often enough to start with.

Choosing good samples

Anthropic lists two qualities. Samples should be relevant, close to the real job. They should also be diverse, so the tool doesn't pick up a pattern you never meant.2

In plain terms, that looks like this:

  • If you want complaint replies, use complaint replies, not sales emails.
  • If every sample opens with "Thanks for getting in touch", expect every result to open that way.
  • Include one tricky case, such as a refund you had to refuse.

What to look for in the result

Read it against your sample. Does the length match? Does it open the way you'd open? Does it use words you'd never say?

If it's close but stiff, say so. Try "Make it more like the second example." If it copies too much, tell it to use the sample for style only.

Keep private details out of samples. A real customer email may contain a name, address or order number. Swap those for placeholders such as "[customer name]" before you paste. The page on what not to put in a prompt covers this.

When examples aren't needed

If the task is simple and the format obvious, a sample adds clutter. Use examples when the style is the hard part, and plain instructions when the facts or format are.

Cited material

  1. Prompt engineering, Wikipedia
  2. Prompting best practices, Anthropic