The 4-Part Prompt Formula
Every effective AI prompt has four ingredients. Miss one and your results suffer. Include all four and you'll consistently get useful output.
The formula: Role + Task + Context + Format
The Four Parts
Role
Tell the AI who it should be. This primes it with the right knowledge, tone, and perspective.
- ❌ (no role) — "Explain machine learning"
- ✅ "You are a data scientist explaining concepts to a non-technical marketing team."
Task
Be specific about exactly what you want. Vague tasks produce vague results.
- ❌ "Write something about our product"
- ✅ "Write a 3-sentence value proposition for our product that highlights speed, simplicity, and cost savings."
Context
Give the AI the background it needs. Who is the audience? What's the situation? What constraints apply?
- ❌ "Write a cold email"
- ✅ "Write a cold email to a head of marketing at a B2B SaaS company. We're offering an AI analytics tool. They've never heard of us. Keep it under 100 words."
Format
Tell the AI how to structure the output. Otherwise it guesses — and often guesses wrong.
- ❌ (no format) — "Give me interview questions"
- ✅ "Give me 5 interview questions in a numbered list. For each question, add one sentence explaining what it reveals about the candidate."
Putting It Together
Here's a weak prompt transformed with the formula:
Before: "Help me write a performance review"
After:
"You are an experienced HR manager writing a performance review for a software engineer. The engineer delivered a major feature on time and mentored two junior developers, but struggled with communication in cross-team meetings. Write a balanced, 3-paragraph performance review: start with achievements, address the communication gap constructively, and end with growth goals for next quarter."
The second prompt will produce something you can actually use.
Try It
Take any prompt you've used recently and add all four parts. Notice the difference in output quality.
The rest of this course builds on this formula — you'll learn how to make each part stronger.
Discussion
Sign in to join the discussion.

