GuideAI at work

How to Write a Good Prompt: 7 Rules and Templates

How to write a good prompt that works the first time: 7 rules with before/after examples, prompt templates for work and the traps most guides skip.

Published Updated 8 min read Accurate as of November 22, 2026

You type “write an email to a client” and get something that sounds like a call-center script. Often the problem isn’t the model – it’s the prompt. Google’s prompting guide for Gemini in Workspace says the most successful prompts average around 21 words, while the prompts people usually try are under 9.

This guide shows you how to write a good prompt in any tool – ChatGPT, Claude, Gemini or Copilot. You get 7 rules with before-and-after prompt examples, ready-to-copy prompt templates for work, and the traps ordinary prompt engineering tips leave out.

What makes a good prompt?

A good prompt is one you don’t have to follow up on. It says what you want (a verb and a goal), who it’s for and why (context), what to base it on (source material) and what shape it should take (format, length, tone). OpenAI, Anthropic, Google and Microsoft list similar elements in their guides.

The formula everyone agrees on

Each company names the parts differently, but the core is the same:

Element Question Google (Workspace) Microsoft (Copilot)
Task What should it produce? Task Goal
Context For whom, and why? Context Context
Source What should it work from? – Source
Format What should the result look like? Format Expectations
Role From whose perspective? Persona –

You don’t have to fill in every field every time. Microsoft says plainly that the minimum is a clear goal. But the more important the task, the more elements are worth adding.

How to write a good prompt: 7 rules with examples

1. Start with a verb

One of Google’s prompting guides advises starting with a verb (a command) and briefly describing the task. Tell the model what to do: summarize, compare, suggest, rewrite, list.

Before: Email to client about delay.
After:  Write an email to a client apologizing for a 5-day delivery delay.

2. Add context: who, for whom, why

Anthropic recommends explaining the reason behind an instruction – the model then picks better content. One sentence of context changes the tone of the whole text.

Before: Write an apology email about the delay.
After:  I'm the customer service manager at a building supplies wholesaler.
        The client is a renovation company that had to pause work on a site
        because of us. I want to keep them as a customer, not just apologize.

3. Separate the instruction from the material

