How to write prompts for ChatGPT and Claude – a guide with examples

How to write prompts for ChatGPT and Claude – a guide with examples

Peter Gáborík
Published
Updated
6 min read
Artificial intelligencePromptsChatGPT
Share this article:Add on Google

A prompt is the instruction you give an AI model. Good ChatGPT prompts, and Claude prompts too, have five parts: role, task, context, output format and constraints. Written this way, a prompt gets you a usable result on the first try instead of after five rounds of fixes. This guide is for anyone who uses AI at work, from customer emails to document analysis.

In brief:

  • Write it like a brief for a new colleague: who you are, what exactly you want, for whom and in what form.
  • Separate instructions from source material; with long texts, put the material first and the question last.
  • One good example of the output says more than a paragraph of description.
  • Treat the answer as a first draft and refine it with follow-up instructions.
  • Don’t paste personal data or internal company data into consumer versions.

What a prompt is and why the brief matters

A prompt is the text you use to tell a language model what to do. It can be one sentence or a two-page brief with attached documents. The model doesn’t know your business, your customers or what you meant but didn’t write. It fills the gaps with the average, which is why a generic prompt leads to a generic answer.

Anthropic’s official guide suggests thinking of Claude as a “brilliant but new employee” who doesn’t know your norms. A simple test helps: show the prompt to a colleague who knows nothing about the task. If they wouldn’t know what to do, neither will the AI. OpenAI makes the same point: the more specifically you describe the context, outcome, length, format and style, the better the answer.

This applies to ChatGPT and Claude alike. How the two assistants differ in other respects is covered in our ChatGPT vs Claude vs Gemini comparison.

How to write prompts: the 5 parts of a good brief

Not every prompt needs all five parts. A simple question only needs the task; work that goes out to a customer is worth running through the whole table.

PartWhat to writeExample
Rolethe perspective the AI writes from“You are an experienced online store support agent.”
Taskone specific verb and goal“Write a reply to a complaint.”
Contextfor whom, why, what you know“The customer has waited 10 days; the carrier caused the delay.”
Formatlength, structure, tone“Max. 120 words, friendly and factual.”
Constraintslimits and what to do when unsure“Don’t promise a discount. If data is missing, ask.”

The order is not fixed. For developers, OpenAI recommends starting with identity and instructions, then examples and finally context. In an everyday chat it is enough that each part is clearly separated.

7 rules from the official OpenAI and Anthropic guides

Both companies publish prompt engineering guides. These rules appear in both and work in ChatGPT and Claude.

1. Specific numbers instead of vague words

Instead of “keep it short”, write “3 to 5 sentences”; instead of “for beginners”, write “for a small business owner with no technical background”. The model no longer has to guess what short or simple means to you.

2. Explain why you want it

Anthropic gives an example: rather than banning ellipses outright, explain that the text will be read aloud by a text-to-speech engine that can’t pronounce them. The model then understands the rule and applies it in situations you didn’t describe. In a business, that means saying what the output is for: “this text goes into a newsletter for regular customers”.

3. Say what to do, not only what to avoid

Both guides recommend positive instructions. Instead of “don’t use bullet points”, write “write in flowing paragraphs”. Instead of “don’t ask for a password”, say where the AI should refer the customer.

4. Separate instructions from source material

When you paste an email, contract or table into a prompt, mark where it starts and ends so the model doesn’t confuse your instructions with the text it should process. OpenAI mentions delimiters such as `###` or triple quotes; Anthropic recommends XML-style tags such as `<documents>` … `</documents>`. Choose your own tag names, just use them consistently.

5. Show an example of the output

An example is the most reliable way to set tone, structure and length. Anthropic recommends 3 to 5 varied examples; OpenAI advises trying the prompt without examples first and adding them only if the result is off. In practice, pasting one or two of your earlier texts with “write in the same style” is often enough.

6. Long documents: material first, question last

According to Anthropic, placing the query after long material improved response quality by up to 30% in its tests, especially with several documents at once. With long texts, also ask the model to list the exact quotes it relies on first and only then answer.

7. Let the AI say “I don’t know”

Language models can make things up with confidence (hallucinate). Anthropic recommends explicitly allowing an answer like “I don’t have enough information” and asking for a source or quote for each claim. This lowers the risk but doesn’t remove it, so always check figures, legal and tax information.

ChatGPT vs Claude prompts: what differs

The core principles are the same; the differences are in the details:

  • Structure: Anthropic explicitly recommends XML tags for Claude; OpenAI mentions both Markdown (headings, lists) and XML. Both models handle either.
  • Thinking mode: for complex tasks, use Thinking mode in ChatGPT; in Claude, newer models let you set an effort level. Don’t script the reasoning step by step: OpenAI says reasoning models do better with high-level guidance and clear success criteria, and Anthropic notes that a general “think thoroughly” often beats a hand-written plan.
  • Standing instructions: in ChatGPT, go to Settings → Personalization → Custom Instructions (up to 1,500 characters on Free and Go, 5,000 on paid plans); in Claude, use Instructions for Claude in Settings. Both also offer projects whose instructions apply only to that project.
  • Tone of instructions: Anthropic warns that newer Claude models respond more strongly to the system prompt, so aggressive wording such as “you MUST ALWAYS” can cause overreaction. A plain instruction is enough.

