Hands typing a prompt into an AI chat on a laptop next to a notebook of ideas

How to Write AI Prompts That Actually Work (With Examples)

Quick answer: To write a good AI prompt, tell the AI who the answer is for, exactly what to do, the background it needs, any rules to follow, and what the answer should look like. Use plain, specific language, give an example when you can, then review the answer and ask for changes. Clear context beats clever wording.

Key takeaways

  • A strong prompt covers five things: role or audience, task, context, constraints and format.
  • Specific, natural language works better than “magic” phrases. Examples are one of the most powerful tools you have.
  • Treat prompting as a conversation: ask, review, revise.
  • The same techniques work across ChatGPT, Claude, Gemini and most other AI assistants.

Two people can ask the same AI tool for help and get very different results. The difference is almost always the prompt. Writing better prompts is a skill you can learn in an afternoon, and it pays off every time you use AI.

What is an AI prompt?

A prompt is the instruction or question you give an AI tool. It can be one line (“Summarize this email”) or a full brief with background, examples and rules. The craft of writing prompts that reliably produce good results is often called prompt engineering, though for everyday use it is really just clear communication.

How AI responds to your prompt

Large language models such as ChatGPT, Claude and Gemini generate an answer based on patterns learned from huge amounts of text, guided by everything in your prompt and the conversation so far. Three things follow from that:

  • It only knows what you tell it: anything you leave out about your audience, goal or situation, it has to guess.
  • It takes wording seriously: vague requests get general answers; precise requests get precise answers.
  • It can be confidently wrong: AI can produce believable but false statements (often called hallucinations), so important facts need checking.

The 5-part prompt formula

Most strong prompts contain these parts. You will not always need all five, but checking this list fixes most weak prompts.

Part What it answers Example
Role or audience Who is this for, or who should the AI act as? “I run a small bakery and I’m new to SEO.”
Task What exactly should it do? “Write three headline options for my homepage.”
Context What background does it need? “We sell sourdough and custom cakes in Austin.”
Constraints What are the rules and limits? “Under 60 characters. No exclamation marks.”
Format What should the answer look like? “A numbered list with a one-line reason for each.”

Put together, that becomes: “I run a small bakery in Austin that sells sourdough and custom cakes, and I’m new to SEO. Write three headline options for my homepage. Keep each under 60 characters with no exclamation marks. Return a numbered list with a one-line reason for each.”

12 tips for writing better AI prompts

  1. Be specific: say what you want, how long it should be and what it must include.
  2. Name the audience: “explain to a first-time homeowner” changes vocabulary, depth and examples.
  3. Give context: share the situation, goal and anything the AI cannot know.
  4. Set the tone: friendly, formal, direct, playful, or “like an experienced friend”.
  5. Define the format: bullet list, table, email, outline, code block, word count.
  6. Limit the scope: “focus only on beginners” or “cover the three most common causes” keeps answers tight.
  7. Add constraints: say what to avoid: jargon, filler intros, invented statistics.
  8. Show an example: paste a sample of the style or structure you want and say “match this”.
  9. Use natural language: write as you would brief a capable colleague, not in keywords.
  10. Break big jobs into steps: outline first, then each section, then an edit.
  11. Ask it to ask you questions: end with “Before you start, ask me anything you need to know.”
  12. Iterate: reply with “shorter”, “more examples” or “less formal” rather than starting over.

Types of AI prompts

Type What it is Example
Zero-shot A direct instruction with no examples “Summarize this article in 3 bullet points.”
Few-shot Includes one or more examples of the output you want “Here are two product descriptions I like: [examples]. Write one for [product] in the same style.”
Instructional Step-by-step directions for the task “First list the main points, then group them, then write a heading for each group.”
Role-based Asks the AI to take a perspective “Act as a patient math tutor and explain fractions to a 10-year-old.”
Contextual Provides background material to work from “Using the meeting notes below, draft a follow-up email.”
Meta or system prompt Standing instructions that shape every answer, such as custom instructions or a project brief “In all answers, use US spelling and keep paragraphs short.”

Few-shot prompts are often the quickest way to get a specific style. Standing instructions are useful for anything you repeat, and most major assistants let you save them as custom instructions or in a project.

Before and after: real examples

Writing a blog outline

Weak:

Write an outline about dog food.

Strong:

