‹ Back to blog

Features Explained

How to Write AI Prompts That Get Better Results: A 5-Part Method

how to write ai prompts shown by a retired white man in his seventies typing a detailed request into a laptop at a sunny dining table beside a notepad of ideas

The simplest answer to how to write AI prompts is to say what you want, who it is for, what to use and what the result should look like. OpenAI's prompting guide compares a reasoning model to a senior co-worker and a standard GPT model to a junior coworker who needs explicit instructions, and Anthropic names clarity and examples as the first techniques to try. This guide gives you a five-part method and examples you can reuse.

How to Write AI Prompts: The 5-Part Method

  1. Task: start with a clear verb. "Summarize," "compare," "draft," "explain."
  2. Context: who you are, who the output is for and what the model should know. Put long background material after the instructions; OpenAI's guide says context is "usually best positioned near the end of your prompt."
  3. Constraints: length, tone, reading level, things to avoid.
  4. Format: bullets, a table, a 100-word paragraph, JSON.
  5. Check: ask the model to flag assumptions or list what it was unsure about.

You do not need all five every time. For a quick question, task and format are enough. For anything you will send to another person, use all five.

Before and After

Weak promptStronger prompt
Write about our new refund policy.Draft a 120-word email to existing customers explaining that refunds now take 5 business days. Friendly but direct, no jargon, end with a link placeholder. List any assumptions you made.
Give me a workout plan.Create a 4-week beginner plan for a 45-year-old with two dumbbells and 30 minutes, 3 days a week. Use a table with day, exercise, sets and reps. Note which moves to skip with bad knees.
Explain mortgage rates.Explain how mortgage rates are set to a first-time buyer in five short bullets, with one everyday analogy. Do not give personal advice.

The stronger versions are longer, but each added phrase removes a guess the model would otherwise make.

Use Examples

OpenAI describes few-shot prompting as steering a model by "including a handful of input/output examples in the prompt," and advises showing "a diverse range of possible inputs with the desired outputs." Anthropic lists examples among its core techniques. In practice: paste two samples of the style you want, label them, and ask for a new one. This works well for product descriptions, email tone and categorizing notes.

Iterate, Do Not Restart

Treat the first answer as a draft. Say exactly what to change: "Shorter, cut the second paragraph, keep the numbers." You can also break big jobs into steps, which Anthropic calls prompt chaining: first ask for an outline, approve it, then ask for the draft. If the answer is wrong, ask the model to show its reasoning or sources, then verify those yourself.

What the Model Makers Say

  • OpenAI: reasoning models do well with high-level goals, while GPT models need explicit instructions. Its guide also suggests structuring longer prompts into sections such as identity, instructions, examples and context, using Markdown headers or XML tags to mark boundaries (OpenAI).
  • Anthropic: lists clarity, examples, XML structuring, role prompting, thinking and prompt chaining as the main techniques. It also stresses defining success criteria and testing your prompt against them, and notes that not every failure is fixed by prompting (Anthropic).

Both guides are written for developers, but the ideas carry over to chat. If you are choosing a tool, see ChatGPT vs Gemini vs Claude. To understand why wording matters, see what is a large language model.

Common Mistakes

  • Being vague. "Make it better" gives the model nothing to aim at.
  • Overloading one prompt. Five unrelated tasks in one message produce muddled answers. Split them.
  • Pasting private data. Anything you type may be stored. See our AI chatbot privacy guide.
  • Trusting facts blindly. Models can be wrong with confidence. Verify names, numbers and quotes.
  • Never saving what works. Keep a note of prompts that worked and reuse them. See how to use AI at work for task ideas.

Last checked: November 16, 2026. Prices and features change; the official app screen is always the final word.

Frequently Asked Questions

What is the simplest way to write a good AI prompt?

State the task, give context, set constraints, name the format and ask the model to flag assumptions. Start with a clear verb.

Do longer prompts work better?

Often, when the extra words remove guesses, such as audience, length and format. Padding with filler does not help.

What is few-shot prompting?

Including a handful of input and output examples in the prompt to show the model the pattern you want, as OpenAI describes it.

Should I put context at the start or end?

OpenAI's guide says context is usually best near the end of the prompt, after your instructions.

Why does the AI give wrong answers?

Models can state wrong facts confidently. Check key facts yourself, and give the model sources to work from when accuracy matters.