PROMPT ENGINEERING

How to Write a Good AI Prompt: The Complete Beginner's Guide

Most people get mediocre results from AI because they write mediocre prompts. Here's the exact framework for writing prompts that consistently produce output worth using.

Prompt Masterclass Team
Published June 10, 2026 Β· 10 min read Β· 1,387 words

If you've typed a question into ChatGPT and felt underwhelmed by the answer, the problem almost certainly wasn't the AI. It was the prompt.

Most people approach AI tools the way they approach a Google search β€” a short phrase, a vague question, sometimes a single word. That works for search engines because they're pattern-matching against billions of indexed pages. AI language models work differently: they generate a response based on what you gave them. Garbage in, garbage out. Or more precisely: vague in, generic out.

This guide covers the exact framework behind prompts that produce output worth using β€” the kind of output where you think "I would have spent two hours on that" rather than "that's not what I meant."

Why Most Prompts Fail

The gap between a mediocre prompt and a great one is almost never about technical knowledge. It's about specificity.

Consider these two prompts:

Weak: "Write me a cold email."

Better: "Write a cold email from a freelance UX designer to a fintech startup's Head of Product. The email should be under 100 words, reference their recently launched mobile app, and ask for a 15-minute call. Tone: confident and direct, not sycophantic."

The AI generating text from the second prompt doesn't have to guess your audience, tone, format, or goal. Everything it needs is there. The output is immediately usable.

The most common reason prompts fail is omission β€” leaving out the context that would make the output relevant to your specific situation.

The Anatomy of a Good Prompt

Every high-quality prompt has four components. You don't always need all four, but knowing them helps you diagnose why a prompt isn't working.

1. Role β€” Who should the AI be?

Telling the AI to take on a specific role shifts the register, vocabulary, and assumptions it applies. "You are a senior growth marketer at a B2B SaaS company" produces a different answer to "help me with marketing." Not because the AI pretends to have experience, but because the role constraint focuses the framing.

2. Context β€” What's the situation?

Background that the AI couldn't otherwise know. Your industry, your audience, the constraints you're working within, what you've already tried. The more specific and relevant the context, the less the AI has to guess.

3. Task β€” What exactly do you need?

This sounds obvious, but most prompts are too vague here. "Help me" is not a task. "Write a 300-word product description for X, for an audience of Y, optimised for Z" is a task. The task should name the format, the length, the goal, and any constraints.

4. Format β€” How should the output look?

Should the response be bullet points or flowing prose? A table or a numbered list? Under 200 words or as long as needed? Stating the format prevents the AI from making a choice you'd have to override anyway.

Role, Context, Task, Format

Here's the framework applied to a concrete example. Say you need to write a performance review for a team member.

Without the framework:

"Write a performance review for my employee."

With the framework:

Role: You are an experienced engineering manager writing a formal quarterly performance review.

Context: The employee is a mid-level software engineer in their second year at the company. They've been strong on individual delivery but have struggled with cross-team communication and meeting deadlines on collaborative projects.

Task: Write a balanced 200-word performance review that acknowledges their technical strengths, addresses the communication issue constructively, and sets one clear improvement goal for the next quarter.

Format: Two paragraphs β€” first on strengths, second on development areas and goal. Professional tone, direct, no filler language.

The output from the second prompt is ready to send (with minor personalisation). The output from the first is a generic template that requires significant rewriting.

Bad vs. Good: Real Examples

Here are three common prompts and what makes them fail β€” plus the improved version.

Email writing:

  • Bad: "Help me write an email to my client."
  • Good: "Write a follow-up email to a B2B client who hasn't responded to a proposal sent 5 days ago. Tone: friendly but professional. Goal: get a yes/no response within 48 hours. Under 80 words. No subject line needed."

Content creation:

  • Bad: "Write a LinkedIn post about AI."
  • Good: "Write a 150-word LinkedIn post for a product manager explaining one practical way they can use Claude in their daily PRD workflow. Tone: conversational, practical, slightly opinionated. No hashtags. End with a question to drive comments."

Study help:

  • Bad: "Explain photosynthesis."
  • Good: "Explain the light-dependent reactions of photosynthesis in plain English for an A-Level Biology student who understands basic cell structure but hasn't studied biochemistry. Use an analogy. Keep it under 200 words."

In each case, the improvement comes from adding role (implied), context (audience, situation), task specifics (format, length, tone), and format constraints.

5 Common Prompt Mistakes

1. Too short, too vague

One-line prompts without context almost always produce generic, surface-level output. Add at least the audience, the goal, and the format.

2. No output format specified

If you don't say "give me a bullet list" or "write in two paragraphs," the AI chooses. Its default choice is rarely optimal for your use case.

3. Asking multiple unrelated things in one prompt

"Write me a blog post, and also give me 10 headline ideas, and also suggest a content calendar" produces unfocused results for each. Run separate prompts for separate tasks.

4. Describing what you don't want instead of what you do

"Don't make it too formal" is less useful than "casual, conversational tone β€” like you're explaining it to a smart friend." Positive constraints are easier for the model to apply than negations.

5. Giving up after one attempt

The first output is rarely the final output. Treat it as a first draft. Tell the AI what was close and what to change: "The tone is right but the second paragraph is too long β€” cut it to 3 sentences and make the CTA stronger."

Using Variables and Templates

Once you've written a prompt that works well, turn it into a reusable template with fill-in-the-blank variables. Instead of:

"Write a cold email from a UX designer to a fintech startup's Head of Product..."

You write:

"Write a cold email from a {{your_role}} to a {{target_company_type}}'s {{decision_maker_title}}. Mention {{specific_thing_about_them}}. Goal: {{goal}}. Tone: {{tone}}. Word limit: {{word_limit}}."

Now you can reuse it across any industry, audience, or goal by just filling in the brackets. This is how professional prompt libraries work β€” the template is the intellectual asset, and the variables make it infinitely reusable.

All 1,000+ prompts in the Prompt Masterclass library use this variable structure. Every {{double-curly-bracket}} is a specific thing you replace with your real context before running the prompt.

How to Iterate When the Output Is Wrong

Getting a useful output in one shot is possible but not guaranteed β€” even with a well-crafted prompt. Here's how to course-correct without starting from scratch.

If the tone is wrong: "Keep the content but rewrite with a more [specific tone] voice."

If it's too long: "Cut this to [X] words, keeping the key argument and removing the filler."

If it missed the point: "The goal was actually [restate goal more precisely]. Rewrite with that as the primary objective."

If it's too generic: "Make this more specific β€” add a concrete example of [X] and remove any phrases that could apply to any industry."

If you liked part of it: "The opening and closing are right. Rewrite just the second paragraph to be more direct about [specific issue]."

The fastest path to a great output is usually: good first prompt β†’ one focused iteration β†’ done. Three prompts total, not thirty.


The skill of writing good prompts is the same skill as any communication: knowing your audience (the AI), being specific about what you want, and providing enough context for the other party to succeed. It takes a little practice to build the instinct, but the payoff β€” getting usable output in minutes instead of hours β€” compounds fast.

Browse the AI prompt library to see this framework applied across 1,000+ use cases β€” every prompt is a working example of role, context, task, and format in action.

prompt engineeringchatgptclaudebeginners guidehow to
← Back to all posts