Anatomy of a Good Prompt

Break down what makes a prompt effective and learn the key components every prompt needs.

7 min read
3 quiz questions

A good prompt isn't just a question — it's a carefully structured instruction that gives the AI everything it needs to produce exactly what you want. Every effective prompt contains some combination of five core components.

  1. Role: Who should the AI be? (e.g., "You are an experienced tax accountant")
  2. Task: What do you want it to do? (e.g., "Review this expense report")
  3. Context: What background information does it need? (e.g., "This is for a US-based LLC")
  4. Format: How should the output look? (e.g., "Return a table with columns for...")
  5. Constraints: What rules should it follow? (e.g., "Keep the response under 200 words")

Not every prompt needs all five components. A simple question might only need a task. But the more complex your request, the more components you should include.

Bad prompt: "Write about dogs." This tells the AI nothing about what aspect of dogs, for what audience, in what format, or how long. The output will be generic filler. Good prompt: "Write a 300-word blog introduction about why golden retrievers are the best family dogs for first-time pet owners. Tone: warm and encouraging. Include one surprising fact about golden retrievers. End with a question to engage the reader."

The good prompt is effective because it specifies: the task (blog introduction), the topic (golden retrievers for families), the audience (first-time pet owners), the format (300 words, specific ending), and the tone (warm, encouraging).

The single most important rule in prompt engineering is: be specific. Every vague word in your prompt is a decision you're leaving to the AI. Sometimes that's fine — you want the AI to make creative choices. But when you have a specific outcome in mind, spell it out.

Prompt

Vague vs. specific language:

Vague

"Make it better" → "Improve the clarity by shortening sentences to under 20 words and replacing jargon with plain English"

Vague

"Write something professional" → "Write in a confident, formal tone suitable for a board of directors presentation"

Vague

"Give me some ideas" → "Generate 5 specific marketing campaign ideas, each with a tagline, target channel, and estimated budget"

Before sending a prompt, scan it for vague words like "good," "better," "some," "nice," and "interesting." Replace each one with something measurable or concrete.

Prompt Templates

Universal Prompt Starter

A fill-in-the-blank template that covers all five prompt components.

You are a [ROLE] with expertise in [DOMAIN]. I need you to [TASK]. Here's the context: [CONTEXT]. Format your response as [FORMAT]. Important constraints: [CONSTRAINTS].

Prompt Improver

Gets AI to improve your prompts and explain what was missing.

I wrote this prompt but the output isn't what I want:

My prompt: "[YOUR PROMPT]"

The output I got: "[SUMMARY OF BAD OUTPUT]"
What I actually wanted: "[DESIRED OUTPUT]"

Rewrite my prompt to get the result I want. Explain what was wrong with the original.

Test Your Knowledge

Knowledge Check

1 / 3

What are the five core components of an effective prompt?

Key Takeaways

  • Every good prompt combines Role, Task, Context, Format, and Constraints
  • Not every prompt needs all five components — match complexity to the task
  • Specificity is the #1 principle: replace vague words with concrete details
  • The difference between bad and good prompts is usually 30 seconds of extra thought
  • Scan prompts for vague words before sending them