In the first article in this learning path, we established an important principle:
Good prompting is not about discovering secret words.
It is about communicating clearly.
A useful prompt gives the AI enough information to understand:
- what you want;
- why you want it;
- what it needs to know;
- what rules it should follow; and
- what the final result should look like.
In this article, we are going to turn that idea into a practical structure you can reuse.
We will break a strong prompt into five building blocks:
GOAL → CONTEXT → INSTRUCTIONS → CONSTRAINTS → OUTPUT
What makes a prompt good?
A good prompt is one that gives the AI the information it needs to produce a useful result for the task.
That means there is no single “perfect prompt” structure that should be used for everything.
If you ask:
“Convert 10 kilometres to miles.”
you probably do not need a long framework.
But if you ask:
“Prepare an executive risk summary from this 80-page assessment.”
the task is much more complex.
You may need to define:
- the audience;
- the purpose;
- the source information;
- the risk methodology;
- the expected length;
- the required structure; and
- how uncertainty should be handled.
The complexity of the prompt should reflect the complexity of the task.
The five building blocks of a strong prompt
A practical prompt can often be designed using five parts:
1. GOAL
What outcome are you trying to achieve?
2. CONTEXT
What does the AI need to know?
3. INSTRUCTIONS
What exactly should the AI do?
4. CONSTRAINTS
What boundaries, rules or limitations matter?
5. OUTPUT FORMAT
What should the final result look like?
Let’s work through each one.
Building Block 1: Goal
The goal describes the result you are trying to achieve.
This sounds obvious, but people often skip it.
Consider:
“Analyse these customer reviews.”
Why?
Do you want to:
- find product problems;
- measure customer sentiment;
- identify recurring complaints;
- generate marketing ideas;
- understand why customers leave; or
- prioritise product improvements?
The analysis could look very different depending on the goal.
Goal example
Instead of:
“Analyse these customer reviews.”
try:
“Analyse these customer reviews to identify the issues most likely to be causing customer dissatisfaction so that we can prioritise product improvements.”
The task now has a business objective.
Why the goal matters
The goal helps the AI determine what information deserves attention.
Without it, the model may produce an accurate summary that is not actually useful.
This gives us a powerful prompting principle:
DO NOT ONLY TELL THE AI WHAT TO DO. TELL IT WHAT THE RESULT IS SUPPOSED TO ACHIEVE.
Building Block 2: Context
Context provides the background information the AI needs to understand the task.
Context may include:
- who you are;
- what the business does;
- who the audience is;
- the current situation;
- relevant history;
- source information;
- business priorities; or
- other facts that affect the answer.
A context example
Consider:
“Create a marketing plan.”
Now add context:
“We are a small cybersecurity consultancy based in South Africa. Most of our customers are organisations with 50–500 employees. We provide security assessments, awareness training and managed governance services.”
The AI now understands far more about the environment.
Audience is part of context
One of the most important pieces of context is the audience.
For example:
“Explain zero trust.”
could produce a general explanation.
But:
“Explain zero trust to a non-technical board member who needs to understand why the organisation is investing in identity and access controls.”
should produce a very different answer.
Source material is context too
If you provide:
- a document;
- a spreadsheet;
- a report;
- meeting notes;
- website content;
- code; or
- an image,
that information can become part of the context for the task.
For example:
“Using the attached annual report, identify the three biggest changes in operating performance.”
The annual report is part of the prompt context.
Building Block 3: Instructions
Instructions tell the AI what actions to perform.
Useful instruction verbs include:
- analyse;
- compare;
- summarise;
- rewrite;
- extract;
- classify;
- prioritise;
- challenge;
- evaluate;
- draft;
- explain; and
- recommend.
Instructions should be specific enough that the AI knows what work it needs to do.
Weak instructions vs clear instructions
Weak:
“Look at this report.”
Clearer:
“Analyse the report and identify the five most significant operational risks. For each risk, explain the evidence, likely business impact and recommended next action.”
The second version defines the actual task.
One prompt can contain several instructions
For more complex work, a prompt can define a sequence.
For example:
- Review the supplied findings.
- Group related findings together.
- Identify the three highest business risks.
- Explain the impact in plain English.
- Recommend the next management action.
This is much easier for both the user and the AI to follow than one vague instruction.
Building Block 4: Constraints
Constraints define the boundaries of the task.
They can be extremely useful because they tell the AI what it should not do as well as what it should do.
Common constraints include:
- word count;
- tone;
- language;
- geographical scope;
- time period;
- allowed sources;
- excluded topics;
- required level of detail;
- risk limitations; and
- formatting rules.
Example of useful constraints
Suppose you ask AI to analyse a policy.
You could add:
“Use only information contained in the supplied policy. Do not use external assumptions. If the policy does not answer a question, state that the information is not available.”
Those constraints reduce the chance that the model fills gaps with unsupported information.
Constraints can define tone
For example:
“Use professional but conversational language.”
or:
“Write for senior management and avoid technical jargon.”
or:
“Use plain English suitable for someone new to the topic.”
Constraints can define length
If you want a short answer, say so.
Examples:
- “Maximum 200 words.”
- “Use no more than five bullet points.”
- “Keep each explanation to two sentences.”
- “Create a one-page executive summary.”
Otherwise the AI must decide what level of detail seems appropriate.
Constraints can improve factual discipline
For important work, you can add rules such as:
“Do not invent missing facts.”
“Label assumptions clearly.”
“Cite the source for every financial figure.”
“Separate verified facts from recommendations.”
These instructions do not guarantee perfect accuracy, but they can improve the structure of the analysis.
Building Block 5: Output format
The output format describes how the final answer should be presented.
This is one of the easiest ways to make AI output more useful.
Possible formats include:
- bullet points;
- numbered steps;
- a table;
- a checklist;
- an email;
- a report;
- a presentation outline;
- JSON;
- a comparison matrix; or
- a decision summary.
Output-format example
Instead of:
“Compare these products.”
try:
“Compare these products in a table with columns for Price, Core Features, Main Strength, Main Weakness and Best-Suited User.”
You are telling the AI exactly how you want to consume the result.
Putting all five building blocks together
Let’s combine everything into one example.
Suppose a business owner wants help analysing customer complaints.
Goal
Identify the issues that should be fixed first.
Context
A small online retailer has received 300 customer complaints during the past six months.
Instructions
Group the complaints into recurring themes and identify the most important problems.
Constraints
Use only the supplied complaint data. Do not invent causes that are not supported by the comments.
Output
Provide a table showing Theme, Number of Complaints, Example Evidence, Likely Impact and Recommended Priority.
The complete prompt
The final prompt could be:
“We are a small online retailer and have received 300 customer complaints during the past six months. We want to identify the problems that should be fixed first. Analyse the supplied complaints, group them into recurring themes and identify the most significant issues. Use only the complaint data and do not invent causes that are not supported by the comments. Present the result as a table with columns for Theme, Number of Complaints, Example Evidence, Likely Impact and Recommended Priority.”
This is still written in normal language.
But the structure is much clearer.
Weak vs structured prompt: business example
Weak:
“Give me some ideas to grow my business.”
Structured:
“I run a five-person accounting practice serving small businesses in Pretoria. We currently get most new customers through referrals and want to grow recurring monthly clients without significantly increasing advertising spend. Identify five realistic growth experiments we could test over the next 90 days. For each one, explain the cost, effort, likely benefit and how we should measure success. Avoid generic suggestions such as ‘use social media’ unless you provide a specific implementation idea.”
Weak vs structured prompt: learning example
Weak:
“Teach me cybersecurity.”
Structured:
“I work in a non-technical management role and want to understand cybersecurity risk well enough to participate in executive discussions. Create a six-week beginner learning plan covering risk, common threats, identity, vulnerability management, incident response and governance. Assume I can study for 30 minutes per day. Include a simple practical exercise at the end of each week.”
Weak vs structured prompt: financial analysis
Weak:
“Is this company doing well?”
Structured:
“Using only the supplied audited financial statements, assess the company’s operating performance over the last three years. Compare revenue, operating profit, operating margin, free cash flow and net debt. Separate verified financial facts from your interpretation and identify both positive and negative trends. Present the result as an executive summary followed by a financial comparison table.”
Weak vs structured prompt: email
Weak:
“Write a customer email.”
Structured:
“Write a professional but friendly email to an existing customer whose service appointment must be moved from Friday morning to Monday afternoon because the technician is unavailable. Apologise briefly, confirm that there is no additional charge and ask them to confirm whether Monday works. Keep the message under 150 words.”
Do you need all five building blocks every time?
No.
This is important.
A framework is a tool, not a rule.
If you ask:
“Rewrite this sentence in simpler English.”
the goal, instructions and output are already obvious.
Adding five sections would make the task unnecessarily complicated.
Use the building blocks when they add clarity.
How much context is enough?
This is one of the most useful judgement calls in prompting.
You need enough context to remove important ambiguity.
But irrelevant context can make prompts longer, slower and potentially more confusing.
Ask:
Would this piece of information materially change the answer?
If yes, it probably belongs in the context.
If no, it may not be necessary.
Relevant context vs unnecessary context
Suppose you ask AI to help prepare a presentation.
Relevant:
- audience;
- presentation objective;
- duration;
- topic;
- key data;
- desired outcome.
Probably irrelevant:
- what you ate for breakfast;
- the colour of your car;
- the weather last Tuesday;
- unrelated project history.
More information is not automatically more useful information.
How should you structure long prompts?
For longer prompts, labels can help.
For example:
Objective:
Create an executive summary of the assessment.
Audience:
Board members with limited technical knowledge.
Source:
Use only the supplied assessment.
Requirements:
- Identify the five biggest risks.
- Explain the business impact.
- Highlight management decisions required.
- Do not invent missing information.
Output:
Maximum one page, followed by a table of priority actions.
Structured labels can make complex prompts easier to maintain.
Prompt order can help clarity
There is no universal requirement for the exact order of every prompt.
But a logical structure is often:
CONTEXT → GOAL → INSTRUCTIONS → CONSTRAINTS → OUTPUT
This mirrors how people often give work instructions.
First explain the situation.
Then explain the objective.
Then explain the work.
Then define the boundaries.
Finally, specify the deliverable.
One task per prompt?
Simple prompts can certainly contain several related actions.
But problems arise when users combine completely different objectives.
For example:
“Analyse this financial report, write a customer email, create a logo concept, explain machine learning and plan my holiday.”
Those tasks have nothing to do with one another.
Separating them usually produces a cleaner workflow.
Complex tasks can be broken into stages
Suppose you need to create a business strategy.
Instead of one enormous prompt, the workflow could be:
STEP 1
Understand the business.
↓
STEP 2
Analyse customers and competitors.
↓
STEP 3
Identify opportunities.
↓
STEP 4
Evaluate alternatives.
↓
STEP 5
Create the final strategy.
This technique becomes increasingly important later when we discuss prompt chaining.
The role of examples
Sometimes describing the required output is difficult.
Examples can help.
For instance:
“Write the new summary using the same structure and level of detail as the two examples below. Do not copy the wording.”
Examples can show the AI:
- tone;
- format;
- length;
- level of detail;
- classification rules; or
- desired patterns.
We will explore this properly in Article 5 of this learning path.
Define what the AI should do when information is missing
This is especially valuable for analytical work.
For example:
“If required information is missing, identify the missing information rather than making an assumption.”
or:
“If you cannot determine the answer from the supplied evidence, respond with ‘Insufficient evidence’ and explain what information would be required.”
This creates a much better failure mode than allowing the model to silently fill gaps.
Specify facts vs ideas
If your prompt combines evidence and creativity, clarify the difference.
For example:
“First list verified observations from the data. Then provide possible explanations in a separate section labelled Hypotheses.”
This reduces the chance that generated interpretations are confused with factual findings.
Prompt structure can improve repeatability
If you perform the same task regularly, prompt structure becomes even more valuable.
Suppose you prepare a weekly management report.
A reusable template might include:
- reporting period;
- source data;
- audience;
- required KPIs;
- exceptions;
- decisions required;
- format.
Every week, you replace only the variable information.
This makes the process more consistent.
A reusable five-block prompt template
You can copy this structure for your own work:
GOAL
What result am I trying to achieve?
CONTEXT
What does the AI need to know about the situation, audience or source?
INSTRUCTIONS
What exactly should the AI do?
CONSTRAINTS
What rules, limitations, sources, tone or boundaries apply?
OUTPUT
What should the final answer look like?
Example reusable template
You could turn it into:
Goal: [What I need to achieve]
Context: [Relevant background, audience and source information]
Task: [What you should do]
Constraints: [Rules, exclusions, tone, length, sources]
Output: [Required structure]
This is deliberately simple.
The objective is to improve thinking, not add unnecessary bureaucracy to prompting.
A prompt quality checklist
Before sending an important prompt, ask:
- Is the goal clear?
- Have I provided the context that actually matters?
- Is the task specific?
- Have I defined important constraints?
- Does the AI know what the final output should look like?
- Have I explained what to do if information is missing?
- Am I asking for factual claims that will need verification?
If those questions are answered well, you probably have a strong prompt.
Common prompt-structure mistakes
Mistake 1 — Giving instructions without context
“Create a strategy.”
The AI does not know enough about the environment.
Mistake 2 — Giving context without a clear task
You paste five pages of information but never explain what you want done with it.
Mistake 3 — Overloading the prompt with irrelevant background
The key information gets buried inside unnecessary detail.
Mistake 4 — Not defining output
The response may be technically useful but awkward to use.
Mistake 5 — Conflicting constraints
“Be extremely detailed, but use only three bullet points.”
Mistake 6 — Forgetting uncertainty
The model may make assumptions when information is missing.
Prompting is really requirements definition
If you have ever managed a project, written a specification or delegated work, good prompting may feel familiar.
You are defining requirements.
You are explaining:
WHAT
+
WHY
+
WITH WHAT INFORMATION
+
UNDER WHAT RULES
+
IN WHAT FORMAT
This is why good prompting is a transferable skill.
It is really a form of clear thinking and communication.
Frequently asked questions
What are the main parts of a good AI prompt?
A useful structure is goal, context, instructions, constraints and output format.
Do I need all five parts every time?
No. Simple tasks may need only a short instruction. Use additional structure when it improves clarity.
What is context in an AI prompt?
Context is the background information the AI needs to understand the task, audience, situation or source material.
What are prompt constraints?
Constraints define rules such as tone, length, allowed sources, exclusions, geography, time period and other boundaries.
Why should I define the output format?
It helps the AI produce information in a structure you can use immediately, such as a table, checklist or executive summary.
Can I use headings inside prompts?
Yes. Headings such as Context, Task, Requirements and Output can make complex prompts easier to understand and maintain.
Can I give the AI several instructions?
Yes, particularly when the instructions are related. Complex tasks can also be broken into separate stages.
Should I include examples?
Examples can be very useful when the desired style, classification or output pattern is difficult to describe.
Can a structured prompt prevent hallucinations?
No. Better structure can reduce ambiguity and encourage factual discipline, but important information still requires appropriate verification.
How much context should I provide?
Provide enough relevant information to remove important ambiguity. Avoid adding information that does not materially affect the task.
Key takeaways
- A strong prompt can often be built from five elements: goal, context, instructions, constraints and output.
- The goal explains what successful work should achieve.
- Context gives the AI the background information it needs.
- Instructions define the work to perform.
- Constraints establish important boundaries.
- Output requirements make the final response easier to use.
- You do not need all five elements for every simple prompt.
- More context is not automatically better; relevant context is better.
- Complex prompts benefit from clear labels and structured requirements.
- Reusable prompt structures improve consistency for repeated tasks.
- Good prompting is ultimately a form of clear requirements definition.
Continue the AI Prompting learning path
You now know the basic anatomy of a strong prompt.
The next step is to go deeper into the two elements that often have the biggest effect on AI output:
context and constraints.
How much information should you provide?
How do you prevent irrelevant information from overwhelming the task?
How do you tell AI exactly what it should and should not do?
Next: Context, Instructions and Constraints — How to Get Better AI Answers →