In the previous two articles, we introduced prompts and broke a strong prompt into five building blocks:
GOAL → CONTEXT → INSTRUCTIONS → CONSTRAINTS → OUTPUT
In this lesson, we are going to focus on three of the most important parts:
context, instructions and constraints.
These three elements often determine whether an AI response feels useful and specific or vague and generic.
Why context changes the answer
AI does not automatically know the details of your situation.
If you ask:
“Create a marketing plan.”
the AI does not know:
- what your business sells;
- who your customers are;
- where you operate;
- what your budget is;
- what marketing you already do;
- what outcome you want; or
- what limitations you face.
Without that information, the model has to rely on general patterns and assumptions.
The result is often generic.
What is context in an AI prompt?
Context is the background information the AI needs to understand the task properly.
Context might include:
- who you are;
- what your organisation does;
- who the audience is;
- the current situation;
- relevant history;
- business goals;
- source documents;
- important facts;
- data;
- examples; and
- constraints already in place.
A simple context example
Compare these two prompts.
Prompt A:
“Give me ideas to improve customer service.”
Prompt B:
“I run a small online retailer in South Africa. Most customer complaints relate to delayed deliveries and poor communication after orders are placed. We have a three-person support team and cannot afford to add more staff this quarter. Suggest five ways to improve customer service without increasing headcount.”
Prompt B gives the AI a much clearer picture.
It now understands:
- the business type;
- the country;
- the main customer problems;
- the available team size; and
- the budget limitation.
Relevant context is better than more context
One of the biggest mistakes beginners make is assuming that more information is always better.
It is not.
Too much irrelevant context can make prompts harder to understand.
Ask yourself:
Would this information materially change the answer?
If yes, it probably belongs in the prompt.
If no, it may be unnecessary.
Relevant vs irrelevant context
Suppose you want AI to help prepare a 15-minute presentation for executives.
Relevant context:
- the topic;
- the audience;
- the purpose;
- the time available;
- the key findings;
- the decision required.
Probably irrelevant context:
- your entire career history;
- unrelated meetings;
- old project details;
- information that has no impact on the presentation.
The goal is not maximum context.
The goal is useful context.
Context can include source material
One of the most powerful forms of context is source information.
This can include:
- a policy;
- a report;
- a spreadsheet;
- a transcript;
- a contract;
- meeting notes;
- source code;
- a chart;
- an image; or
- other documents.
For example:
“Using the attached policy, identify the approval requirements for purchases over R100,000.”
The document becomes the evidence base for the task.
Context can include the audience
The same subject can require very different explanations for different audiences.
Consider:
“Explain ransomware.”
Now compare:
“Explain ransomware to a board member who needs to understand the business risk but does not need technical malware details.”
Or:
“Explain ransomware to a security engineer and include the typical attack chain, common persistence mechanisms and detection opportunities.”
The subject is the same.
The context changes the output.
Context can include your objective
Suppose you ask:
“Analyse this competitor.”
The purpose matters.
Are you trying to:
- compete on price;
- identify a market gap;
- understand their positioning;
- copy their marketing model;
- evaluate acquisition potential; or
- decide whether to enter the market?
The objective helps determine what the AI should focus on.
What are instructions?
Instructions tell the AI what you actually want it to do.
Useful instruction verbs include:
- analyse;
- compare;
- summarise;
- extract;
- rewrite;
- classify;
- prioritise;
- critique;
- generate;
- explain;
- recommend; and
- evaluate.
Vague instructions create vague results
Consider:
“Look at this report.”
What should the AI do with it?
Summarise it?
Find errors?
Identify risks?
Compare it to another report?
Rewrite it?
A clearer instruction would be:
“Analyse this report and identify the five highest business risks. For each one, explain the supporting evidence, likely impact and recommended next step.”
Instructions should describe the work
Good instructions answer:
What exactly should the AI do with the information?
For example:
“Summarise the document.”
is reasonable.
But:
“Summarise the document for senior management, focusing only on risks, decisions required and actions due within the next 90 days.”
is much more useful.
Complex work benefits from step-by-step instructions
If the task has several parts, make them explicit.
For example:
- Read the supplied findings.
- Group related issues.
- Identify recurring root causes.
- Prioritise the three most significant risks.
- Explain the business impact.
- Recommend the next action for management.
This is easier to follow than a single vague instruction.
What are constraints?
Constraints define the boundaries of the task.
They answer questions such as:
- What must the AI avoid?
- How long should the answer be?
- What sources may it use?
- What tone is required?
- What geography applies?
- What time period matters?
- What assumptions are allowed?
- What information should be excluded?
Common types of constraints
Length
“Keep the response under 300 words.”
Tone
“Use professional but conversational language.”
Audience
“Write for non-technical executives.”
Sources
“Use only the supplied document.”
Geography
“Focus on the South African market.”
Time period
“Use information from the last three financial years.”
Output discipline
“Do not invent missing facts.”
Format
“Return the answer as a table.”
Constraints reduce ambiguity
Consider this prompt:
“Suggest some business ideas.”
The possible answer space is enormous.
Now add constraints:
“Suggest 10 small-business ideas that can be launched in South Africa for under R50,000, do not require a physical retail store and can realistically be operated by one person during the first six months.”
The AI now has a much narrower and more useful search space.
Constraints can improve factual discipline
For research or analytical work, constraints can help reduce unsupported claims.
For example:
“Use only the supplied audited financial statements for financial figures.”
“If a figure cannot be verified, label it as unavailable.”
“Do not infer causation unless the source evidence supports it.”
“Separate facts, interpretations and recommendations.”
These rules make the expected reasoning more explicit.
Context and constraints work together
Context tells the AI:
“Here is the world you are working in.”
Constraints tell the AI:
“Here are the boundaries you must stay within.”
Instructions tell the AI:
“Here is what I want you to do.”
Together:
CONTEXT + INSTRUCTIONS + CONSTRAINTS → MORE CONTROLLED OUTPUT
A practical small-business example
Suppose a small restaurant wants to improve weekday bookings.
Context:
The restaurant is located in Pretoria, seats 50 people and is busiest on Friday and Saturday evenings.
Instruction:
Generate ideas to increase Tuesday-to-Thursday dinner bookings.
Constraints:
- monthly marketing budget under R5,000;
- do not discount all menu items;
- focus on local customers;
- ideas must be testable within 30 days.
A complete prompt could be:
“We operate a 50-seat restaurant in Pretoria. Friday and Saturday evenings are busy, but Tuesday to Thursday dinner bookings are weak. Generate eight marketing experiments we can test within 30 days to increase midweek bookings. Keep total marketing spend below R5,000 per month and avoid blanket discounts across the menu. Focus on local customers. For each idea, explain the cost, effort, expected benefit and one metric we should track.”
A practical learning example
Context:
You are new to finance and understand basic percentages.
Instruction:
Teach operating margin.
Constraints:
- avoid accounting jargon;
- use a simple example;
- maximum 500 words;
- include one practice question.
Prompt:
“Teach me operating margin. I understand basic percentages but have no accounting background. Use a simple business example, avoid technical accounting terminology, keep the explanation under 500 words and finish with one practice question so I can check whether I understand it.”
A practical cybersecurity example
Suppose you need to explain a finding to management.
Context:
A vulnerability assessment found several unsupported operating systems.
Instruction:
Explain the risk.
Constraints:
- audience is executives;
- avoid deep technical detail;
- focus on business impact;
- do not exaggerate the likelihood of compromise.
Prompt:
“Explain the risk of unsupported operating systems to an executive audience. Focus on business impact, security exposure and operational resilience. Avoid detailed technical terminology and do not imply that compromise has already occurred unless the evidence supports it. End with three management actions.”
A practical financial research example
Suppose you are reviewing a company.
Context:
You have three years of audited annual reports.
Instruction:
Analyse operating performance.
Constraints:
- use only audited financial data;
- separate fact from interpretation;
- cite every important figure;
- identify positive and negative trends;
- do not provide investment advice.
Prompt:
“Using only the supplied audited annual reports, analyse the company’s operating performance over the last three years. Compare revenue, operating profit, operating margin, free cash flow and net debt. Cite the source for each significant financial figure. Separate verified facts from your interpretation, identify both positive and negative trends and do not provide investment advice.”
What should AI do when information is missing?
This is one of the most useful constraints you can add.
Tell the AI how to handle uncertainty.
For example:
“If the information is not available, say ‘Insufficient information’ rather than making an assumption.”
or:
“List any missing information that would be required to reach a reliable conclusion.”
This gives the model a safe failure path.
Make assumptions visible
Sometimes assumptions are necessary.
If so, ask the AI to identify them.
For example:
“If you need to make an assumption, list it explicitly before using it.”
This is far better than allowing assumptions to remain hidden inside the answer.
Separate facts from interpretation
A strong analytical prompt may request sections such as:
Verified Facts
Observations
Possible Explanations
Recommendations
This helps readers understand what came directly from evidence and what was generated as analysis.
Do not overload the AI with unnecessary instructions
Constraints are useful.
Too many constraints can become counterproductive.
For example:
“Write a detailed explanation, keep it under 50 words, include 10 examples, use no bullet points, be comprehensive, keep it simple and explain every concept thoroughly.”
These requirements conflict.
Prioritise what matters most.
Conflicting instructions create trade-offs
If you say:
“Be extremely detailed.”
and:
“Keep the answer to two sentences.”
the AI cannot fully satisfy both requirements.
When constraints conflict, decide which one matters more.
Positive instructions can be better than only negative instructions
Instead of only saying:
“Do not be technical.”
say:
“Explain the issue in plain business language suitable for a non-technical executive.”
This describes the desired result rather than only what should be avoided.
Context can be gathered interactively
You do not always need to know which context to provide upfront.
You can ask the AI:
“I want help creating a business plan. Before you create it, ask me the questions you need to understand the business, target customers, pricing, costs, competition and objectives.”
The AI can then help gather the context.
Clarifying questions can improve complex tasks
For difficult work, consider adding:
“Before producing the final answer, ask up to five clarifying questions if important information is missing.”
This can be much better than forcing the model to guess.
When should AI not ask questions?
For simple tasks, extra questions may be unnecessary.
If you ask:
“Rewrite this sentence more clearly.”
the model probably has enough information.
Again, match the process to the complexity of the task.
Context engineering
As AI applications become more advanced, you may hear the term context engineering.
Context engineering goes beyond one user’s prompt.
It considers all the information supplied to the model, including:
- system instructions;
- user requests;
- conversation history;
- retrieved documents;
- memory;
- tool outputs;
- examples;
- structured data; and
- security boundaries.
A sophisticated AI application may construct this context automatically.
Prompt engineering vs context engineering
A useful distinction is:
Prompt engineering:
How should we instruct the model?
Context engineering:
What information should the model have available to perform this task?
They overlap, but context engineering looks at the wider system.
A reusable three-part template
For many everyday tasks, you can use:
CONTEXT
[Describe the relevant situation, audience and source information.]
INSTRUCTIONS
[Explain what you want the AI to do.]
CONSTRAINTS
[Define rules, boundaries, exclusions, sources and uncertainty handling.]
Then add your preferred output format.
Example template
Context: I manage a small engineering company with 30 employees. We are reviewing customer complaints from the last six months.
Instructions: Group the complaints into recurring themes and identify the five issues most likely to affect customer retention.
Constraints: Use only the supplied complaints. Do not invent root causes. If evidence is insufficient, say so. Separate direct customer feedback from your interpretation.
Output: Provide a table containing Theme, Evidence, Frequency, Likely Impact and Priority.
A simple checklist
Before submitting a complex prompt, ask:
- Does the AI understand the situation?
- Does it know who the audience is?
- Does it have the required source information?
- Is the task clear?
- Are the important boundaries defined?
- Does it know how to handle missing information?
- Have I removed irrelevant context?
- Are any instructions contradictory?
Frequently asked questions
What is context in an AI prompt?
Context is the relevant background information the AI needs to understand the situation, audience, source material and objective of the task.
How much context should I give AI?
Provide enough relevant information to remove important ambiguity. Avoid including large amounts of information that do not materially affect the answer.
What are instructions in a prompt?
Instructions define the specific action or actions the AI should perform, such as analyse, compare, summarise or extract.
What are prompt constraints?
Constraints define boundaries such as allowed sources, length, tone, geography, time period, exclusions and how uncertainty should be handled.
Can constraints stop hallucinations?
No. They can reduce ambiguity and encourage better factual discipline, but important claims still require verification.
Should I tell AI not to guess?
For evidence-based tasks, yes. Instructing the AI to flag missing information rather than inventing answers can improve reliability.
Can AI ask me for missing context?
Yes. You can instruct it to ask clarifying questions before completing a complex task.
Can too much context hurt the answer?
Yes. Large amounts of irrelevant or conflicting information can reduce focus and increase processing cost.
What is context engineering?
Context engineering is the broader practice of designing all the information, instructions, memory, retrieved evidence and tool outputs made available to an AI model.
Should I use the same constraints for every task?
No. Constraints should match the objective and risk of the task.
Key takeaways
- Context gives AI the information it needs to understand the task.
- Relevant context is more valuable than simply providing more information.
- Instructions define exactly what the AI should do.
- Constraints define the boundaries of the task.
- Context, instructions and constraints work together to reduce ambiguity.
- Source material is an important form of context.
- Constraints can define length, tone, scope, sources and uncertainty handling.
- Tell AI what to do when evidence is missing.
- Facts, assumptions and interpretations should be separated for analytical work.
- Conflicting instructions should be removed or prioritised.
- Complex prompts can use clarifying questions to gather missing context.
- Context engineering becomes increasingly important as AI applications become more advanced.
Continue the AI Prompting learning path
You now understand how context, instructions and constraints shape AI output.
The next step is to turn these principles into repeatable structures.
Instead of rebuilding every prompt from scratch, we can use simple frameworks that help us remember which information matters.
Next: Prompt Frameworks Explained — Simple Structures for Better AI Results →