How to Write Perfect AI Prompts: A Practical Guide

Short answer: A good prompt is clear, specific and gives context. State the task, who the answer is for, what the AI needs to know, the format you want and any limits. Then review the answer and refine the prompt. There is no perfect prompt that works every time, so treat prompting as a loop: ask, check, improve.
Why the word "perfect" needs care
You will see claims about secret prompts that always work. They do not exist. AI models differ, change often and can give different answers to the same prompt. What does work is a handful of habits that the AI companies themselves recommend.
OpenAI's help page on prompt engineering for ChatGPT says prompts should be clear and specific, give enough context for the model to understand what you are asking, and be refined iteratively: start with an initial prompt, review the response and adjust the wording or context. Source: https://help.openai.com/en/articles/10032626-prompt-engineering-best-practices-for-chatgpt
Anthropic's guidance for Claude says the same thing in other words: Claude responds well to clear, explicit instructions, and it suggests thinking of the model as a brilliant but new employee who lacks context on your norms and workflows. The more precisely you explain what you want, the better the result. Source: https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
The anatomy of a good prompt

You do not need every part every time, but most good prompts include several of these:
- 1Role. Who the AI should act as. "You are an experienced HR manager."
- 2Task. What you want done. "Write a polite rejection email."
- 3Context. The facts it needs. "The candidate reached the final round. We chose someone with more sales experience."
- 4Audience. Who will read the result.
- 5Format. Length, structure, tone. "Under 120 words, warm, no jargon."
- 6Constraints. What to avoid. "Do not promise future roles."
- 7Example. A sample of the style you want, when it helps.
Before and after

Vague: Write a social media post about our sale.
Clear: Write a LinkedIn post announcing our end-of-season sale for a family-run furniture shop in Leeds. Audience: local homeowners. Discounts of 20 to 40 percent run from 1 to 14 December. Tone: warm and friendly, not pushy. Under 100 words. End with an invitation to visit the showroom.
Vague: Help me with my CV.
Clear: Review my CV for a project manager role in construction. Point out the five weakest parts, explain why, and suggest a better wording for each. Here is my CV and the job advert: [paste both].
The clear version gives the AI the facts it would otherwise guess.
Explain why, not only what
Anthropic's guide notes that giving the reason behind an instruction helps the model generalise. Compare "Never use ellipses" with "Your answer will be read aloud by a text-to-speech tool, so do not use ellipses, because it cannot pronounce them." Context lets the AI make sensible choices for cases you did not think of.
Use the Ask, Check, Improve loop
- 1Ask with a clear first prompt.
- 2Check the answer against your needs. What is missing, wrong or too long?
- 3Improve by adding what was missing, not by starting from scratch.
Useful follow-ups:
- "Make it shorter and more direct."
- "What did you assume that I did not tell you?"
- "Give me two other versions with a different tone."
- "List what is weak in this answer."
- "Ask me any questions you need before you start."
The last one is very powerful for big tasks. It turns a guess into a conversation.
Practical templates
Writing
Write a [type of document] for [audience]. Purpose: [what it must achieve]. Key points: [list]. Tone: [adjectives]. Length: [limit]. Avoid: [things to avoid].
Analysis
Here is [data or text]. Identify the three most important patterns for a [role] deciding whether to [decision]. Show the evidence for each. Say what you are unsure about.
Learning
Explain [topic] to someone who knows [what they know] and wants to [goal]. Use one real-world example. Then give me three questions to test my understanding.
Planning
I need to [goal] by [date] with [resources]. List the steps in order, who is responsible and what could go wrong. Ask me anything you need to know first.
Review
Review this [document]. Tell me what is unclear, unsupported or missing. Be direct. Then rewrite the weakest paragraph.
Common mistakes
- Too vague. The AI fills gaps with guesses.
- Too many tasks at once. Split them up.
- No audience. The answer is generic.
- Accepting the first answer. Most good outputs take two or three rounds.
- Pasting private data. Passwords, card numbers and confidential client details do not belong in prompts.
- Trusting facts without checking. AI can be confidently wrong, especially on numbers, dates and quotes.
- Copying prompts blindly. A prompt from the internet may not fit your task or your model.
Build your own prompt library
Save prompts that work. Name them by task, note which tool you used and add a line about when they work best. A shared document for your team is enough to begin with. We show how in How to Create Reusable AI Prompt Templates.
Go further
Once the basics are comfortable, try these techniques, each covered in its own guide:
FAQ
What is the best AI prompt?
There is no single best prompt. The best one is clear, gives context and fits your task. Refine it after each answer.
Do the same prompts work in ChatGPT, Claude and Gemini?
The basics do. Models respond a little differently, so test and adjust.
How long should a prompt be?
As long as it needs to be. A short prompt can work for a simple task, and a complex task benefits from more detail.
Should I say please?
It does not hurt, but clarity matters far more than politeness.
Can AI write the prompt for me?
Yes. Ask it to help you improve your prompt, then test the result.
Sources
- OpenAI Help Center, "Prompt engineering best practices for ChatGPT": https://help.openai.com/en/articles/10032626-prompt-engineering-best-practices-for-chatgpt
- Anthropic, "Prompting best practices": https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
Checked December 2026. Model behaviour changes, so test prompts on the tool you use.
Key takeaways
- Be clear and specific, and give the context the AI cannot guess.
- Include task, audience, format and limits.
- Ask, check and improve.
- Verify facts and keep private data out of prompts.
Want your team trained on practical AI prompting? Book a free 30 minute call with Tech AI Labs.
FAQ
Quick answers
What is the best AI prompt?
There is no single best prompt. The best one is clear, gives context and fits your task. Refine it after each answer.
Do the same prompts work in ChatGPT, Claude and Gemini?
The basics do. Models respond a little differently, so test and adjust.
How long should a prompt be?
As long as it needs to be. A short prompt can work for a simple task, and a complex task benefits from more detail.
Should I say please?
It does not hurt, but clarity matters far more than politeness.
Can AI write the prompt for me?
Yes. Ask it to help you improve your prompt, then test the result.
IN THE DIRECTORY
See how this tool compares, what it costs and what it is best for.
Open the tool page →

