How to Write Better AI Prompts: A Practical Guide With Examples

How to write better AI prompts for ChatGPT, Claude and Gemini: a five-part prompt structure, copy-paste examples, style instructions and mistakes to avoid.

By PromptWises Editorial Team Published Updated 7 min read
Watch the 1-minute video summary on the PromptWises YouTube channel

PromptWises is reader-supported. Some links may earn us a commission at no extra cost to you. This never affects our ratings or recommendations.

To write better AI prompts, give the model what you would give a capable new colleague: the context, one clear task, your constraints, an example of what good looks like, and how you will judge the result. That five-part structure works in ChatGPT, Claude and Gemini alike, and it fixes most disappointing answers without any magic phrases. Anthropic’s own prompting guide puts it the same way: treat the model as “a brilliant but new employee who lacks context on your norms and workflows” (Claude prompting best practices).

Most people type into an AI assistant the way they type into a search box, short and vague, then judge the tool by the mediocre answer. This guide gives the structure, the habits that matter and prompts you can copy.

The five-part prompt

Every strong prompt we write contains some version of these five parts. You will not always need all of them, but when an output disappoints, one of them is usually missing.

  1. Role and context. Who is the model acting as, and what is the situation? “You are editing a newsletter for small-business owners who are not technical.”
  2. Task. The single thing you want done, stated as a verb. “Rewrite the draft below.”
  3. Constraints. Length, format, tone, what to avoid. “Under 300 words. Plain English. No bullet points. Do not add new claims.”
  4. Example or reference. A sample of the output style, or the source material. “Here is a paragraph in the voice I want: …”
  5. Definition of done. How you will judge the result. “A reader should be able to explain the change to a colleague in one sentence.”

Here is the whole thing assembled:

You are editing a weekly newsletter for small-business owners who are not technical.
Rewrite the draft below so it is under 300 words, in plain English, with no bullet points.
Do not add claims that are not in the draft.
Match the voice of this sample paragraph: [paste sample]
Done means a reader could explain the main change to a colleague in one sentence.

Draft:
[paste draft]

That takes 30 seconds longer to write than “make this better” and produces a result you can use.

Give context before the task

Models answer the question you asked, not the one you meant. If you ask “is this a good headline?” with no context, you get generic advice. If you say “this is for a LinkedIn post aimed at CFOs, the goal is replies not clicks”, you get a useful critique. Background, audience and goal should come before the instruction, and it helps to say why a constraint matters (“keep it under 100 words because it will be read on a phone”). Anthropic notes that explaining the motivation behind an instruction helps Claude give more targeted responses.

One exception to “context first”: when you paste a long document, put the document at the top and your question at the end. Anthropic reports that queries placed after long inputs can improve response quality by up to 30 percent in its tests, especially with several documents, and Google’s Gemini prompting strategies give the same advice: supply the context first and put your instructions or question at the very end.

State the format explicitly

If you want a table, ask for a table and name the columns. If you want prose, ask for “flowing paragraphs”. If you want JSON, give the exact shape. Assistants default to headers and bullets because they are safe; you have to opt out.

Phrase format instructions as what to do rather than what to avoid. Anthropic’s guide suggests replacing “Do not use markdown” with “Your response should be composed of smoothly flowing prose paragraphs”, and notes that the style of your prompt rubs off on the answer: a prompt full of bullet points invites bullet points back. The same habit works in ChatGPT and Gemini. Our ChatGPT vs Claude comparison covers how each one’s default writing style differs, and our ChatGPT vs Claude vs Gemini hub helps you pick one of the three.

Show, do not just tell

One good example beats three paragraphs of description. If you want emails in your voice, paste two emails you actually sent. If you want a report structured a certain way, paste a previous report. This is the single highest-leverage technique in the guide, and the least used.

Two refinements help. Mark examples clearly so the model does not mistake them for instructions; Anthropic recommends wrapping them in tags such as <example>, though a plain “Example:” heading works in any assistant. And vary them: Anthropic suggests three to five examples, and OpenAI’s prompt engineering guide recommends showing “a diverse range of possible inputs with the desired outputs”, because a single example tends to be copied too literally. Google goes furthest, recommending that you always include examples.

Use the reasoning setting on hard problems

The old trick of adding “think step by step” matters much less than it did. Current models reason before answering when a question is hard, and each assistant gives you a dial instead:

  • ChatGPT: a Thinking slider for GPT-6 (Instant, Medium, High, Extra High, Pro); the top levels depend on your plan.
  • Claude: on Opus 5.5 and the newer Fable 5.2, thinking is always on and adaptive, so the model decides how much to think from the question and the effort setting. Which models you get depends on your plan; our Claude pricing guide breaks that down.
  • Gemini: Low, Medium and High thinking levels on every plan, defaulting to Low if you do not choose (Google: Gemini models).

For analysis, decisions and anything with numbers, choose a higher level rather than writing magic words. OpenAI’s guide adds that reasoning models generally do better with high-level guidance than with scripted steps, so state the goal and the constraints and let the model plan.

What still helps is asking for the working you want to see: “List the three main trade-offs and the assumption behind each, then give a recommendation.” That makes the answer easier to check, and checking is the point.

