Skip to content

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.

Every effective prompt has four parts:

  1. Role — who the AI should act as
  2. Task — what you want done
  3. Context — background information it needs
  4. Format — how you want the output structured
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).

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.”

Rarely does the first output hit the mark. Treat it as a first draft:

  1. Regenerate — get a fresh version
  2. Refine — add details you missed: “Make it shorter”, “Use simpler language”, “Add a specific example about X”
  3. 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.

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

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.]

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.