A prompt is the text you give an assistant. Most disappointing answers come from a missing piece of information, not from a weak model. This lesson gives you a simple structure for prompts that work, and a habit of improving them step by step.
Watch
A 25-minute workshop that builds a prompt step by step from a vague first try to a structured one. The example is a technical task, but the method applies to any prompt.
Why prompts matter
The model sees only what is in the conversation. It cannot see your job, your audience, your company or what you meant. A short vague request forces it to guess, and its guess will be generic. A prompt that supplies the missing pieces lets it be specific.
Think of briefing a capable new colleague who knows nothing about your situation. What would they need to know to do it right the first time?
The five parts of a good prompt
- Task: what you want done, as a clear instruction.
- Context: the background that is not obvious, such as who the readers are and what has already happened.
- Input: the actual material to work on, such as the text, data or error message.
- Constraints: what to include, avoid, or keep within a limit.
- Format: what the answer should look like, such as bullets, a table, JSON or a short paragraph.
Not every prompt needs all five. Check each one and add what the model would otherwise have to guess.
A weak prompt and a strong one
Weak:
Write about our outage.
Strong:
Task: Write a status update about last night's outage.
Context: We run a booking platform used by small clinics. The outage lasted
40 minutes (21:10 to 21:50 UTC) because a database failover failed. No data
was lost. Readers are clinic managers, not engineers.
Constraints: Apologize once, no technical jargon, no blame, under 120 words.
Format: A subject line, then one short paragraph, then one line on what we
are changing.
The second prompt takes a minute longer to write and saves several rounds of fixing.
Be clear and direct
- Say what you want, not only what you do not want. "Write in plain language" works better than "do not be technical".
- Be specific about size and style. "About 100 words" beats "short". "Friendly but professional" beats "nice".
- Give the reason when it helps. "Keep it brief because it goes in a text message" lets the model make good choices you did not list.
- Ask for one thing at a time when quality matters. Do the next step in a follow-up.
Name the audience and the role
Telling the model who the answer is for improves it more than almost anything else: "explain to a finance manager with no IT background" gives a very different answer from "explain to a network engineer".
You can also set a role: "Act as a careful technical editor." A role sets tone and focus. It does not give the model knowledge it does not have, and it does not make false answers true.
Prompting is iterative
The first answer is a draft. Treat the conversation as a loop:
- Read the answer critically.
- Say precisely what to change: "shorter, drop the second paragraph, keep the apology".
- Ask for alternatives when you are unsure: "give me three versions with different tones".
- When it goes off track, start a new chat with a better first prompt instead of arguing in a long thread.
Saying please, shouting in capitals, or promising a tip changes little on current models. Clarity and context do the work. Spend your effort there.
A quick checklist
Before sending an important prompt, ask:
- Would a new colleague understand what is wanted, for whom, and why?
- Is the input included, rather than described?
- Did I say what a good answer looks like?
- Did I say what to avoid?
Resources
The starting page for prompting guidance, with links to the full best-practices guide and an interactive tutorial.
OpenAI's guide to writing instructions, using examples and adding context. Written for developers, readable by anyone.
Google's guidance for Gemini: clear instructions, examples, context and formats.
A hands-on, chapter-by-chapter tutorial with exercises. It was written for older models, so use it for the ideas and the practice rather than for model details.
A free, community-maintained reference of prompting techniques with examples and papers.
Check yourself
- Rewrite a vague prompt you used recently so it has all five parts. Compare the answers.
- Why does naming the audience change the result? Give an example with two different audiences.
- When is it better to start a new chat than to keep correcting the old one?