For more on each assistant, see our guides to ChatGPT and Claude AI.

Sample prompts for ChatGPT and Claude

These examples are illustrative, written for fictional businesses. Replace the square brackets with your own details.

Customer reply (coffee online store)

`You are customer support for a specialty coffee online store. Write a reply to the email below. The customer has waited 10 days for the parcel; the carrier caused the delay. Offer free reshipping, don’t promise a discount. Max. 120 words, friendly and factual. <email>[paste email]</email>`

Contract summary (accounting firm)

`Below is a supplier contract. <contract>[text]</contract> First, list exact quotes about the notice period, penalties and automatic renewal. Then summarise them in 5 bullet points for the business owner. If something is not in the contract, write “not stated”. Don’t assume anything.`

AI won’t assess a contract like a lawyer would, but it saves time on the first read.

Comparing quotes (construction company)

`You are a buyer at a construction company. Compare the three window supplier quotes below in a table with columns: price excl. VAT, delivery date, warranty, what is not included. Below the table, recommend one quote and explain why in 3 sentences. Mark missing data as “missing”. <quotes>[quote text]</quotes>`

Marketing copy

`Write 3 versions of a Facebook post about a new seasonal Ethiopian coffee. Audience: regular customers aged 30–50. Each version max. 60 words with one call to action. Match the style of this sample: <sample>[your earlier post]</sample>`

How to use AI for texts that hold up in search is covered in our article on SEO copywriting.

How to refine the answer

Treat the first answer as a draft. Instead of rewriting the whole prompt, continue the conversation:

  • Edits: “cut it by a third”, “less formal”, “add a concrete example”.
  • Questions first: for bigger tasks, write “before you start, ask me three questions you need answered”.
  • Self-review: “check your text against these criteria and fix anything that misses”. Anthropic names draft, review against criteria and refine as the most common way to chain prompts.
  • Fresh chat: when a conversation gets tangled, it is often faster to start again with an improved prompt.

Common prompt mistakes

  • One sentence for a complex task. “Write an article about coffee” returns an average text. Add who it’s for, what it’s for and how long it should be.
  • Several tasks at once. Analysis, copy and a table in one prompt; split them into steps.
  • Copying “magic” prompts from the internet. A template without your context stays generic. Use it as a skeleton, not a finished solution.
  • Sensitive data in a consumer version. Don’t paste customers’ personal data or internal figures into the free version; follow GDPR and personal data protection rules and the app’s data settings.
  • Blind trust in the output. Check facts, calculations and quotes before sending anything to a customer.

From single prompts to a company system

If the same prompt comes up every week, don’t rewrite it each time. Save it as a template in a shared document or in project instructions so the team uses it consistently. For repeated tasks at scale (hundreds of product descriptions, sorting emails), it pays to connect the model through an API, where the prompt is part of the application and can be tested. Both OpenAI and Anthropic recommend defining success criteria up front and testing prompts on sample data. More in our OpenAI API guide.

When to bring in a specialist

For everyday work in ChatGPT or Claude, this guide and some practice are enough. A specialist pays off when you want AI built into your processes: customer support using your own data, automated document processing or an AI assistant connected to your online store or CRM. We use Claude and ChatGPT daily and build AI solutions for businesses, including prompts, testing and data protection. You can describe your situation via our contact form.

Frequently asked questions

How do I write a good ChatGPT prompt?
Give the model a role, a specific task, context, the output format and constraints. Use numbers instead of vague words, separate your instructions from pasted text and add an example of the result you want. Treat the first answer as a draft and refine it with follow-up instructions such as “shorter” or “more formal”.
What is a prompt?
A prompt is the instruction you give an AI model such as ChatGPT or Claude. It can be a single question or a detailed brief with documents attached. The model only knows what you write, so the more specific the prompt is about the goal, audience and format, the more usable the answer will be.
Are prompts for Claude different from prompts for ChatGPT?
The core principles are the same: be clear, add context, give examples and specify the format. Anthropic explicitly recommends XML tags for structuring Claude prompts, while OpenAI mentions both Markdown and XML. Both assistants support standing personal instructions and projects with their own instructions, so you don’t have to repeat the same context in every chat.
Should I write prompts in English or in my own language?
Write in the language you want the output in. ChatGPT and Claude both understand and answer in many languages, and keeping the prompt and the output in one language avoids awkward phrasing. Technical terms and product names can stay in English. For important texts, have a native speaker check the result.
Can I paste company data into ChatGPT or Claude?
Avoid pasting personal data or confidential figures into free consumer versions. Check the data settings, where you can opt out of using your chats for model training. Business plans such as ChatGPT Business or Enterprise and Claude Team or Enterprise do not use your content for training by default, but still follow GDPR and internal rules.
Where can I find ready-made ChatGPT prompts?
Prompt libraries and templates are widely available, including our list of 50 SEO prompts for ChatGPT. Use them as a skeleton and always add your own context: who the text is for, what it is for and what form it should take. A template without that context returns a generic answer.
Peter Gáborík

Written by

Peter Gáborík

Project Manager – AI, Automation & SEO

Project manager and founder of Weboptim. Builds growth strategies around SEO, automation and AI; in online marketing since 2017.

Tips that save time – once a month

One e-mail a month: a new guide, the automation of the month and one number from practice. No spam.