I'm writing a blog post for first-time dog owners in the US
who searched "how much should I feed my puppy".
Create an outline that answers the question in the first section,
then covers feeding by age, by weight, and warning signs of over- or underfeeding.
Use H2 and H3 headings. Suggest 4 FAQ questions at the end.

Fixing a website problem

Weak:

My website is broken, help.

Strong:

My WordPress site shows "There has been a critical error on this website"
after I updated a plugin. I'm not a developer.
Explain the most likely causes and give me step-by-step fixes,
starting with the safest one. I can access my hosting file manager.

Rewriting text in your voice

Weak:

Make this better.

Strong:

Rewrite the paragraph below so it sounds friendly and direct,
like advice from an experienced friend. Keep it under 80 words,
keep every fact, and don't add anything new.

[paste your paragraph]

How to structure longer prompts

When you paste articles, notes or data, structure makes a big difference:

  • Label each part: use clear headings or tags such as ARTICLE:, NOTES: and TASK:, or XML-style tags like <notes>...</notes>, so the AI knows which text is which.
  • Put long material first, the question last: for long documents, place the material at the top and your instructions at the end.
  • Number your requirements: a numbered list of rules is easier to follow and easier for you to check.
  • Keep it as short as it can be: detail helps when it adds information; padding and repetition do not.

The ask, review, revise loop

Very few first answers are perfect. The fastest route to a great result is a short loop:

  1. Ask: send your best prompt.
  2. Review: check accuracy, tone, length and whether every instruction was followed.
  3. Revise: say precisely what to change, for example “cut the intro, add a real example to point 2, and make it half as long”.

You can also ask the AI to check itself: “Review your answer for factual errors and anything that doesn’t match my instructions, then fix it.”

Tip: Save prompts that work well in a notes file. Over time you will build a personal prompt library for the tasks you repeat. Our list of 25 AI prompts for bloggers is a good starting point.

Common prompting mistakes

  • Being vague about the audience: “Write about SEO” produces generic text; “Explain SEO to a bakery owner” produces something useful.
  • Asking for too much at once: a 3,000-word article in one prompt is usually worse than the same article built section by section. See how to write a blog post with AI.
  • Contradictory instructions: “be detailed but keep it very short” forces the AI to guess.
  • Trusting facts without checking: AI can invent statistics, quotes and sources.
  • Pasting sensitive data: avoid passwords, client details or private information unless you have checked the tool’s privacy terms.

Limitations to keep in mind

Even a perfect prompt cannot fix everything. AI can reflect biases in its training data, can be out of date, and can sound certain when it is wrong. Good prompting reduces these problems but does not remove them. Often the biggest improvement comes not from polishing the prompt but from being clearer about the problem you are actually trying to solve.

Copy-and-paste prompt templates

Meta description

Write 3 meta descriptions for a page titled "[title]".
Audience: [audience]. Each under 155 characters,
include the phrase "[keyword]" naturally, and end with a clear benefit.

More on this in our guide to writing meta descriptions with AI.

FAQ section

List 6 questions people commonly ask about [topic].
Answer each in 2 to 3 plain sentences a beginner would understand.

Explain something simply

Explain [concept] to [audience] in under 150 words.
Use one everyday analogy and one concrete example. No jargon.

Content gap check

Here is my article outline: [outline].
What questions would a reader searching "[keyword]" still have after reading it?
List the gaps and suggest where each one fits.

Frequently asked questions

What are the key parts of a good AI prompt?

Role or audience, task, context, constraints and format. Adding an example of the output you want often improves results further.

What is prompt engineering?

Prompt engineering is the practice of writing and refining instructions so an AI model produces useful, reliable output. For everyday users it mostly means being clear, specific and iterative.

What is the best prompt for ChatGPT, Claude or Gemini?

There is no single best prompt. Clear context, a specific task, constraints and an example work well across all major AI assistants.

How long should an AI prompt be?

As long as it needs to be to give the AI the context and rules it needs, and no longer. One line is fine for simple tasks; complex tasks benefit from a short brief.

Do phrases like “act as an expert” help?

A role can set tone and depth, but it matters far less than clear context and a specific task.

How do I get AI to write in my style?

Paste two or three samples of your own writing, ask the AI to describe your style, then ask it to follow that description. Always edit the result yourself.

Similar Posts