AskIt ✍️ Talking to AI Lesson 2
Lesson 2 of 5 · Premium Track

The anatomy of
a perfect prompt

⏱ 22 min 🛠️ Interactive builder 5 components

Now that you know why most prompts fail, let's build a system for writing prompts that don't. Every great prompt — whether it's a one-liner or a paragraph — contains some combination of five components. Learn these five pieces and you'll be able to construct a powerful prompt for almost any situation.


The five components
of a great prompt

These aren't rigid rules — they're ingredients. Not every prompt needs all five. But knowing each one lets you choose deliberately which to include.

1
Role — who should the AI be?
Giving the AI a role dramatically shapes the voice, depth, and perspective of its response. "Act as a senior UX designer" vs "Act as a patient teacher for an 8-year-old" will produce completely different outputs for the same question.
2
Context — what's the situation?
Background information that the AI needs to give you a relevant response. Who are you? What are you working on? What's the goal? What has already happened? The more specific the context, the more tailored the output.
3
Task — what exactly do you want?
The specific action or deliverable. Use a precise verb: write, analyse, summarise, compare, list, explain, create, critique, rewrite. Vague tasks like "help me with" or "tell me about" lead to vague outputs.
4
Format — how should it look?
Should it be a bulleted list, a table, a paragraph, 3 options, a numbered step-by-step guide? Specifying format stops the AI from guessing — and the AI's default guess is often not what you need.
5
Constraints — what are the boundaries?
Word count, tone, what to include or exclude, who the audience is, what style to match. Constraints aren't limitations — they're the guardrails that make outputs immediately usable rather than requiring heavy editing.

Build a prompt
piece by piece

The best way to internalise these five components is to use them. Below is an interactive prompt builder. Fill in each field and watch the assembled prompt update in real time. You can start from scratch or load a template to see how it works.

Load a template to see how the pieces fit together:

Prompt Builder
Assemble your prompt
Each piece you add improves the final result
1 Role (optional)
2 Context
3 Task
4 Format
5 Constraints
Prompt completeness 0 of 5 components
✨ Your assembled prompt
Fill in the fields above and your prompt will appear here, colour-coded by component.

You don't always need
all five

A quick question doesn't need a five-part prompt. The goal isn't to fill out a form every time — it's to know which component is missing when you get a bad response.

Get a vague output? Add more context. Get a wall of text? Add a format. Get something off-tone? Add constraints. The five components are a diagnostic tool as much as a writing framework.

⚡ Quick rule of thumb

For any task that matters — a work email, a presentation, a difficult conversation to plan — spend 60 seconds adding context, format, and constraints before you send. That minute will save you 10 minutes of editing after.

🔑 The power of the task verb

Of the five components, the task verb is the most consistently under-used. Compare: "tell me about marketing" vs "give me 5 specific marketing tactics a solo freelancer can implement this week with no budget, ranked by time-to-result." Same topic. Completely different usefulness.

A formula that
almost always works

If you want one template you can apply to almost any situation, this is it:

📐 The universal prompt template

"You are [role]. I am [brief context about you]. I need you to [precise task verb + specifics]. Present it as [format]. [Key constraints: tone, length, audience, what to include/exclude]."

Key takeaway

Every great prompt is built from the same five pieces. You don't need all five every time — you just need to know which one you're missing.

Mark lesson as complete
PreviousWhat is a prompt?