Chapter 2 · Lesson 2

The Anatomy of a Prompt

Use a simple structure: role, context, task, format, constraints.

6 min · Reviewed July 2026

Scenario

You want a repeatable way to write prompts without memorising prompt hacks.

Use five parts

A strong prompt often has role, context, task, format, and constraints. You do not always need all five, but checking them keeps your request grounded.

Format matters

If you need bullets, a table, JSON, a checklist, or a short answer, say so. Format is part of the work, not decoration.

multiple choice

Which item tells AI what the answer should look like?

Choose the answer that best fits the principle from this lesson.

Takeaway

A prompt is a brief: context plus a clear requested output.