Minideas

Idea 12 of 15 · Generative AI

Writing a good prompt

Brief the AI like a new colleague: what to do, why, with what, and in what shape.

InstructionContextInput dataOutput formatAI
1 / 5

The four parts of a clear prompt

Say what to do, why it matters, what to work with, and what the answer should look like.

InstructionContextInput dataOutput formatWhich orders can we ship?Stock check forour online shopOrder 1A × 5B × 3StockA: 8B: 4ordership / restock
2 / 5

The same brief, filled in

Here it is for a stock check. Leave out any part and the AI has to guess.

zero-shotfew-shotTranslate to French:cheese →Sure!In French, cheeseis “fromage”. Youmight also like…Translate to French:sea → mercat → chatcheese →fromageplus extra chatterjust the format shown
3 / 5

Show, don’t just tell

Just asking is called zero-shot. Showing a couple of worked examples first (few-shot) gets the AI to copy the exact format you want.

3 boxes of 12 eggs. 5 broke.How many good eggs?asked straightno stepsto build onanswer: 41?“Let’s think step by step.”3 × 12 = 3636 − 5 = 31answer: 31
4 / 5

Ask it to think step by step

For math and logic, ask it to work through the steps before answering. Since it writes one word at a time, writing the steps first gives it something to build on. This is called chain-of-thought prompting.

313130ask a few timesABCask for optionsAIgive it sourceslet it use tools
5 / 5

More ways to get better answers

Ask a few times and compare. Ask for several options before picking one. Paste in the documents it should rely on. And where the app allows it, let it search or calculate instead of guessing.

Swipe the card, or use the arrow keys.

Go deeper

Each card stack gives you the idea. These open resources go into the detail.