Iterate instead of restarting

Your first output is a draft. Instead of rewriting the whole prompt, give feedback the way you would to a person: “Good, but the second section is too long and the tone drifted formal. Tighten it and keep the earlier voice.” Assistants are very good at targeted revision, and a conversation of three short corrections usually beats one enormous prompt.

Set up persistent instructions

Anything you find yourself typing every time belongs in a persistent setting:

  • ChatGPT: custom instructions (Settings, then Personalization on web and desktop; Customize ChatGPT in the mobile apps) apply to every chat; Projects add their own instructions and files, which override your global instructions inside that project. Both are available on the Free plan (OpenAI: custom instructions, Projects in ChatGPT).
  • Claude: “Instructions for Claude” (Settings, then Your Claude) apply account-wide; Projects carry their own instructions and documents; skills add task-specific behaviour you switch on when needed (Claude personalization features).
  • Gemini: skills store reusable instructions you call with ”/” in any chat (Google says this will soon change to ”@”), and they now sit with connected apps under Customize in the left menu. Google launched skills on 30 September 2026 and is phasing out Gems: from 17 November 2026 personal-account Gems transition to skills and become read-only (you can open them but not use or edit them), and on 17 December 2026 they are removed, so download any Gem files before then (Google: Gems to skills). Our Gemini skills guide has the timeline and the steps to move a Gem by hand.

Put your audience, voice rules and standard constraints there once. For a team, a shared Project with a style guide and reference documents is the cheapest productivity win available. See how we use these in our ChatGPT review and Claude review.

A style instruction that fixes most “AI-sounding” text

Paste this into your custom instructions and adapt it:

Write in a natural, direct voice, like a sharp colleague explaining something over coffee.
Vary sentence length. Write in prose paragraphs unless I ask for a list or table.
Start with the point, not with scene-setting. End when the point is made, without a summary.
Use commas, full stops and brackets rather than em dashes.
State a clear recommendation rather than balanced options, unless I ask for options.
Use concrete examples and numbers instead of abstractions.
Why: my readers are busy professionals who skim, and generic AI phrasing loses their trust.

It is written as things to do, with a reason at the end, because both habits make instructions stick better than a list of bans.

Mistakes that produce bad output

  • Asking for several things at once. “Summarise this, suggest a title, and draft a tweet” gets three mediocre results. Ask one at a time, or ask for them in a numbered sequence with the format for each.
  • No audience. The model cannot pitch the level of detail without knowing who reads it.
  • Trusting facts without sources. For anything with a date, price or statistic, make sure the assistant searches the web and check the citation. Our Perplexity vs ChatGPT for research comparison covers which tools do this best and how to verify a cited answer.
  • Over-prompting. A two-page “mega prompt” full of rules the model has to juggle often performs worse than a clear five-part prompt plus iteration.
  • Not reading the output. Obvious, and still the most common.

Prompts for specific jobs

Summarising a long document:

Summarise the attached report for an executive who has five minutes.
Lead with the three decisions it asks them to make. Then one paragraph of context per decision.
Quote figures exactly as they appear. If something important is unclear in the document, say so.

Debugging code:

Here is a function and the error it produces. Explain the likely cause in two sentences,
then give a corrected version with a comment on the changed line only. Do not refactor anything else.

Researching with sources:

What changed in [topic] since [month year]? Use primary sources only (official announcements,
documentation, pricing pages). For each point give the date, a one-sentence summary and the link.
If sources disagree, say so instead of picking one.

Getting honest feedback:

Critique this plan as a sceptical investor would. List the three weakest assumptions,
explain why each could fail, and suggest what evidence would change your mind. Do not soften the feedback.

Next steps

Pick one task you do every week, write a five-part prompt for it, and save it as a persistent instruction. That single change will do more for your results than any model upgrade. When you are ready to go further, our guide to AI coding assistants applies the same ideas to software work, and the rest of our guides cover choosing and using specific tools.

Frequently asked questions

What is the most important part of a prompt?

Context and a clear definition of done. Most bad outputs come from the model not knowing who the output is for, what it is for, or what a good result looks like.

Do prompting techniques work the same in ChatGPT, Claude and Gemini?

Mostly. The five-part structure in this guide works across all major assistants, and the official guides from OpenAI, Anthropic and Google give similar advice: be specific, give context, show examples, put long documents before the question. Small differences in formatting defaults are easiest to fix with an explicit format instruction.

Should I tell the AI to think step by step?

Usually not any more. Current models such as GPT-6 and Claude Opus 5.5 reason automatically on hard questions. You get more from choosing a higher reasoning or thinking setting and asking the model to show the trade-offs behind its recommendation.

How long should a prompt be?

As long as it needs to be to give context, the task, constraints and an example, which is often 50 to 200 words. Very long prompts full of rules tend to perform worse than a clear short prompt followed by a couple of rounds of feedback.

Should I use prompt templates?

Yes, for tasks you repeat. Save your best prompts as custom instructions, in a Project, or as a Claude or Gemini skill so you do not have to retype the context every time. Avoid building new custom GPTs: OpenAI is replacing them with plugins and plans to retire them on 11 December 2026.

Keep reading