Updated 20 November 2026. To write a good AI prompt, tell the AI who it should be, what you want, the details that matter and what the answer should look like. That four-part recipe works in ChatGPT, Gemini, Claude and Copilot, and it turns vague, generic replies into answers you can use. This guide gives you the formula, real before-and-after examples and 10 templates you can copy.
What is an AI prompt?
A prompt is the message you type, or say, to an AI chatbot. It can be a single question, a set of instructions, or instructions plus a document or picture for the AI to work with.
The AI does not know your situation, your audience or your standards unless you tell it. When a prompt leaves gaps, the AI fills them with safe, average guesses. That is why "write me a CV" gets you a bland template, while a detailed prompt gets you something close to finished.
The 4-part prompt formula
Google's prompting guide for Gemini groups a good prompt into four areas: persona, task, context and format. OpenAI's advice for ChatGPT covers the same ground: identify the task clearly, give the context, and set the tone and style you want. You do not need all four parts every time, but each one you add removes guesswork.
Role: who the AI should act as, or who you are. For example, "You are a friendly travel planner" or "I run a small bakery".
Task: the job, starting with a verb such as plan, rewrite, summarize, compare or explain.
Context: the facts only you know, such as your audience, budget, dates, tone, what you have tried and what to avoid.
Format: what the answer should look like, such as a bullet list, a table, an email, three options or fewer than 150 words.
The task is the one part you can never skip. Start it with a clear verb.

The formula as a table:
Part | What to include | Example |
Role or context | Who the AI should act as, or the situation | You're helping a first-time home buyer |
Task | Exactly what you want done | Explain what a mortgage deposit is |
Details | Audience, length, tone, must-haves | Under 150 words, friendly, US terms |
Format | How the answer should look | Three short bullet points |
Before and after: 4 real examples
Planning a trip
Weak prompt: "Tell me about Lisbon."
Strong prompt: "You are a friendly travel planner. Plan a 3-day trip to Lisbon for two adults in May on a mid-range budget. We like food markets and walking, not museums. Give me a day-by-day plan with morning, afternoon and evening ideas, and one rainy-day backup."
Why it works: the strong version has a role, a clear task, the details that matter (dates, budget, tastes) and a format.
Writing an email
Weak prompt: "Write an email to my landlord."
Strong prompt: "Write a short, polite email to my landlord asking them to fix a leaking kitchen tap. It has been leaking for a week and I reported it by phone on Monday. Keep it under 120 words, firm but friendly, and ask for a date when someone can come."
Understanding a letter
Weak prompt: "What does this mean?"
Strong prompt: "I've pasted a letter from my energy supplier below. Explain in plain English what it asks me to do, by when, and what happens if I ignore it. Use 3 short bullet points."
Remove account numbers, your address and other personal details before you paste a letter into any AI tool.
Learning something new
Weak prompt: "Explain inflation."
Strong prompt: "Explain inflation to a 14-year-old using the price of a pizza as the example. Then give me 3 quiz questions to check I understood, with the answers at the end."
8 habits that make every prompt better
Start with the result you want. OpenAI Academy suggests describing the result first, and adding the audience or format when they change what you need.
Use numbers. Say "under 100 words", "5 ideas" or "3 options" instead of "short" or "a few".
Show the style you like. Paste a paragraph you like and say "write in this style".
Break big jobs into smaller prompts. Ask for an outline first, then each section. OpenAI recommends splitting complex tasks into smaller, focused prompts.
Ask for options. "Give me 3 versions" lets you pick the best one or combine them.
Let the AI ask you questions. Google suggests prompts such as "Ask me three questions that will further clarify my goals".
Refine, don't restart. Reply with what to change: "shorter", "more formal" or "drop point 2". OpenAI calls this iterative refinement, and it is how most good answers are made.
Ask it to check itself. Add "Check your answer for mistakes and tell me anything you are unsure about."

10 prompt templates you can copy
Swap the words in square brackets for your own.
Summarize: "Summarize [paste text] in 5 bullet points for [audience]. Put the most important point first."
Rewrite: "Rewrite this [email or paragraph] to sound [friendlier, more formal or shorter]. Keep the meaning the same: [paste text]."
Explain: "Explain [topic] to a complete beginner in under 150 words, with one everyday example."
Plan: "Make a [7-day or 4-week] plan for [goal]. I have [time per day] and a budget of [amount]. Show it as a day-by-day list."
Decide: "Compare [option A] and [option B] for [my situation]. List the pros and cons in a table, then tell me what to ask before I decide."
Brainstorm: "Give me 10 ideas for [thing] for [audience]. Make 3 of them unusual."
Draft: "Draft a [message type] to [person] about [topic]. Tone: [tone]. Length: under [number] words."
Learn: "Teach me [skill] in 5 steps. After each step, give me a small exercise."
Check: "Check this [text] for spelling, grammar and unclear sentences. List every change you make."
Improve a prompt: "Improve this prompt so it gets a better answer, and ask me anything you need to know: [paste prompt]." Google's guide for small businesses suggests a similar trick for Gemini.
Common prompt mistakes to avoid
Being vague. "Write something about marketing" gets generic filler.
Asking for everything at once. A 10-part request gets 10 shallow answers.
Trusting every answer. The UK's National Cyber Security Centre lists getting things wrong, "hallucinating" incorrect facts and bias among the main flaws of these tools. Check anything important against an official source.
Sharing private information. The NCSC also warns that questions stored online could be hacked, leaked or accidentally made public. Leave out passwords, bank details, health records and other people's personal data.
Do prompts work the same in ChatGPT, Gemini, Claude and Copilot?
Mostly, yes. The four-part formula is plain-English instruction, and the major assistants are built to follow it. Each tool has its own extras, such as projects, file uploads or links to your email, and their answers differ in style and length.
To see the difference for yourself, run the same prompt in two tools and score them with our 6 chatbot comparison tests.
Frequently asked questions
How long should an AI prompt be?
Long enough to remove guesswork. One clear sentence is fine for a simple question. For a letter, plan or report, a short paragraph with context and format usually works better.
Do I need to say please and thank you to AI?
No. Politeness won't hurt, but clear instructions matter far more than manners.
Is there a perfect AI prompt?
No. Treat your first prompt as a first draft. Read the answer, then refine it. A conversation of two or three messages usually beats one "perfect" prompt.
What should I never put in an AI prompt?
Passwords, bank or card details, Social Security or National Insurance numbers, medical records and other people's personal information. Check your assistant's privacy settings too. Our step-by-step AI assistant guide shows you how.
3 tips before you go
Ask the AI to ask you three questions before it answers; it often uncovers details you forgot.
Keep a "prompt library" document of your best prompts and the results they produced.
When an answer misses, change one part of the formula at a time so you learn what made the difference.
