Anatomy of a Great Prompt
The four components
Every effective prompt has four elements (not all are always needed, but the best prompts include them all):
1. Role — who should the AI be?
2. Task — what exactly should it do?
3. Context — what background information does it need?
4. Format — how should the output look?
Role: setting the persona
Starting with You are a [specific expert]... dramatically improves output quality. The AI adjusts its vocabulary, depth, and assumptions.
Weak: Explain machine learning.
Strong: You are a patient teacher explaining machine learning to a non-technical Arabic entrepreneur for the first time.
Task: be specific
Replace vague verbs (help, write, do) with precise actions:
• Instead of write → write a 200-word
• Instead of help → list 5 specific ways to
• Instead of analyze → identify the 3 main weaknesses in
The more precise the verb, the more predictable the output.
Context: give it what it needs
Context is information the AI doesn't have but needs to give you a relevant answer. Include:
• Your audience (who is this for?)
• Constraints (word limit, language, tone)
• Background facts (your industry, product, situation)
• What you've already tried (to avoid repeated suggestions)
Don't over-explain — 2–4 lines of context is usually enough.
Format: control the output
Tell the AI exactly how to structure its response:
• Respond as a numbered list of 5 items
• Use markdown headers for each section
• Keep the total response under 150 words
• End with a one-sentence summary
• Respond only in Arabic
Without format instructions, the AI chooses its own structure — which may not fit your needs.
Key Takeaways
- Great prompts have Role, Task, Context, and Format.
- Be the specific expert with the Role component.
- Replace vague verbs with precise actions in the Task.
- Context is the background information the AI needs to help you.
- Format instructions control the shape of the output.
Build a full prompt
Write a complete prompt using all four components (Role, Task, Context, Format) for this scenario: You want help writing an email to a client who is late on payment.