Identify the four building blocks of an effective prompt — role, context, task, and output format — and recognize each in a sample prompt.
The four building blocks of a prompt
The four building blocks of a prompt
A language model generates text by predicting what word comes next, based on everything it has been trained on. It does not know who you are, what your goal is, or what format you need — unless you tell it. That is why a well-structured prompt consistently outperforms a vague one: it eliminates the model's guesswork.
Every strong prompt can be broken into four blocks. ROLE answers: "Who are you asking, and who should I be?" — for example, "You are an experienced HR manager." Setting a role steers the model's vocabulary, tone, and expertise. CONTEXT answers: "What is the situation?" — background facts, constraints, the audience the output is for. Without context the model must assume, and its assumptions may not match yours.
TASK is the explicit instruction: "Write," "Summarize," "List," "Explain." It must be a single, unambiguous action. FORMAT tells the model what the output should look like: a bullet list, a table, three paragraphs, JSON, an email with a subject line. Without a format instruction the model chooses one — often not the one you wanted.
Here is a worked example with all four blocks labeled: "[ROLE] You are a senior financial analyst writing for a non-specialist board. [CONTEXT] The company missed its Q2 revenue target by 12 % due to a delayed product launch. [TASK] Write an executive summary explaining why the target was missed and what corrective actions are planned. [FORMAT] Use three short paragraphs: Situation, Root Cause, Next Steps." Notice how removing any one block would make the answer less useful — a different tone, missing facts, or an unusable structure.
Lesson notes
The four building blocks of a prompt
A language model generates text by predicting what word comes next, based on everything it has been trained on. It does not know who you are, what your goal is, or what format you need — unless you tell it. That is why a well-structured prompt consistently outperforms a vague one: it eliminates the model's guesswork.
Every strong prompt can be broken into four blocks. ROLE answers: "Who are you asking, and who should I be?" — for example, "You are an experienced HR manager." Setting a role steers the model's vocabulary, tone, and expertise. CONTEXT answers: "What is the situation?" — background facts, constraints, the audience the output is for. Without context the model must assume, and its assumptions may not match yours.
TASK is the explicit instruction: "Write," "Summarize," "List," "Explain." It must be a single, unambiguous action. FORMAT tells the model what the output should look like: a bullet list, a table, three paragraphs, JSON, an email with a subject line. Without a format instruction the model chooses one — often not the one you wanted.
Here is a worked example with all four blocks labeled: "[ROLE] You are a senior financial analyst writing for a non-specialist board. [CONTEXT] The company missed its Q2 revenue target by 12 % due to a delayed product launch. [TASK] Write an executive summary explaining why the target was missed and what corrective actions are planned. [FORMAT] Use three short paragraphs: Situation, Root Cause, Next Steps." Notice how removing any one block would make the answer less useful — a different tone, missing facts, or an unusable structure.