The four parts of a great prompt

Context, Task, Details and Format — the simple formula behind almost every good result.

Module 2: Prompting fundamentals · Lesson 4 of 23 · 15 min read · Free

A prompt is what you type to the AI. Most disappointing answers come from prompts that are too short: the AI fills the gaps with generic guesses. Give it what a capable new colleague would need, and the answer changes completely.

The formula: Context, Task, Details, Format

The four parts of a prompt
  1. Context — who you are, the situation, who the output is for. “I'm the HR officer at a 40-staff logistics company in Port Harcourt.”
  2. Task — one clear instruction with a verb. “Write a memo announcing our new hybrid work policy.”
  3. Details — the facts it must use, rules, things to avoid. “From 1 December staff can work from home Tuesdays and Thursdays; drivers and warehouse staff are excluded; the reason is fuel costs and traffic.”
  4. Format — length, structure, tone. “Under 200 words, with a subject line, friendly but professional, ending with who to contact.”

You don't always need all four, and the order doesn't matter much. But when an answer disappoints, check which part was missing — it's nearly always context or details.

See the difference

Weak and strong prompts

The strong prompt took 40 seconds longer to write and saved 10 minutes of editing.

“Act as…” — a role helps, a little

Starting with “You are an experienced procurement officer…” can nudge the style and focus of an answer. But a role is no substitute for real context. “You are a world-class marketer” plus nothing else still gets a generic answer. Real facts beat flattering titles.

Check yourself

Answer in your head first, then open each question to see the answer and why.

  1. What are the four parts of the prompt formula in this course?

    • A Context, Task, Details, Format
    • B Hello, Question, Thanks, Goodbye
    • C Role, Emoji, Length, Font
    • D Subject, Verb, Object, Full stop
    Show the answer

    A) Context, Task, Details, Format — Context, Task, Details and Format cover what the AI needs.

  2. An answer is generic and full of [placeholders]. What's most likely missing?

    • A Context and details
    • B A please
    • C Capital letters
    • D A longer role description
    Show the answer

    A) Context and details — Without facts, the AI fills gaps with generic text.

  3. Which is the most useful addition to "Write a marketing plan"?

    • A "for my small-chops business in Ibadan, budget ₦100,000 for December, targeting office workers"
    • B "You are the best marketer in the world"
    • C "Make it good"
    • D "!!!"
    Show the answer

    A) "for my small-chops business in Ibadan, budget ₦100,000 for December, targeting office workers" — Real context beats flattering roles.

More free lessons: What AI assistants are — and why they make mistakes · The main AI tools, and which to use · Break big tasks into steps · Emails, letters and reports · AI for small businesses · Hallucinations: catching made-up facts · Images, voice and video