When you paste in a document, an email or a table, set it clearly apart from your instruction. OpenAI recommends delimiters for this (such as """ or ###), Anthropic recommends XML-style tags. For long documents, Anthropic suggests putting the material at the top and your question at the end.

<document>
[paste the contract text]
</document>

List every deadline and contractual penalty in the document above.

4. Specify format, length and tone

“Short” means something different to everyone. Give a number: words, bullet points, sentences. Say whether you want a table, a list or text that’s ready to send.

Before: Summarize this report.
After:  Summarize this report in 5 bullet points for the board. Each point
        max. 20 words. End with one sentence: what decision is needed.

5. Show an example

Google recommends always including examples, and OpenAI and Anthropic recommend them too. One example of the style you want beats three adjectives like “professional but warm”.

Write 5 product descriptions in the same style as this example:
"Travel mug, 16 oz. Keeps coffee hot for 6 hours, in the car or on the job site.
Leak-proof – toss it in your bag."
Products: [list]

6. Say what to do, not what not to do

OpenAI and Anthropic give the same advice: instead of a ban, give a positive instruction. “Don’t be too formal” leaves the model guessing. “Write the way you’d talk to a colleague in the industry” doesn’t.

Before: Don't use jargon.
After:  Use plain language a small shop owner would understand.

7. Refine in the conversation

Microsoft tells you to expect some back-and-forth before you get the result you want, and OpenAI recommends refining your prompt based on the response. Don’t start over – say what to change: “cut it in half”, “make the second paragraph more specific”, “add the numbers from the table”.

Before and after: three real work tasks

Report for your boss

Before: Analyze sales.

After:  Here are sales for the last 6 months across three regions (table below).
        Prepare for the sales director: the 3 most important takeaways,
        1 risk and 1 recommendation. For every number, show how you got it.
        Format: bullet list, max. 150 words.
        [table]

Proposal for a client

Before: Write a website proposal.

After:  I'm a freelancer who builds websites for physical therapy clinics.
        Write a short proposal (under 200 words) for a clinic in Denver that
        has an outdated website and no online booking. Price: $4,500,
        timeline: 3 weeks. End by suggesting a 15-minute call.

Meeting notes

Before: Write up the meeting notes.

After:  Using the transcript below, write meeting notes in this format:
        1) decisions, 2) action items – who, what, by when, 3) open questions.
        If something wasn't agreed, write "not decided" – don't guess.
        <transcript>[paste]</transcript>

Notice the last sentence: “don’t guess”. It’s the simplest protection against made-up deadlines and names.

Where the AI companies disagree

You won’t find this in typical prompt guides, but it matters in practice:

  • “Think step by step.” OpenAI’s ChatGPT guide still recommends asking for intermediate steps. But the OpenAI, Anthropic and Google documentation for newer reasoning models says something different: high-level guidance is enough. Anthropic writes that an instruction like “think thoroughly” often produces better reasoning than a hand-written step-by-step plan.
  • Role (“You are an expert…”). OpenAI, Google and Anthropic include a role; Microsoft’s formula doesn’t. Our take: a role mainly helps with tone and vocabulary, not with facts – it won’t replace concrete context.
  • Prompt length. Google stresses short, specific instructions, while the Anthropic and OpenAI docs favor detailed, explicit ones. In practice: keep it short for simple tasks, go into detail for important ones.

6 prompt templates to copy

Fill in the square brackets and paste into any assistant.

1. TRICKY EMAIL
Write a reply to the email below. Me: [role]. Recipient: [who].
Goal: [what I want to achieve]. Tone: polite, firm. Max. [N] words.
End with a concrete proposal for the next step.
"""[email]"""

2. SUMMARY FOR A DECISION-MAKER
Summarize the document below in [N] bullet points for [who]. At the end:
what decision is needed and by when. If the document doesn't say something,
state that plainly.
<document>[text]</document>

3. LINKEDIN POST
Write a post about [topic] for [audience]. Under 120 words, the first
sentence has to stop the scroll, no hashtags, one question at the end.
Style like this example: "[one of your past posts]"

4. DATA ANALYSIS
Here is the data: [table]. Give 3 takeaways and 1 recommendation for [who].
Show the calculation for every number. Don't add data that isn't in the table.

5. CRITIC
Here is my text: [text]. Point out the 3 biggest weaknesses from the point
of view of [reader]. Suggest a concrete fix for each. Don't rewrite the whole thing.

6. QUESTIONS INSTEAD OF GUESSES
I want [goal]. Before you start, ask me max. 5 questions you need answered
to do this well. Then wait for my answers.

Template 6 is our favorite for tasks you haven’t fully thought through yet: the AI helps you pin down what you actually want.

Traps nobody talks about

  • Contradictory instructions. “Short but comprehensive” or “formal but casual” – you can’t tell which half of the instruction the model will take more seriously.
  • Numbers without a source. If you ask for market data without providing any material, the model may make it up. Tell it to cite a source or say “I don’t know”.
  • One chat for everything. Earlier messages can influence later answers. New topic = new chat.
  • Confidential data in the prompt. Google and Microsoft remind you to review results before using them. Our advice: also keep confidential information out of prompts – swap real names and amounts for made-up ones, and check your tool’s terms and your company’s rules on data.
  • The same prompt gives different results in different tools. That’s normal – which is why it’s worth comparing assistants on your own tasks, as in our one-hour test.

What to do now

Take one task you’ll hand to AI today and add the missing pieces to your prompt: verb, context, material, format. Compare the result with your usual version. The same rules work in spreadsheets – see AI in Excel and Google Sheets. And if you’re wondering which tool to write your prompts in, check our ChatGPT vs Claude vs Gemini comparison.

FAQ

What makes a good prompt?

A clear task that starts with a verb, plus context (who it’s for and why), the material to work from, and the expected format, length and tone. The more important the task, the more of these elements you should include.

How long should a prompt be?

As long as the task needs. For simple questions one sentence is enough; for important texts, a few sentences with context, material and format. According to Google’s guide for Gemini in Workspace, the most successful prompts average around 21 words.

Do I need to say “You are an expert”?

No. A role can help with tone and vocabulary, but a concrete goal, context and format matter more. Microsoft’s formula for a good prompt doesn’t include a role at all.

Will the same prompt work in ChatGPT, Claude and Gemini?

Largely, yes: a clear goal, context and format appear in all four companies’ guides, though they differ on details (such as “think step by step”). The results will still differ, because the models are different. If a lot depends on the prompt, try it in two tools.

What if the AI keeps making things up?

Give it source material, tell it to rely only on that, and add: “if something isn’t in the material, say you don’t know”. Always check numbers and facts yourself before you send anything.

Sources

  1. OpenAI – Prompt engineering best practices for ChatGPT
  2. OpenAI – Best practices for prompt engineering with the OpenAI API
  3. OpenAI – Prompt engineering (API docs)
  4. Anthropic – Prompting best practices
  5. Google – Prompt design strategies (Gemini API)
  6. Google Workspace – Writing effective AI prompts for business
  7. Google – Prompting guide 101 (Gemini for Google Workspace)
  8. Google – Your guide to better AI prompts (PDF)
  9. Microsoft – Get started writing prompts in Microsoft 365 Copilot