How to Write AI Prompts: 10 Tips That Work (2026)
Ten habits for clearer instructions, each with a weak and a better example, plus a five-part template and five prompts that improve other prompts
By TheBestSuperintelligence Editorial TeamUpdated
How to write AI prompts: 10 tips
A prompt is the instruction you give an AI system. Writing a good one takes no programming, only the habit of saying what you would tell a capable colleague who knows nothing about your situation. The ten tips below apply to ChatGPT, Claude, Gemini and any other assistant.
Tips for writing AI prompts, with weak and better examples
| # | Tip | Weak | Better |
|---|---|---|---|
| 1 | Be specific about what you want. Do not make the model guess the subject, length or audience. | "Write something about solar panels." | "Write a 600-word explainer for homeowners on how rooftop solar panels produce electricity, with three short sections and no jargon." |
| 2 | Give the background that changes the answer. | "Create a marketing plan for my website." | "I sell coffee grinders online to home enthusiasts. Traffic is steady but few visitors buy. Create a three-month content plan aimed at buying guides and comparisons." |
| 3 | Set a role that fits the task. One role, not a stack of titles. | "Review my website." | "Act as a usability reviewer for small online shops. Review this homepage text for clarity, navigation and trust." |
| 4 | Describe the finished output. Table, list, length, headings. | "Compare three laptops." | "Compare these three laptops in a table: weight, battery life, screen, price. Then recommend one for a student in two sentences." |
| 5 | Show an example. | "Write product descriptions in a professional style." | "Write product descriptions like this example: [PASTE ONE]. Same tone, 80 to 100 words each." |
| 6 | Split big jobs into steps. | "Write a complete business plan." | "First list the sections a business plan for a bakery needs. I will then ask for each section in turn." |
| 7 | Set limits. Say what to leave out and what not to invent. | "Write a bio for our founder." | "Write a 70-word bio from these facts only: [FACTS]. Do not add awards, dates or employers I have not listed." |
| 8 | Ask it to question you first. | "Plan my product launch." | "Before you plan my product launch, ask me up to five questions about anything you need to know." |
| 9 | Refine with specific feedback. | "Make it better." | "Shorten the introduction to two sentences, remove the second example and make the tone less formal." |
| 10 | Save and improve what works. | Retyping from memory each time. | A notes file of prompts with placeholders, updated when one fails. |
Where these come from: Anthropic's guide says Claude responds well to clear, explicit instructions, that explaining the reason behind an instruction helps, that a role focuses behaviour and tone, and that three to five examples work best. Google's guide advises clear and specific instructions, stated constraints and response format, added context, chained prompts for multi-step tasks and rephrasing when a result misses. Tips 8 and 10 are our own practice.
Five labelled parts cover most serious requests. Short questions need only the task and the output.
ROLE: Act as [THE EXPERTISE THIS TASK NEEDS].
CONTEXT: [WHO I AM, WHO THIS IS FOR, WHAT HAS HAPPENED SO FAR, WHAT I ALREADY KNOW].
TASK: [THE ONE THING I WANT DONE, STARTING WITH A VERB].
CONSTRAINTS: [LENGTH, TONE, WHAT TO LEAVE OUT, WHAT YOU MUST NOT INVENT].
OUTPUT: [THE FORMAT OF THE FINISHED RESULT: TABLE, LIST, HEADINGS, WORD COUNT].
If anything important is missing, ask me before you answer.I want to ask an AI assistant for this: [ROUGH REQUEST]. Before doing the task, ask me the questions you would need answered to do it well, one at a time, up to five. Then write the full prompt I should use, with role, context, task, constraints and output.Here is a prompt I wrote and the answer it produced: [PASTE BOTH]. The answer was wrong for me in this way: [WHAT WAS WRONG]. Explain which part of my prompt caused that, then rewrite the prompt to fix it. Change as little as possible.Break this large task into a chain of smaller prompts: [DESCRIBE THE TASK]. For each step give the prompt, what I should paste in from the previous step and how I can tell the step went well before moving on.Turn this prompt into a reusable template: [PASTE PROMPT]. Replace the details that change each time with clearly named placeholders in capital letters and square brackets, keep everything that should stay fixed, and add a one-line note on when to use it.Four prompts that improve other prompts:
Worked example: an AI prompt template, filled in
The situation below is invented for this example.
ROLE: Act as a plain-language science writer.
CONTEXT: I run a community newsletter for adults with no technical background. Readers keep asking what a large language model is.
TASK: Write an article explaining what a large language model is and what it cannot do.
CONSTRAINTS: 700 words. No jargon without a one-line explanation. Do not predict the future or quote statistics.
OUTPUT: A headline, a two-sentence summary, four short sections with headings and a three-item list of limits.
If anything important is missing, ask me before you answer.
A good result for this prompt:
- Matches the length, sections and reading level you set.
- Explains each technical word the first time it appears.
- Contains no statistics or predictions, as instructed.
- Asks a question if it needs one, such as which country's spelling to use.
Limits of this guide
This is general advice drawn from two vendor guides and our own practice, not a controlled test. Models differ and change, so a habit that helps on one may matter less on another. A well-written prompt improves relevance and format; it does not make the answer true. Check facts, figures, quotations and sources yourself, whatever the prompt.
Sources & Further Reading
All sources fetched on 2026-11-21.
| Claim | Source | Section or date |
|---|---|---|
| Claude responds well to clear, explicit instructions; be specific about output format and constraints; give steps as a numbered list when order matters; explain why an instruction matters; give a role; include 3 to 5 examples | Prompting best practices (Anthropic) | Be clear and direct; Add context to improve performance; Give Claude a role; Use examples effectively; undated |
| Give clear and specific instructions; state constraints and the response format; always include few-shot examples; add context; make each step of a complex task its own prompt and chain them; rephrase when results are poor | Prompt design strategies (Google) | Clear and specific instructions; Constraints; Response format; Zero-shot vs few-shot prompts; Add context; Break down prompts into components; Prompt iteration strategies; undated |
| An earlier edition of this prompt set | 10 Tips for Writing the Perfect Prompt (The Best Prompt For) | Our sister prompt library; read 2026-11-21 |
Need a different task?
Browse all 70 tasks and 438 prompts, with search and level filters.
Frequently asked questions
How do you write a good AI prompt?
Say exactly what you want, give the background that would change the answer, set a fitting role, and describe the output. Add an example, split big jobs into steps, set limits, and invite questions when information is missing. Then refine with specific feedback and save what works.
What are the five parts of a good AI prompt?
Role, context, task, constraints and output. The role sets the perspective, the context gives the background, the task says what to do, the constraints set the limits and the output describes the finished result. Short requests need only the task and the output.
Do longer prompts give better answers?
Not by themselves. A prompt should be as long as the missing information requires. Background that would change the answer helps; padding and repeated instructions make it harder to follow. Google's guide notes that too many examples can cause the model to overfit to them.
Does telling an AI to act as an expert make it more accurate?
A role focuses the tone and priorities of the answer; Anthropic says a role focuses behaviour and tone for your use case. It does not add knowledge or guarantee accuracy, so the result still depends on the information and instructions you give, and facts still need checking.
How many examples should I put in a prompt?
Anthropic suggests three to five well-chosen examples for best results. Google recommends always including a few examples but gives no fixed number and advises experimenting, because too many can make the model copy them too closely.
How we sourced this. Both prompt guides were read on 2026-11-21. Quoted advice is as printed on each page that day; neither page shows a date. Methodology