The Fast Track AI Subscribe

Home / Blog

Prompts

How to write prompts that work: a 7-step method, with a full before and after

According to the prompting guide Google published in 2024 for Gemini in Workspace, the most successful prompts average around 21 words: far more than a question typed in passing. If you want to know how to write prompts that work, start from one idea: the AI only knows what you tell it. A good prompt states the result you want, gives the context it cannot guess, sets the format and gets refined over a few rounds. This guide walks through the 7-step method, a full before and after, a template to copy and the tricks that do nothing.

Updated on 8 min read

The method at a glance

StepThe question to askExample
1. ResultWhat do I need at the end?“Summarize this report in one page for the director.”
2. ContextWhat can't the AI know?“She decides on the 2027 budget on Friday.”
3. ReasonWhy does this constraint matter?“She'll read it on her phone between meetings.”
4. FormatWhat shape, length and tone?“5 bullets, 150 words, neutral tone.”
5. DataWhere does the text to process start?The report pasted inside triple quotes.
6. ExampleCan I show what I expect?Last year's summary that worked well.
7. LimitsWhat must not change, or be checked?“Use only the figures in the report.”

You won't need every step every time. OpenAI says so in its ChatGPT prompting guide: a simple question needs one sentence; goal, context, format and limits matter most for work that counts.

How to write prompts in 7 steps

1. Describe the result you want

Start with an action verb and a deliverable: summarize, draft, compare, sort, translate. OpenAI advises describing the outcome you want rather than listing every step to get there. “Help me with this report” leaves the AI to choose; “Summarize this report in one page” leaves it one job.

2. Give the context the AI can't guess

Audience, stakes, what's already been done, your company's constraints. Anthropic suggests treating the AI as a brilliant but new employee who knows nothing about your norms or your project. Its test: show your prompt to a colleague with no background on the task. If they'd be confused, the AI will be too.

3. Explain why

An instruction that comes with its reason is followed better. Anthropic's example: “never use ellipses” works less well than “your response will be read aloud by a text-to-speech engine, so never use ellipses, since it won't know how to pronounce them.” The AI grasps the goal and applies it to cases you didn't foresee.

4. Set the format, length and tone

Table, bullet list, email with a subject line, word count: say it. For tone, OpenAI's help center suggests plain adjectives: formal, friendly, professional, serious. Ask for what you want rather than what you don't: “write in flowing paragraphs” beats “don't use lists,” Anthropic notes.

5. Keep instructions and data apart

When you paste text to work on, fence it, for example inside triple quotes, so the AI reads it as material rather than instructions. That's the approach shown in Salesforce's Trailhead module. For a long document, Anthropic recommends putting it at the top and your question at the end: in its tests, that improved response quality by up to 30%.

6. Show an example

One good sample output conveys a style or layout better than a description. Anthropic recommends 3 to 5 varied examples for best results. Reasoning models need them less: OpenAI notes they often do well without examples. Try without first, then add one if the result misses.

7. Set one or two limits and ask for a check

OpenAI recommends setting one or two essential limits: figures that must not change, using only the sources provided, staying at draft stage. For important work, ask the AI to check its answer, then review it yourself before you use it.

A full example: before and after

Here's a four-word prompt, the way most people type it:

Please summarize this report.

The AI will produce a medium-length summary in a neutral tone, with no idea who it's for or why. Here's the version built with the 7 steps:

I'm a financial controller. My director has to decide on Friday whether we keep the 2027 training budget. Summarize the report below for her. She'll read it on her phone: 5 bullets, 150 words max, neutral tone. End with the two figures that matter most for her decision. Use only figures from the report; if something is missing, say so. Report: """ [pasted text] """

The second prompt runs about 65 words. There's no magic formula in it: just the information a human assistant would have asked for before starting.

A prompt template to copy

Fill in the brackets and delete the lines you don't need:

The role is optional: it mainly sets a level of expertise or a tone. For ready-made templates by job, see our pick of free prompts and our prompt examples.

Fixing a prompt that misses

The first try is rarely the right one, and that's normal. Google and OpenAI both describe prompting as a conversation: read the answer, then adjust with a follow-up message instead of starting over.

What's wrongWhat to add
Answer too genericContext: audience, situation, stakes
Too long or badly laid outA format with numbers: word count, bullets, a table
Wrong toneA tone adjective, or a sample text you like
Invented figures or factsThe source data, and an instruction to use only that
Instruction ignoredThe reason behind it, placed after the data

Another useful habit: ask the AI to improve your prompt. Google's Gemini guide offers a simple formula, “Make this a power prompt:”, followed by your text. Review the suggestion before using it.

What doesn't work: threats, tips and magic words

Offering the AI $1,000 or threatening it does not improve its answers. Researchers at the Wharton School tested this on five models and two sets of hard questions: the overall effect was small and mostly not statistically significant (Meincke et al., 2025). Their advice: simple, clear instructions work better. Politeness is the same story: an earlier study by the same team found it sometimes helps and sometimes hurts.

Finally, “think step by step” is no longer needed with reasoning models, which already do it internally according to OpenAI. That technique, chain of thought prompting, still helps with simpler models.

What to keep out of a prompt

The UK's National Cyber Security Centre advises against including sensitive information in queries to public AI chatbots. At work, remove customer and employee names, non-public financial data and confidential documents, unless your company provides an approved tool for that use. Removing the name isn't always enough either: Germany's data protection authorities point out that context alone can identify a person.

When a better prompt isn't enough

The method has limits. Be clear-eyed about these cases:

To understand what a prompt is and how the AI reads it, see our complete guide to the AI prompt. To save time, the AI prompt generator builds the structure for you.

Frequently asked questions

How do you write a good prompt?

State the result you want with an action verb, give the context the AI can't guess, then set the format, length and tone. Add an example if style matters, plus one or two limits. Read the answer and adjust with a follow-up message.

How long should a prompt be?

Long enough to give the useful context, and no longer. Google's Gemini prompting guide says the most successful prompts average around 21 words. For a complex task or a document to process, the prompt will naturally be longer.

Should you give the AI a role?

It helps, but it's optional. A line like “You are an employment lawyer” sets a level of expertise and vocabulary. Context and format matter more: a role without context still gets a generic answer.

Does being polite to ChatGPT help?

It's not what drives quality. A Wharton School study found politeness helps on some questions and hurts on others, with no consistent effect. Write as you would to a colleague, clearly: precision is what counts.

Can AI write prompts for you?

Yes. Google suggests asking Gemini to improve your draft prompt. You can also ask the AI to list the questions it needs answered before it starts. Always review the suggested prompt: it may add constraints you don't want.

Related articles

Reference guideAI prompt: what a prompt is, how AI reads it and how to write a good one

The essentials of AI, every Wednesday.

Free, once a week, on Wednesday. A 5-minute read.