How to Write a Good AI Prompt (With Examples)

To write a good AI prompt, be specific about four things: what you want, who it’s for, the tone, and the length. “Write a 200-word email to a client apologising for a late delivery, warm but professional” beats “write an email” every time. Specificity is the whole skill.

The formula: role + task + context + format

PartWhat to includeExample
RoleWho the AI should be“You’re an experienced editor”
TaskThe exact job“Rewrite this paragraph”
ContextDetails that matter“for a beginner audience”
FormatThe shape of the answer“as 5 bullet points”

You don’t need all four every time — but the more you give, the closer the first answer gets.

Before and after

Vague:

Write about dogs.

Specific:

Write a 300-word blog intro about adopting a rescue dog, aimed at first-time owners who are nervous. Friendly, reassuring tone, no jargon.

The second prompt gets something usable immediately. The first gets generic filler you’ll have to redo.

Six techniques that improve any prompt

  1. Give an example. “Rewrite these titles in this style: [paste example].”
  2. Set a length. “Under 150 words” prevents essays.
  3. Assign a role. “As a data analyst, explain…” changes the vocabulary it uses.
  4. Ask it to think first. “List the steps before answering.”
  5. Request options. “Give me five versions” — then pick and refine.
  6. Iterate instead of restarting. Reply with “make it shorter” or “less formal” — follow-ups are cheaper than new prompts.

Fix a bad answer with follow-ups

ProblemSay this
Too long“Cut it to 100 words.”
Wrong tone“Make it more casual.”
Too generic“Add specific examples.”
Made-up facts“Only use what I pasted.”
Wrong format“Redo as a table.”

Treat the first answer as a draft, not a verdict.

Common mistakes

If you’re new to the tools themselves, start with how to use ChatGPT or browse copy-paste prompts you can adapt.

FAQ

What makes a good AI prompt?

Specificity. Name the task, the audience, the tone, and the length. Add an example if you have one.

How long should a prompt be?

As long as it needs — usually two to four sentences. More detail helps up to a point; beyond that, split it into steps.

Why does ChatGPT give me generic answers?

Because the prompt was generic. “Write about marketing” has thousands of valid answers; “Write 3 Instagram captions for a coffee shop’s grand opening” has one good one.

Do better prompts work in Claude and Gemini too?

Yes — role, task, context, and format are model-agnostic. See ChatGPT vs Claude vs Gemini for where each one shines.

Can I reuse prompts?

Absolutely — that’s the point. Save the ones that work and swap the specifics. See the best ChatGPT prompts for a starting set.