How to Write Better AI Prompts
5 rules that turn a mediocre AI answer into a great one. With copy-paste templates.
The biggest factor in answer quality isn't the AI model β it's the prompt. The same model gives you garbage if you ask vaguely and gold if you ask precisely. Prompt engineering is the discipline of writing prompts that consistently produce useful answers.
This guide gives you 5 rules with concrete before/after examples, plus copy-paste templates you can use today.
Be specific about what you want
Vague prompts produce vague answers. Specific prompts produce useful answers.
- Weak: "Write a tweet about our new feature."
- Strong: "Write a 220-character tweet announcing our new pricing page. Tone: casual but professional. Include exactly one emoji. No hashtags."
The strong version names the format, length, tone, and constraints. The AI doesn't have to guess.
Give context
Tell the AI who you are, who the audience is, and what's already true. Front-load the context.
- Weak: "Write a sales email."
- Strong: "I'm a B2B SaaS founder writing to existing customers who haven't logged in for 30 days. Goal: re-engage them with our new dashboard. Tone: friendly, no pressure. Length: 80-120 words."
Specify the output format
Ask explicitly for a numbered list, a markdown table, JSON, or 3 paragraphs. The AI will deliver a clean format you can copy-paste somewhere useful.
Example: "Return your answer as a markdown table with columns: Idea, Effort (1-5), Impact (1-5), Why. Sort by Impact descending."
Show one example
One good example of the desired output is worth a paragraph of instructions. This is called few-shot prompting.
Example: "Convert dates from US format to ISO 8601. Input: Jan 5, 2024 β Output: 2024-01-05Input: Dec 31, 2025 β Output: 2025-12-31
Now convert: Input: March 8, 2026."
Iterate in plain English
Don't expect the first answer to be perfect. Tell the AI what to fix:
- "Shorter and punchier."
- "More technical."
- "Add a counter-argument."
- "Less hedging β pick a position."
- "Rewrite in plain English, no jargon."
The AI holds the conversation in memory, so it iterates much better than starting over each time.
Use a template for repeat tasks
If you find yourself rewriting the same prompt structure repeatedly, save it. Browse our library of 31 curated prompt templates for writing, coding, thinking, learning and more β or save your own in your AskAI.free account on the Pro plan.
Good prompts compound. A saved template you reuse 50 times is a 50Γ return on the 5 minutes you spent writing it. Start with one prompt you use weekly, perfect it, save it, then move to the next.
For more techniques, see our prompt engineering glossary entry or jump straight to the prompt library.
Try the techniques above on AskAI.free β your first question is free.
Start a free chat →FAQ
Are AI prompts the same for ChatGPT and Claude?
The same principles apply but tone matters. Claude responds well to longer, more thoughtful prompts. ChatGPT can be more conversational. Test the same prompt in both β AskAI.free lets you do that side by side.
How long should a prompt be?
Long enough to specify what you want β usually 30-200 words for non-trivial tasks. Don't pad. Don't be vague.
What's a system prompt?
A system prompt is an instruction sent before any user message that sets the AI's persona, tone or constraints for the whole conversation. See our glossary entry on system prompts.