Lesson 2 – Instructions and Context
Level: Beginner → Intermediate
Introduction
Instructions and Context is a vital subject of AI learning because comprehensive instructions produce a desired response which leads to a logical results. In Lesson 1, we learned that a good prompt consists of four key elements:
- Task
- Context
- Format
- Constraints
Among these elements, instructions and context are often the most important. Even the most advanced AI system cannot read minds. It only knows what you tell it.
Many disappointing AI responses occur because users provide insufficient instructions or fail to include relevant context. The AI then makes assumptions, fills in missing details, or produces generic answers that may not meet the user’s needs.
Imagine asking a travel consultant:
Recommend a vacation.
The consultant has no idea:
- Where you live
- Your budget
- Your interests
- How long you want to travel
The same principle applies to AI.
The more useful context and instructions you provide, the better the response is likely to be.
This lesson explores how instructions and context work together to improve AI outputs and help users achieve more accurate, relevant, and useful results.
Learning Objectives
By the end of this lesson, you will be able to:
✓ Understand the difference between instructions and context
✓ Provide meaningful background information
✓ Create clearer prompts
✓ Improve AI accuracy and relevance
✓ Avoid common context-related mistakes
✓ Use context strategically for different tasks
✓ Build prompts that generate better results
What Are Instructions?
Instructions tell AI what action you want it to perform.
They provide direction and define the expected task.
Examples include:
Explain artificial intelligence.
Summarize this article.
Write a professional email.
Compare electric cars and gasoline cars.
Create a business plan.
In each case, the instruction tells AI what type of work needs to be done.
Think of instructions as the destination.
Without a clear destination, the AI may not know where to go.
What Is Context?
Context provides background information that helps AI understand the situation.
Context answers questions such as:
- Who is the audience?
- What is the purpose?
- What is the situation?
- What level of knowledge is expected?
- What outcome is desired?
Example:
Instruction:
Explain machine learning.
Context:
Explain machine learning to a high school student who has no technical background.
The instruction remains the same, but the context changes how the AI responds.
Why Context Matters
Context helps AI generate responses that are:
- More relevant
- More accurate
- More personalized
- More useful
Without context, AI often provides generic responses.
Consider these examples.
Example 1
Prompt:
Write a blog post about leadership.
The AI may create a general article.
Example 2
Prompt:
Write a 1,000-word blog post about leadership for first-time managers working in small businesses.
The response becomes much more targeted.
The additional context improves quality.
Instructions Without Context
Many beginners provide instructions but no context.
Example:
Create a marketing plan.
Questions immediately arise:
- For what business?
- What products?
- What budget?
- What audience?
Because important information is missing, the response may be too broad.
Instructions With Context
Now consider:
Create a six-month marketing plan for a new online course teaching artificial intelligence to beginners. The target audience is working professionals aged 25–45. The marketing budget is $500 per month.
This prompt provides meaningful context.
The AI now understands:
- The business
- The product
- The audience
- The budget
As a result, the response becomes more useful.
Types of Context
Several types of context can improve AI responses.
Audience Context
Tell AI who will receive the information.
Examples:
- Beginners
- Students
- Business owners
- Teachers
- Children
- Professionals
Example:
Explain cybersecurity to complete beginners.
The explanation becomes simpler and easier to understand.
Purpose Context
Explain why the information is needed.
Example:
Explain cybersecurity concepts for a company training session.
The AI understands the intended use.
Industry Context
Specify the relevant industry or field.
Examples:
- Healthcare
- Education
- Marketing
- Finance
- Manufacturing
Example:
Explain how artificial intelligence is used in healthcare.
The response becomes industry-specific.
Experience Level Context
Indicate the user’s level of knowledge.
Examples:
- Beginner
- Intermediate
- Advanced
Example:
Explain prompt engineering for beginners.
This prevents overly technical explanations.
Situational Context
Describe the circumstances surrounding the request.
Example:
A small business wants to improve customer service using AI. Suggest practical solutions.
The situation helps AI generate more relevant recommendations.
Combining Instructions and Context
Strong prompts combine both elements.
Weak Prompt
Create a lesson plan.
Improved Prompt
Create a 45-minute lesson plan introducing artificial intelligence to high school students with no prior knowledge of the topic.
The second version produces a more useful response.
How Context Influences AI Output
Let’s examine a single instruction used with different contexts.
Instruction:
Write an article about artificial intelligence.
Context A
Write an article about artificial intelligence for elementary school students.
Context B
Write an article about artificial intelligence for business executives.
Context C
Write an article about artificial intelligence for software developers.
Although the instruction remains identical, the responses will differ significantly because the audience changes.
This demonstrates the power of context.
Giving AI Relevant Information
One common mistake is either providing too little information or overwhelming the AI with unnecessary details.
Effective context should be:
- Relevant
- Clear
- Specific
- Helpful
Good Context:
Create a study plan for a beginner learning digital marketing.
Poor Context:
Create a study plan. I like football, pizza, and traveling.
The additional information is unrelated and unlikely to improve the response.
Common Mistakes When Providing Context
Mistake 1: No Context
Prompt:
Explain data analytics.
The AI has no audience information.
Better:
Explain data analytics to small business owners.
Mistake 2: Too Little Detail
Prompt:
Create a business plan.
Better:
Create a business plan for an online AI education platform targeting beginners.
Mistake 3: Irrelevant Details
Prompt:
Write a blog post about AI. My favorite color is blue.
The favorite color does not help the AI complete the task.
Mistake 4: Conflicting Information
Prompt:
Write a detailed report in 100 words.
Detailed reports generally require more than 100 words.
Conflicting instructions can reduce output quality.
Real-World Applications
Understanding instructions and context is valuable in many situations.
Education
Students can create:
- Study guides
- Summaries
- Practice tests
- Learning plans
Example:
Create a study guide for a student preparing for a biology exam.
Business
Managers can create:
- Reports
- Proposals
- Marketing plans
- Training materials
Example:
Create a customer service training guide for retail employees.
Content Creation
Writers can generate:
- Blog posts
- Social media content
- Email campaigns
- Video scripts
Example:
Write a YouTube script about AI tools for beginners.
Research
Researchers can:
- Summarize information
- Compare sources
- Organize findings
Example:
Summarize the key benefits of renewable energy for policymakers.
Layering Context
Experienced prompt engineers often provide multiple layers of context.
Example:
You are an experienced career coach. Create a career roadmap for a university student interested in artificial intelligence. The student has basic computer skills but no programming experience. Present the roadmap in a step-by-step format covering the next two years.
This prompt includes:
- Role context
- Audience context
- Experience level
- Goal context
- Format instructions
Layered context often produces stronger outputs.
Practical Exercise
Improve the following prompts by adding instructions and context.
Prompt 1
Explain marketing.
Prompt 2
Write a report.
Prompt 3
Create a study plan.
Prompt 4
Suggest business ideas.
Questions to consider:
- Who is the audience?
- What is the purpose?
- What level of detail is required?
- What format should be used?
Knowledge Check
- What is the difference between instructions and context?
- Why is context important?
- Name four types of context.
- What happens when prompts lack context?
- Why should context be relevant to the task?
Lesson Summary
Instructions tell AI what to do.
Context helps AI understand the situation, audience, purpose, and goals behind the request.
Together, instructions and context form the foundation of effective prompting.
Strong context helps AI:
- Produce more relevant responses
- Reduce misunderstandings
- Improve accuracy
- Deliver higher-quality outputs
As prompts become more complex, the ability to provide useful context becomes one of the most valuable skills in prompt engineering.
In the next lesson, we will build on this foundation by learning how to assign roles and objectives, allowing AI to think and respond from specific perspectives.
Next Lesson
Lesson 3 – Roles and Objectives
Learn how assigning roles such as teacher, marketer, consultant, researcher, or coach can dramatically improve AI responses and help you achieve more targeted results.