AI Prompting Basics
Writing a good prompt is the difference between a vague, unusable answer and something you can copy-paste into your work. This guide covers the fundamentals.
The Anatomy of a Good Prompt
Section titled “The Anatomy of a Good Prompt”Every effective prompt has four parts:
- Role — who the AI should act as
- Task — what you want done
- Context — background information it needs
- Format — how you want the output structured
Example
Section titled “Example”You are a grant writer for a small nonprofit (role).Write a 300-word summary of our project for a funding application (task).Our organization runs after-school coding classes for girls aged 12–18 in Baghdad.We have 40 active students and 3 volunteer instructors (context).Use a professional but warm tone, and output as plain paragraphs with no headings (format).Provide Good Context
Section titled “Provide Good Context”AI models have no memory of your situation unless you tell them. Always include:
- Who your audience is
- What the output will be used for
- Constraints (budget, time, skill level)
- Examples of what you like
Weak: “Write a social media post.”
Strong: “Write a LinkedIn post announcing our free coding workshop for teens in Baghdad. Our audience is local parents and educators. 3–5 sentences, informal but professional, include a call to action to sign up.”
Iterate, Don’t Expect Perfection
Section titled “Iterate, Don’t Expect Perfection”Rarely does the first output hit the mark. Treat it as a first draft:
- Regenerate — get a fresh version
- Refine — add details you missed: “Make it shorter”, “Use simpler language”, “Add a specific example about X”
- Rephrase — ask it to rewrite in a different tone
The AI can’t read your mind, but it can follow instructions. The more specific you are, the better it gets.
Common Pitfalls
Section titled “Common Pitfalls”| Problem | Fix |
|---|---|
| Vague requests | Be specific about audience, length, tone |
| Missing context | Explain who you are and what this is for |
| Accepting bad output | Tell the AI what’s wrong and try again |
| Overly complex prompts | Start simple, add details one at a time |
Quick Start Template
Section titled “Quick Start Template”Copy this and fill in the blanks:
You are a [role]. I need you to [task].
Context:- My audience is [audience]- This will be used for [purpose]- Key details: [details]- Tone: [formal / casual / persuasive / etc.]- Length: [word count or paragraph count]
Output as: [paragraphs / bullet points / table / etc.]Next Steps
Section titled “Next Steps”Try it out. Pick one real task you’re working on, write a structured prompt using the template above, and see how the output compares to what you’d normally get.