Lesson 28 lessons

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 writewrite a 200-word

• Instead of helplist 5 specific ways to

• Instead of analyzeidentify 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.

**Role:** You are a professional business communication consultant. **Task:** Write a polite but firm payment reminder email. **Context:** The client owes me 5,000 SAR for web design work delivered 30 days ago. We have a good relationship and I want to keep it. **Format:** One email, 3 short paragraphs, professional tone, end with a clear call to action.