Prompt Engineering Guide: Write Better AI Prompts in 5 Steps
The difference between mediocre and excellent AI output usually comes down to one thing: how you write the prompt. Here's our proven 5-step framework.
Step 1: Assign a role
Tell the AI who to be. "You are a senior marketing strategist" produces dramatically better marketing advice than a generic prompt. The role frames the AI's knowledge, vocabulary, and perspective.
❌ "Write a marketing email"
✅ "You are a senior email marketing specialist with 10 years of experience in B2B SaaS. Write a cold outreach email..."
Step 2: Provide context
Give the AI the background information it needs. Include your audience, goals, constraints, brand voice, and any relevant data. More context = better output. Claude and ChatGPT can handle thousands of words of context.
Context to include: target audience, industry, company size, goals, tone preferences, existing brand guidelines, examples of content you like.
Step 3: Be specific about the task
Vague instructions get vague results. Instead of "write about AI," specify exactly what you need: the topic, angle, length, format, and what success looks like.
Step 4: Define the output format
Tell the AI exactly how to structure the response. Headers, bullet points, word count, sections, JSON, markdown — whatever format you need. This prevents the AI from guessing and gives you usable output.
Step 5: Add constraints and examples
Constraints prevent common AI pitfalls. "Don't use clichés," "Keep paragraphs under 3 sentences," "Don't include generic filler." Examples show the AI exactly what good output looks like (this is called few-shot prompting).
Putting it all together
You are an expert B2B copywriter specializing in SaaS products. Context: We sell a project management tool for remote teams. Our target audience is engineering managers at companies with 50-200 employees. Our tone is professional but approachable. Task: Write 3 LinkedIn ad variations (headline + description + CTA) promoting our free trial. Format: For each ad, provide: Headline (under 70 chars), Description (under 150 chars), CTA button text. Constraints: Don't use words like "revolutionary" or "game-changing." Focus on specific pain points (async communication, timezone management, sprint planning). Each ad should take a different angle.
Next steps
Ready to put these techniques into practice? Try our AI Prompt Generator which applies this framework automatically, or browse our Prompt Library for 500+ ready-made prompts. For more on the AI tools themselves, check our ChatGPT vs Claude comparison.