How to Write Better AI Prompts (With Examples)
A practical guide to writing ChatGPT prompts that work: give context, set a role, show examples and ask for a format. Includes before-and-after prompts.

The best ChatGPT prompts read like a clear brief to a capable new colleague: they say who the output is for, what a good result looks like, what to avoid and what shape the answer should take. If you add context, an example and a format to a one-line request, you will usually get a far better answer on the first try.
That rule holds for Claude, Gemini and every other chat assistant too. These tools are prediction engines, so the words you give them steer everything they produce. This guide walks through the habits that make the biggest difference, with before-and-after examples you can copy.
Why do some prompts work better than others?
A large language model writes its reply by predicting the most likely next words, given everything in the conversation. When your request is thin, the most likely answer is the most average one. That is why "write a cover letter" returns something bland that could belong to anyone.
Every detail you add narrows the range of plausible answers. Good prompting is less about secret tricks and more about removing guesswork.
What should a good prompt include?
Most strong prompts contain some mix of the following parts. You will not need all of them every time, but running through the list catches what is missing.
| Ingredient | What it does | Example phrase |
|---|---|---|
| Task | States the job in one clear sentence | "Summarize this report in five bullet points." |
| Context | Explains the situation and background | "I run a 12-person bakery in Pune and want to cut food waste." |
| Audience | Sets reading level and tone | "Write for parents with no technical background." |
| Constraints | Sets limits and things to avoid | "Under 150 words. No jargon. Don't mention pricing." |
| Examples | Shows the style or pattern you want | "Here are two past emails I liked: ..." |
| Format | Defines the shape of the answer | "Return a table with columns for task, owner and deadline." |
How to write a better prompt, step by step
- Start with the goal, not the topic. "Tell me about electric scooters" is a topic. "Help me decide whether an electric scooter makes sense for a 6 km daily commute in Bengaluru" is a goal, and the model can actually work toward it.
- Give the background the model can't guess. Your budget, your experience, your deadline and your audience all change the right answer. The assistant doesn't know them unless you say so.
- Assign a role when expertise matters. Opening with "Act as an experienced recruiter reviewing a CV" pulls the answer toward the vocabulary and priorities of that job. It won't make the model an expert, but it does focus the response.
- Show, don't just tell. If you want a particular style, paste a short sample. Models copy patterns very well, so one good example often beats a paragraph of description.
- Ask for a specific format. Bullet points, a table, a numbered plan, a 100-word email: say which. You will spend far less time reformatting.
- Separate instructions from material. When you paste a long document, mark it off clearly, for instance with a line like "TEXT TO SUMMARISE:" or with quotation marks. This stops the model from confusing your instructions with the content.
- Iterate. Read the first answer, then say what to change: "Shorter", "More formal", "Drop point three and expand point one". Refining in the same chat keeps all the earlier context.
What do better prompts look like in practice?
The fastest way to learn is to compare a weak prompt with a stronger version of the same request.
Example 1: Writing an email
Weak: "Write an email asking for a deadline extension."
Stronger: "I'm a final-year engineering student. My thesis draft is due Friday, but I was ill for four days last week and have a doctor's note. Write a short, polite email to my supervisor, Dr. Rao, asking for a five-day extension. Keep it under 120 words, don't over-apologize, and offer to share my current draft."
The second version tells the model who is writing, to whom, why, how long the message should be and what tone to strike. Nothing is left to chance.
Example 2: Learning a new topic
Weak: "Explain inflation."
Stronger: "Explain inflation to a 16-year-old who is good at math but has never studied economics. Use one everyday example involving prices at a local shop. Then give me three quick questions to test whether I understood."
Asking for a quiz at the end turns a passive answer into an active learning tool.
Example 3: Working with data
Weak: "Analyze these sales numbers."
Stronger: "Below is a table of monthly sales for three product lines over 2026. Identify the two biggest trends, flag any month that looks unusual, and suggest one possible reason for each. Present the trends as bullets and the unusual months in a table. If the data is not enough to explain something, say so rather than guessing."
The last sentence invites the model to admit uncertainty instead of inventing an explanation.
Which advanced prompting techniques are worth knowing?
Once the basics feel natural, a few extra techniques help with harder tasks.
Ask the model to think step by step
For math, logic or multi-step planning, asking the model to work through the problem before answering often improves accuracy. This approach is known as chain-of-thought prompting. Many newer models already reason internally before they reply, so the gain is smaller than it used to be, but it still helps when you want to see and check the working.
Give a few examples (few-shot prompting)
If you need output in a very particular pattern, such as product descriptions in your brand voice or support replies in a set structure, include two or three finished examples. Researchers call this few-shot prompting. The model picks up length, tone and layout from the samples.
Break big jobs into smaller prompts
A single prompt asking for a full business plan will produce something shallow. Ask for an outline first, agree on it, then work through each section in turn. This chaining approach gives you checkpoints to correct course.
Ask the model to critique its own answer
After a draft, try: "Review your answer. What is weak, missing or possibly wrong? Then give me an improved version." This simple loop often catches gaps you would otherwise have to spot yourself.
What common prompting mistakes should you avoid?
- Stuffing several unrelated tasks into one prompt. The model will do each one half as well. Split them up.
- Using negative instructions only. "Don't be boring" gives little to work with. Say what you want instead.
- Assuming the model remembers other chats. Some assistants offer memory features, but you should not rely on them for important context. Restate what matters.
- Pasting sensitive data without thinking. Check your organization's policy before sharing client names, medical details or confidential documents with any AI tool.
- Trusting confident answers blindly. Assistants can produce fluent text that is simply wrong, a problem known as AI hallucination. Verify facts, figures, quotes and legal or medical claims against reliable sources.
Do prompts work the same way in ChatGPT, Claude and Gemini?
Broadly, yes. The principles in this guide come straight from the prompting advice that OpenAI, Anthropic and Google each publish for their own models, and they overlap heavily. All three recommend clear instructions, relevant context, examples and an explicit output format.
There are small differences in style, so if you switch tools, run the same prompt in each and compare. Our ChatGPT vs Claude vs Gemini comparison covers how the assistants differ beyond prompting.
A reusable prompt template
When you are stuck, fill in this outline and delete any line you don't need:
Role: Act as a [type of expert]. Task: I need you to [specific job]. Context: [Who you are, the situation, what has been tried.] Audience: This is for [who will read or use it]. Constraints: [Length, tone, things to avoid.] Examples: [Paste one or two samples, if you have them.] Format: Return the answer as [bullets, a table, an email, steps]. Check: If anything is unclear or you are unsure of a fact, say so.
For a deeper look at why these techniques work, read our beginner's guide to prompt engineering.
Why It Matters
Prompting is quietly turning into a core workplace skill, much like writing a clear email or running a good meeting. The gap between a colleague who gets a bland answer and one who gets a usable draft rarely comes down to which tool they pay for. It comes down to whether they explained the job properly. That makes good prompting one of the cheapest productivity gains around, for a bakery owner in Pune and a student finishing a thesis alike.
It also puts responsibility back where it belongs. A clear brief, an example and an invitation to admit uncertainty will cut errors, yet the final check stays with whoever hits send. If AI-assisted work goes out under your name, its facts are yours.
Two more points deserve attention. The habits here carry across ChatGPT, Claude and Gemini, so time spent learning them is not locked to one vendor. And the urge to add more context can collide with confidentiality: before you paste client names or medical details into a prompt, check what your organization allows.
Frequently asked questions
What is the best prompt for ChatGPT?
There is no single best prompt, because the right wording depends on your task. The most reliable pattern is to state the task, give context, describe the audience, set constraints and ask for a specific format. Adding one example of what you want usually improves results further.
How long should an AI prompt be?
As long as it needs to be to remove guesswork. A quick factual question can be one line, while a request for a report or a piece of writing in a set style might run to a few paragraphs. Length helps when it adds useful context, not when it repeats itself.
Do I need to be polite to AI chatbots?
Politeness is not required for the model to work, and the evidence on whether it changes output quality is mixed. Clarity matters far more than courtesy. That said, writing in a natural, respectful tone tends to produce natural, respectful replies.
Can good prompts stop AI from making mistakes?
They reduce mistakes but cannot eliminate them. Asking the model to say when it is unsure, to work step by step and to stick to material you provide all help. You should still check any important fact, number or citation yourself.
Should I save prompts that work well?
Yes. Keeping a simple document of prompts that gave good results saves time and keeps quality consistent, especially for tasks you repeat each week. Several assistants also let you save custom instructions so your preferences apply to every chat.
Researched and written by The AI Telegraph staff and checked against primary sources. See our editorial policy. Spotted an error? Tell us.


