Better AI Prompts · Level 1: Prompting Basics · Lesson 2
The anatomy of a useful prompt
Task, context and output instructions can make a request clearer. An optional role can guide the style, but does not give an assistant professional expertise. Practise choosing the details your task needs, then check the answer.
By the end of this lesson, you can:
- Identify the 4 core building blocks of a high-performing prompt.
- Recognize missing structural components in weak instructions.
- Construct a balanced 4-part prompt for work and personal tasks.
The 4 building blocks of a great prompt
Rather than thinking of a prompt as a single sentence, think of it as a small blueprint. High-performing prompts combine four structural building blocks:
1. Role / Persona
Suggests a style or perspective for the response (e.g. "Act as an experienced copywriter" or "Act as a high school physics teacher").
2. Core Task
The primary action you want the AI to perform (e.g. "Draft an email", "Summarize this meeting transcript", or "Explain this formula").
3. Context & Background
The essential facts, source data, target audience, and background details the AI needs to give a relevant answer.
4. Output Specification
The desired structure, length, tone, or format (e.g. "3 bullet points", "Markdown table", or "under 150 words").
Putting the blocks together
Compare how a prompt evolves when you add each building block step by step:
Bare task (No structure)
Task only
Give me activity ideas for a book group.
May produce ideas that do not suit the group, available materials or time.
Full 4-Part Prompt
All 4 building blocks active
Use a friendly event-organiser style [ROLE]. Suggest 5 indoor activities for a book group [TASK] of four adults who have an hour together and want to use only books and paper [CONTEXT]. Present a table showing Activity, Materials and Suggested Time [OUTPUT].
Gives the assistant useful details and a requested structure. Check that the suggested activities fit the group, materials and available time.
When to use all four blocks
You do not need to write a 4-part prompt when asking simple questions like "What is the capital of Canada?". However, whenever your task involves:
- Writing professional emails, reports, or customer responses
- Analyzing complex documents or datasets
- Creating educational content or study guides
- Generating code or structured data formats
Use the elements that help with your task. A role is optional, and no prompt structure guarantees a correct answer. Follow-up questions and your own checks are normal parts of using AI.
Illustrative example
Prompt Makeover
A project manager needs a quick summary of a 10-page market research report for an upcoming management meeting. Watch how adding structural building blocks improves the AI response.
Original prompt
Summarize this report for me.
What is missing
- Role: who should the AI act as?
- Target audience: who will read this summary?
- Key focus: which sections or insights matter most?
- Output format: bullet points, executive summary, or key takeaways?
Improved prompt
Act as a senior market analyst. Summarize the key findings from the market research report below for our executive leadership team.
Focus on competitor growth trends, customer retention risks, and strategic recommendations for Q3. Return 3 bullet points per category, followed by a 2-sentence bottom-line summary. Do not include introductory filler or conversational pleasantries.
Why it is better
- It assigns a clear role: senior market analyst.
- It specifies the task and target audience (executive leadership team).
- It narrows the focus to competitor growth, retention risks, and Q3 recommendations.
- It defines a rigid format: 3 bullet points per category + 2-sentence summary.
What still needs checking
- Verify that competitor growth figures match raw report data.
- Ensure strategic recommendations align with your team's budget and policies.
Practice
Identify the complete 4-part prompt
Compare these two prompts for a customer support template. Choose the option that includes all 4 core building blocks (Role, Task, Context, and Output Specifications).
Illustrative example
A customer service manager wants to generate a polite response template for delayed shipping inquiries during a holiday peak.
Check the model answer
Option B includes all 4 core building blocks.
Option B specifies Role (empathetic customer support lead), Task (write an email template), Context (3-5 day delay, holiday demand, 10% discount code), and Output Specifications (Subject Line, 2 short paragraphs, sign-off). Option A lacks role perspective, specific discount context, and structural formatting bounds.
Knowledge check
Check the answer
Option B is the correct answer.
Without a requested format, the assistant chooses a format that may not suit the task. Naming the format can reduce editing, but you still need to check the result.
Keep this
The 4-Part Prompt Framework
Use these building blocks as a flexible checklist, then review the result:
[ROLE]: Act as a [expert/persona].
[TASK]: [Specific action to perform].
[CONTEXT]: [Background facts, audience, key details].
[OUTPUT]: Return [format, length, structure or constraints].
You don't need all 4 blocks for quick everyday questions. Use all 4 when accuracy, tone, and specific structure matter for your work.
Optional browser progress
Your progress
0 of 5 available lessons completed
Progress stores only the course identifier and completed lesson identifiers in this browser. It does not save your answers, prompt text or identity, and it does not sync to another device. Clearing browser data removes it.