How to Write Better AI Prompts: 7 Rules That Actually Work
A good AI prompt does five things: it assigns a role, supplies context, states the output format, sets constraints, and shows an example. Prompts that miss these usually fail for the same reason — the model is guessing at what you meant.
1. Assign a role
Open by telling the model who it should be. "You are a senior tax accountant reviewing a small business return" narrows vocabulary, assumptions and depth far more effectively than "help me with taxes".
2. Give the context it cannot infer
The model does not know your audience, your constraints, or what you already tried. Two sentences of context — who this is for, what it is competing with, what failed before — usually improves output more than any clever phrasing.
3. State the output format explicitly
Ask for exactly the shape you want: "return a markdown table with three columns", "under 150 words", "reply with JSON only". Unspecified format is the single most common cause of output you have to rewrite.
4. Set constraints, including negative ones
Tell it what to avoid. "No salesy language", "do not invent statistics", "avoid the word 'delve'". Constraints do more work than adjectives like "professional".
5. Show one example
A single worked example (one-shot prompting) teaches tone and structure faster than a paragraph describing them. Two or three examples is better still when the format is unusual.
6. Ask for reasoning when accuracy matters
For analysis, add "think through this step by step before answering". For creative work, skip it — it tends to flatten voice.
7. Iterate on the prompt, not the output
If you find yourself editing the same flaw twice, fix the prompt instead. A prompt you refine once and reuse a hundred times is worth ten minutes of work.
Putting it together
A weak prompt: "Write a cold email."
A strong prompt: "You are a B2B sales writer. Draft a cold outreach email to a Head of Ops at a 200-person logistics company. Explain mutual benefit clearly, avoid salesy language, include one specific call to action, and stay under 200 words."
The second one works because nothing is left to guess.