Skip to content
mentoor

Topic 1 of 4 · 3 min read

The five parts of a prompt

Goal: Name the five parts of a prompt and spot which one is missing from a real request.

A good prompt is a short brief with up to five parts: the task, the context, the constraints, the format and, when useful, an example. Most weak prompts are not badly worded. They are missing one of these parts, so the model fills the gap with a guess.

Check yourself · 1 of 3

Which of these is the context part of a prompt?

Choose one answer

Why it matters

A chat assistant such as ChatGPT, Claude, Gemini or Copilot does not know your situation. It cannot see your inbox, your boss or the last meeting. When a part is missing, the model does not stop and ask. It picks the most common answer for a request like yours. That is why vague prompts give generic, average text.

The five parts

  1. Task. What should the model do? Use one clear action: summarise, draft, compare, list, rewrite. "Help with my report" is not a task. "Write a 3-sentence summary of this report" is.
  2. Context. What does the model need to know? Who is it for, why do you need it, what has happened so far? Context is the part people leave out most often, because it is already in their head.
  3. Constraints. What limits apply? Length, tone, what to include, what to avoid, which sources to use.
  4. Format. What shape should the answer take? A bulleted list, a table, an email with a subject line, one paragraph.
  5. Examples. What does good look like? One short sample of the style or structure you want often beats a paragraph of description.

Not every prompt needs all five. A quick question needs only a task. A piece of work that someone else will read usually needs at least task, context and format.

Before and after

Before: Write an email about the delay.

The model has a task, but no context, no constraints and no format. It will invent a project, a reason and a tone.

After: Write an email to our customer, Dana at Northwind, telling her the kitchen order will arrive on 14 March instead of 3 March (context). Our supplier missed a shipment. Apologise once, offer free delivery, and keep it under 120 words (constraints). Give me a subject line and the email body (format).

What goes wrong

  • People add more words instead of the missing part. A longer prompt that still has no context gives a longer generic answer.
  • People assume the model remembers. In a new chat, it knows nothing about your earlier work unless your tool has memory turned on, and even then it may not use it.
  • People ask for everything at once. Five tasks in one prompt is not five parts; it is five prompts.

A quick test from Anthropic's guide: show your prompt to a colleague who knows nothing about the work. If they would need to ask questions, the model needs those answers too.

Examples

Same task, context added

Before: Suggest names for my bakery.

After: Suggest 10 names for a small bakery in Lisbon that sells sourdough and Portuguese pastries to young professionals. Avoid puns. Give each name with a one-line reason.

The second prompt adds context (place, products, customers), a constraint (no puns) and a format (10 names, one line each).

The colleague test

Read your prompt as if you were a new colleague on their first day. If you would reply "Who is this for?" or "How long should it be?", add that answer to the prompt before you send it.

Key points

  • A prompt can have five parts: task, context, constraints, format and examples.
  • Weak prompts are usually missing a part, not using the wrong words.
  • Context is the part people leave out most, because it is already in their head.
  • When a part is missing, the model guesses the most common answer instead of asking.
  • Quick questions need only a task; work for a reader needs task, context and format at least.

Common mistakes

  • Making the prompt longer without adding the missing part.
  • Leaving out context because it feels obvious to you.
  • Expecting the model to ask a clarifying question instead of guessing.
  • Packing several separate tasks into one prompt.

Check yourself · 2 of 3

A prompt says only: "Write a product description." What happens most often?

Choose one answer

Check yourself · 3 of 3

Your prompt has a clear task and format, but the answer reads as if it was written for experts. Which part is most likely missing?

Choose one answer

Practice items, not counted towards your mastery.

Start here