Writing prompts
8 minAfter this lesson you can turn a one-line prompt into one with a task, context, an example and a format, check it against any framework, and test it on three inputs.
Lesson video
Tastebud · 8:19 · Captions on screen
A clear prompt states the task, gives context, shows an example and names the format, so the model guesses less.
- Why. A model fills each gap with the most common choice it saw. Leave out the delay, the reader or the length, and you get a message any app could send.
- Real example. Text to image turns the four parts into controls. The prompt box holds task and context, Style Reference an example image, and Aspect ratio and Content type the format. (Adobe Firefly, Nov 2026)
- When to break it. Gmail's Help me write needs only one line, because it supplies the rest: details from other emails (for personal accounts, US only), and Formalize, Friendly and Shorten for format.
- Common mistake. Adjectives and a grand title, not facts. 'You are a world-class copywriter. Make this notification engaging.' gives ChatGPT a role and mood, but no delay, reason or length.
Our take. A prompt is a design brief and fails like one: adjectives instead of facts, no example, no format. Frameworks mostly relabel the same four parts. The bigger job is building them into the product, so users never type them.
Context means facts the model can't know
A fact only you have, like the 12-minute delay, removes a guess. An adjective like 'engaging' leaves the guess, because the model picks its own idea of engaging. Ask for what you want, since a list of don'ts still leaves it guessing.
- 'Make it engaging.' The model picks its own idea of engaging.
- 'Be professional yet friendly.' Every app says this about itself.
- 'Don't be boring.' It says what to avoid, not what to write.
- The order is 12 minutes late because of heavy rain.
- It must fit in 60 characters.
- People can tap to track their rider live.
Frameworks rename the same four parts
A prompt framework is a named checklist of prompt parts. CARE asks for context, ask, rules and examples. CO-STAR asks for context, objective, style, tone, audience and response. Draft in plain sentences first, then use one to spot what's missing.
CARE and CO-STAR ask for the same four parts
- Task. CARE calls it Ask. CO-STAR calls it Objective.
- Context. Context in both. CO-STAR adds Audience, which is context about who reads the reply.
- Example. CARE's Examples. CO-STAR has no slot for them, so add them anyway when tone or length matters.
- Format. CO-STAR's Response, with Style and Tone for how it sounds. CARE puts all of this under Rules.
Test a prompt on three different inputs before you trust it
The same prompt can give a different reply each time you run it, so one good answer can be luck. A prompt earns trust on three different orders, one of them run twice, with one change at a time.
One good reply can be luck, so a prompt earns trust on three inputs
- First run looks great. The same prompt can answer differently next time, so one good reply proves little. Pasting it into the design file now trusts luck.
- Try two other late orders. Say a stuck rider and a missing item. Different inputs show whether rules like the 60 characters still hold.
- Run the first order again. A repeat shows whether the good reply comes back. Ten runs of one order tell you nothing about other orders, and in the live app nobody picks the best of ten.
- Change one thing at a time. When a run breaks a rule, change one part of the prompt and test again, so you know which change helped.
- Now trust it. It held on different orders and on a repeat. That's when it goes into the design file.
Try it
Weak prompt, strong prompt, same task
Say you write Blinkit's push notifications, and heavy rain has slowed every rider. Before you flip, list what the weak prompt leaves the model to guess. Then compare the replies and count their characters.
- Write a notification for a late order.
- Subject: Late Order Notification Dear [Customer's Name], We hope this message finds you well. I am writing to inform you that your recent order has been delayed due to unforeseen circumstances beyond our control. We apologize for the inconvenience and appreciate your understanding during this time. Please be assured that we are taking all necessary steps to expedite the process as soon as possible. Your satisfaction is important to us, so please let us know if there is anything specific you would like us to do in response to this delay. Thank you for choosing our products/services. If you have any questions or need further assistance, feel free to contact us at [Your Contact Information]. Best regards, [Your Full Name…
Recorded from Qwen2.5-1.5B-Instruct, a small open model, on 26 Nov 2026.
- Only the task. The model has to guess the app, how late, why, the length and the voice.
- Check the reply. Does it say how late the order is, and does it fit in 60 characters?
Quick check
Your prompt for empty-state copy gives sharp copy for the Orders screen and bland copy for Saved addresses, Coupons and Payments. What do you try first?
Watch next
Watch it for One real prompt built up in parts, the task and its background first, then examples, reminders and the format of the reply.
Watch it for The four parts of CARE, and how each one turns a vague request into one the model can act on.
Connects to: 3.1 What an AI model is · 3.4 How LLMs are trained · 10.1 Designing AI input · 8.5 Writing a design brief · 14.6 Polishing a demo
Sources · checked Nov 2026
- Claude Docs: Prompting best practicesBrief the model like a brilliant new employee who lacks context; be specific about output format and constraints; examples steer format, tone and structure and should vary so the model doesn't pick up unintended patterns; XML tags keep instructions, context, examples and inputs apart; a one-sentence role focuses behaviour and tone; say what to do instead of what not to do
- OpenAI API docs: Prompt engineeringFew-shot examples with a diverse range of inputs; model output is non-deterministic; build tests that measure prompt behaviour as you iterate
- OpenAI Help Center: Understanding and counting tokensA token can be a character, part of a word or a whole word; in English 1 token is about 4 characters
- Nielsen Norman Group: CARE, Structure for Crafting AI Prompts (Kate Moran, 24 May 2024)CARE's four parts: Context (describe the situation), Ask, Rules (constraints), Examples
- GovTech Singapore: Mastering the art of prompt engineering with Empower (3 Apr 2025)CO-STAR's six parts: Context, Objective, Style, Tone, Audience, Response (the format of the reply)
- Google Blog: 5 tips for writing great prompts for Gemini in the Workspace side panel (29 Jul 2024)A third framework with the same parts (persona, task, context, format), behind the point of view that named frameworks mostly relabel the same few parts
- Adobe: Generate images from text in Adobe FireflyText to image: the prompt box, the Generate button, Aspect ratio, Content type (Photo), and Style Reference, which influences the look and feel of the images
- Gmail Help: Draft emails with Gemini in GmailHelp me write: a prompt in the prompt bar, then Create; it takes details such as flight times from other emails and Drive files and lists them under Sources; Formalize, Friendly and Shorten in the prompt bar; personal accounts get this in the US only
- App Store (India): Blinkit: Groceries & moreBlinkit delivers groceries, and people can track an order from payment to delivery