The Concept
Show examples (few-shot)
We covered the basics of few-shot in Phase 0. Here we go deeper into how to use it in the core toolkit.
The principle: showing beats telling. Instead of describing the pattern you want in words, show the AI 1-3 examples of it. The AI is a pattern matcher — it will reproduce what you show it more reliably than what you describe.
Telling (zero-shot):
Write customer service responses that are empathetic but concise. Acknowledge the problem, explain what we're doing, and offer a timeline. Keep each response under 3 sentences. Don't be overly apologetic.
Showing (few-shot):
Write customer service responses matching these examples:
Customer: My order is 5 days late and no one has responded to my emails. Response: I'm sorry for the delay and the silence — that's on us. I've flagged your order with our shipping team and you'll get a tracking update within 24 hours. If you don't, reply here and I'll personally handle it.
Customer: The shirt I received has a small hole near the collar. Response: Thanks for flagging that — a hole near the collar shouldn't happen. I've already processed a replacement that'll ship today, and you'll get a prepaid return label for the defective one. No need to return it if you'd rather donate it.
Now respond to: Customer: I was charged twice for the same order.
Notice: you didn't have to explain "empathetic but concise" or "acknowledge, explain, offer timeline." The AI saw the pattern in the examples and will match it. The examples do the describing for you.
Ask for a format
Format specification is the single fastest fix for "wrong-shaped" output. The AI defaults to paragraphs. If you want something else, you have to say so.
Format options to specify:
- Bullet list — "Format as a bulleted list with one line per item"
- Table — "Format as a table with columns for [X], [Y], [Z]"
- Email — "Format as an email with subject line, greeting, body, sign-off"
- Numbered steps — "Format as numbered steps, one per line"
- Q&A — "Format as question and answer pairs"
- Outline — "Format as an outline with roman numerals and sub-points"
- JSON-like structure — "Format as a structured list with fields for name, description, and priority"
Bad prompt:
Compare these three project management tools
Good prompt:
Compare these three project management tools (Asana, Monday.com, ClickUp) in a table with these columns: Tool | Best For | Key Feature | Price | Learning Curve. One row per tool. Keep each cell to 1-2 sentences.
The format instruction transforms the output from a rambling comparison into a scannable table you can actually use.
Format alone fixes half of bad output
If you only add one thing to your prompts from this course, make it format specification. "Put this in a table" or "format as an email with a subject line" eliminates a huge percentage of wrong-shaped output. It takes two seconds to add and saves you from rewriting the AI's response into the shape you needed.
Positive instructions vs. "don't" lists
AI follows positive instructions better than negative ones. "Don't use jargon" is less effective than "use plain language a 12-year-old could understand." "Don't be too long" is less effective than "keep it under 100 words."
This isn't a quirk — it's how the prediction engine works. When you say "don't use jargon," the AI has to think about jargon to avoid it, which makes jargon more likely to appear. When you say "use plain language," the AI thinks about plain language, which makes plain language more likely.
Instead of: "Don't write a long intro. Don't use bullet points. Don't be too formal." Use: "Start directly with the main point. Use short paragraphs. Write in a conversational tone."
You need AI to extract key information from 10 customer reviews and present it in a way you can quickly scan. Which prompt produces the most usable output?
The extraction prompt specifies exactly what to extract (four specific fields) AND how to format it (a table with named columns). This means you get a scannable table where each review is one row with consistent fields. The other prompts would produce paragraphs of varying length and structure that you'd have to read through and organize yourself. The format instruction saves you 15 minutes of manual reorganization.