Switch AI
Level 2 · Lesson 4

Anatomy of a prompt

⏱ 8 min read ✦ 30 XP 🧠 3 questions
Reading
Exercise
Quiz
XP

Most prompts are too vague

When people first use AI, they write the way they'd type into a search bar. Short, fragmented, minimal. "Write me a cover letter." "Summarise this." "Give me ideas."

That instinct made sense for Google — keywords work there. But AI isn't retrieving a page. It's constructing a response. The more direction you give it, the more useful that response becomes.

The good news: there's a simple structure behind every strong prompt. Once you see it, you can't unsee it.

The four parts of a strong prompt

Not every prompt needs all four. But knowing what they are — and when to use them — is what separates a mediocre result from a great one.

Role
Who should it be?
Give the AI a perspective to write from. "You are an experienced HR manager…" changes everything about how it responds.
Task
What should it do?
The actual instruction. Be specific about the action — write, summarise, list, compare, rewrite, explain.
Context
What does it need to know?
Background that shapes the response. Who's the audience? What's the situation? What's already happened?
Format
How should it look?
Bullet points, a table, three paragraphs, under 100 words — tell it exactly what you want the output to look like.

See it in action

Here's what a well-structured prompt actually looks like. Hover over each part to see what role it plays.

A real prompt, colour-coded by part
You are a friendly but direct career coach. Write a short LinkedIn summary for me. I'm a graphic designer with 5 years of experience moving into UX. I want to attract product teams, not agencies. Keep it under 80 words, written in first person, and avoid buzzwords.
Role
Task
Context
Format

Compare that to the vague version most people would write:

Without structure

"Write me a LinkedIn bio."

With structure

"You are a career coach. Write a LinkedIn summary for a graphic designer moving into UX. Under 80 words, first person, no buzzwords."

You don't need all four every time

A simple question doesn't need a four-part prompt. "What's the capital of Japan?" is fine as-is. The structure is for when the stakes are higher — a piece of writing, a complex analysis, a specific output format.

Think of it less like a formula and more like a checklist. Before you hit send, ask yourself: does the AI have enough to work with? If not — which part is missing?

The goal isn't longer prompts. It's clearer ones. A precise 30-word prompt with context will always beat a rambling 200-word one without direction.
Try it yourself

Write a structured prompt

Think of something you actually need help with right now — at work, at home, anything. Write a prompt using at least two of the four parts. Then try it in your AI.

Role Task Context Format
Open your AI

Write your prompt above, try it in your AI, then mark it done.

Knowledge check

Three quick questions

1. What are the four parts of a strong prompt?
2. Which part of a prompt tells the AI what perspective to write from?
3. You want your response as three bullet points under 50 words each. Which part of the prompt covers that?
+30
XP Earned
✦ 0 XP total

Lesson complete! 🎉

You now have a framework for every prompt you'll ever write. Next up: the difference between a good and a bad prompt — with examples.