Prompt engineering is the practice of crafting inputs to AI systems to get dramatically better outputs. Two people using the exact same AI tool can get wildly different results based entirely on how they write their prompts. This guide gives you the frameworks that work.
A vague prompt like "write me a blog post about coffee" produces generic, mediocre output. A well-crafted prompt produces publication-ready content. The difference isn't the AI — it's the instruction. Think of AI as an extraordinarily capable assistant who needs clear direction. The better your brief, the better the output.
1. Role — Tell the AI who it is. "You are an expert nutritionist with 20 years of clinical experience" produces different output than "You are a science journalist writing for a general audience." The role sets vocabulary, authority level, and tone.
2. Task — State exactly what you want. Be specific about format, length, and structure. "Write a 1,500-word blog post with H2 subheadings every 300 words" is better than "write a blog post."
3. Context — Give background information. Who is the audience? What do they already know? What is the purpose of this content?
4. Constraints — Tell the AI what NOT to do. "Avoid jargon," "don't use bullet points," "never use the phrase 'in conclusion'" — negative constraints often improve output as much as positive instructions.
5. Examples — Show the AI what good looks like. "Write in the style of this paragraph: [example]" or "Here's an output I liked from before — match this tone."
For blog content: "Act as a [expert type] writing for [audience]. Write a [length] article about [topic] targeting the keyword '[keyword]'. Use an engaging hook, H2 subheadings every 300 words, and end with actionable takeaways. Tone: [tone]. Avoid: [things to avoid]."
For analysis: "Analyze [subject] from the perspective of [framework/angle]. Identify [number] key insights, potential risks, and actionable recommendations. Format as a structured report with executive summary."
For brainstorming: "Generate [number] ideas for [goal]. For each, provide: the core concept in one sentence, how it's different from existing approaches, and the biggest obstacle to implementation. Prioritize unusual or counterintuitive ideas."
Chain of Thought — Add "Think through this step by step" to any complex problem. This forces the AI to reason through stages rather than jumping to conclusions, dramatically improving accuracy on difficult tasks.
Few-Shot Learning — Provide 2–3 examples of the input-output pattern you want before your actual request. The AI learns your pattern and replicates it consistently.
Iterative Refinement — Treat AI conversation as a dialogue. Ask for output, then say "This is good, but make it more [quality] and less [quality]. Also add [element]." Each iteration improves on the last.
Persona Stacking — "You are a skeptical editor reviewing this for a NYT science section. Identify every claim that needs a source, every sentence that's too vague, and every paragraph that loses momentum." Applying multiple lenses to the same content dramatically improves quality.
Being too vague, not specifying audience, not constraining length or format, accepting first outputs without iteration, and not providing examples of what "good" looks like. The biggest mistake: treating AI as a magic box rather than a collaborator that needs clear direction.