| Assessment Type | Weight | Description |
|---|---|---|
| Module Labs | 30% | Hands‑on exercises for each module |
| Quizzes | 20% | Knowledge checks for key concepts |
| Capstone Project | 40% | Complete AI agent solution from design to deployment |
| Participation | 10% | Discussion and collaboration |
Participants will design and deploy a complete agentic system addressing a real business problem. The project must demonstrate:
Graduates leave with a portfolio‑ready project demonstrating advanced AI automation skills.
After completing Level Two, learners are prepared for advanced topics such as:
Welcome to Module 1 of "AI and Automation Level Two"! You have already completed Level One. You know what AI is. You know what Automation is. You have even built a few projects. But now, we are going to go deeper. We are going to level up your skills.
Think of Level One as learning to ride a bicycle with training wheels. Level Two is when we take off the training wheels. We will learn to ride faster, to turn sharper, and even to do tricks. We will not just use AI – we will understand it. We will not just build simple automations – we will build complex ones.
In this first module, we will review everything you learned in Level One. But we will go deeper. We will understand the "why" behind the "what." We will look inside the AI brain. We will understand the math and logic behind the magic. Do not worry – we will keep it simple and fun. Let us get started!
By the end of this module, you will be able to:
In a busy town in Nigeria, there lived a young girl named Zainab. Zainab loved history. She loved learning about the past. One day, her grandfather told her about a magical machine called the "AI Time Machine." He said, "Zainab, this machine can take you back in time to see how AI was born. It can also take you to the future to see what AI will become."
Zainab was very excited. She sat in the machine and pressed the button. Whoosh! She was in the 1950s. She saw a group of scientists in a room. They were discussing a new idea – can machines think? They were the first AI researchers. They were like the first explorers of a new world.
Then, the machine took her to the 1980s. She saw computers that were as big as rooms. They were very slow compared to today's phones. But scientists were making progress. They were teaching computers to play chess and solve puzzles.
Then, she came to the 2000s. She saw the internet. She saw data growing like a huge river. This was the time when AI started to learn from all that data. It was like giving a child a library full of books.
Finally, she came to the present. She saw AI everywhere – in phones, cars, and hospitals. She even saw AI helping farmers in Nigeria. She saw the future too – AI that could cure diseases and explore space.
When she returned, her grandfather said, "Zainab, AI is not new. It has a long history. And it has a bright future. You are lucky to be born at this time. You can be part of this amazing journey."
What can we learn from this story? AI has a rich history. It started as an idea and grew into a powerful tool. Understanding this history helps us appreciate how far we have come and where we are going.
In Level One, we learned that AI stands for Artificial Intelligence. It is when machines become smart. But let us go deeper. What does "smart" really mean?
Definition: AI is the field of computer science that aims to create machines that can perform tasks that normally require human intelligence.
Why it is important: Understanding AI deeply helps us use it better. It also helps us see its limits and its power.
Simple explanation: AI is like teaching a computer to think, learn, and solve problems like a human. But it is not as good as a human in every way. It is good at some things, and not so good at others.
Real-life example: A calculator is very good at math. It is much faster than a human. But it cannot write a poem. AI is like that – it has strengths and weaknesses.
School example: An AI that helps with math is good at solving problems. But it might not understand the joke the teacher told in class.
Home example: A smart speaker is good at playing music. But it does not understand your feelings.
Nigerian example: An AI that helps farmers detect crop diseases is good at spotting sick plants. But it does not know the farmer's personal story.
Illustration (ASCII):
+-------------------+ | WHAT IS AI? | +-------------------+ | Machines that | | can think, learn, | | and solve | | problems | +-------------------+
Mini summary: AI is about making machines smart. But AI has strengths and weaknesses. It is not a magic solution for everything.
Automation is when machines do work by themselves. But let us go deeper. Automation is not just about robots. It is about making processes efficient and reliable.
Definition: Automation is the use of technology to perform tasks with minimal human intervention.
Why it is important: Automation saves time, reduces errors, and lets humans focus on creative work.
Simple explanation: Imagine you have a robot that can do your chores. That is automation. But automation can also be a computer program that sorts emails. It does not have to be a physical robot.
Real-life example: ATMs are automation. They let you withdraw money without a bank teller.
School example: The school bell is automation. It rings at the same time every day.
Home example: A dishwasher is automation. It washes dishes without you standing there.
Nigerian example: Automated traffic lights in Lagos help manage traffic.
Illustration (ASCII):
+-------------------+ | WHAT IS | | AUTOMATION? | +-------------------+ | Machines that do | | work without | | humans | +-------------------+
Mini summary: Automation is about machines doing work by themselves. It saves time and reduces errors.
AI is not new. It has been around for more than 70 years. Let us take a quick journey through its history.
Definition: The history of AI is the story of how scientists and engineers developed machines that could think.
Why it is important: Knowing history helps us understand the present and predict the future.
Simple explanation: Imagine AI as a baby that was born in the 1950s. It has grown a lot since then.
Real-life example: In 1956, a group of scientists held a conference at Dartmouth College. They coined the term "Artificial Intelligence." That is considered the birth of AI.
School example: In the 1980s, computers became smaller and cheaper. This helped AI grow.
Home example: In the 1990s, the internet gave AI access to huge amounts of data.
Nigerian example: Today, Nigerian universities are teaching AI. This is a new chapter in the history of AI.
Illustration (ASCII):
+-------------------+ | HISTORY OF AI | +-------------------+ | 1950s: Birth | | 1980s: Growth | | 2000s: Internet | | 2020s: Everywhere | +-------------------+
Mini summary: AI was born in the 1950s. It grew with computers and the internet. Today, it is everywhere.
AI comes in different types. There are three main types: Narrow AI, General AI, and Super AI.
Definition: Types of AI describe how smart and capable an AI is.
Why it is important: Knowing the types helps us understand what AI can and cannot do.
Simple explanation: Think of AI like a student. Narrow AI is like a student who is good at one subject. General AI is like a student who is good at many subjects. Super AI is like a student who is smarter than all teachers.
Real-life example: Voice assistants like Siri are Narrow AI. They are good at understanding voice commands, but not much else.
School example: An AI that only helps with math is Narrow AI.
Home example: A smart thermostat is Narrow AI. It only controls temperature.
Nigerian example: An AI that detects crop diseases is Narrow AI.
Illustration (ASCII):
+-------------------+ | TYPES OF AI | +-------------------+ | Narrow: One task | | General: Many | | Super: Smarter | | than humans | +-------------------+
Mini summary: There are three types of AI: Narrow, General, and Super. Most AI today is Narrow AI.
Machine Learning is the engine that powers AI. It is how AI learns from data.
Definition: Machine Learning is a way for computers to learn from data without being explicitly programmed.
Why it is important: Machine Learning is what makes AI smart. Without it, AI could not learn.
Simple explanation: Imagine you are teaching a dog to sit. You do not write a program for the dog. You show it examples. You say "sit," and you give a treat. The dog learns from examples. Machine Learning is the same. The AI learns from data.
Real-life example: Netflix uses Machine Learning to recommend movies. It learns from what you watch.
School example: An AI that learns to grade essays from examples of graded essays.
Home example: A smart camera that learns to recognize your face.
Nigerian example: An AI that learns to recognize different types of beans from pictures.
Illustration (ASCII):
+-------------------+ | MACHINE | | LEARNING | +-------------------+ | AI learns from | | data without | | explicit | | programming | +-------------------+
Mini summary: Machine Learning is how AI learns. It learns from data, like a student learns from a teacher.
Supervised Learning is a type of Machine Learning. In this type, the AI is given labeled data. It is like learning with a teacher.
Definition: Supervised Learning is when the AI learns from labeled data. The data has the correct answers.
Why it is important: Supervised Learning is the most common type of Machine Learning. It is used in many real-world applications.
Simple explanation: Imagine your teacher gives you a practice test. The test has questions and answers. You learn from the answers. Supervised Learning is the same. The AI learns from data that has the right answers.
Real-life example: An AI that recognizes spam emails. It is trained on emails that are labeled "spam" or "not spam."
School example: An AI that learns to recognize numbers. It is trained on pictures of numbers that are labeled.
Home example: An AI that learns to recognize your voice. It is trained on recordings of your voice that are labeled "your voice."
Nigerian example: An AI that learns to recognize different types of yams. It is trained on labeled pictures of yams.
Illustration (ASCII):
+-------------------+ | SUPERVISED | | LEARNING | +-------------------+ | AI learns from | | labeled data | | (with answers) | +-------------------+
Mini summary: Supervised Learning is when AI learns from labeled data. It is like learning with a teacher.
Unsupervised Learning is another type of Machine Learning. In this type, the AI is given unlabeled data. It has to find patterns on its own. It is like learning without a teacher.
Definition: Unsupervised Learning is when the AI learns from unlabeled data. It finds patterns on its own.
Why it is important: Unsupervised Learning helps us discover hidden patterns in data.
Simple explanation: Imagine you are given a box of mixed LEGO pieces. You have to sort them into groups without any instructions. You might sort them by color or by size. That is unsupervised learning. The AI finds patterns on its own.
Real-life example: An AI that groups customers into different categories based on their shopping habits.
School example: An AI that groups students based on their learning styles.
Home example: An AI that groups your photos by the people in them.
Nigerian example: An AI that groups different types of soil based on their properties.
Illustration (ASCII):
+-------------------+ | UNSUPERVISED | | LEARNING | +-------------------+ | AI finds patterns | | on its own | | from unlabeled | | data | +-------------------+
Mini summary: Unsupervised Learning is when AI finds patterns on its own from unlabeled data.
Reinforcement Learning is a third type of Machine Learning. In this type, the AI learns by trying things and getting rewards or punishments. It is like learning through trial and error.
Definition: Reinforcement Learning is when the AI learns by taking actions and receiving rewards or punishments.
Why it is important: Reinforcement Learning is used in games, robotics, and self-driving cars.
Simple explanation: Imagine you are teaching a dog a new trick. You give the dog a treat when it does the trick correctly. You do not give a treat when it does it wrong. The dog learns to do the trick to get the treat. Reinforcement Learning is the same. The AI learns to take actions that lead to rewards.
Real-life example: AI that plays chess. It plays many games. It learns which moves lead to winning.
School example: A student who learns by doing practice problems. They get a reward (a good grade) when they get it right.
Home example: A robot vacuum that learns the layout of your home. It gets a reward (faster cleaning) when it maps the room correctly.
Nigerian example: An AI that controls a drone for spraying crops. It learns to fly efficiently.
Illustration (ASCII):
+-------------------+ | REINFORCEMENT | | LEARNING | +-------------------+ | AI learns from | | rewards and | | punishments | | (trial and error) | +-------------------+
Mini summary: Reinforcement Learning is when AI learns from trial and error, getting rewards for good actions.
Building an AI is not just about training a model. It is a whole process. This process is called the AI Lifecycle.
Definition: The AI Lifecycle is the step-by-step process of building and deploying an AI system.
Why it is important: Understanding the lifecycle helps you build better AI systems. It helps you avoid mistakes.
Simple explanation: Imagine you are building a house. You do not just start building. You plan, you gather materials, you build, and you inspect. The AI Lifecycle is similar.
Real-life example: A company building an AI for self-driving cars follows the AI Lifecycle.
School example: A student building an AI for a science project follows the lifecycle.
Home example: You follow the lifecycle when you build a smart home project.
Nigerian example: A Nigerian startup building an AI for farming follows the lifecycle.
Illustration (ASCII):
+-------------------+ | AI LIFECYCLE | +-------------------+ | 1. Problem | | 2. Data | | 3. Train | | 4. Test | | 5. Deploy | | 6. Monitor | +-------------------+
Mini summary: The AI Lifecycle is the process of building an AI. It includes problem, data, training, testing, deployment, and monitoring.
You might be thinking, "Why are we reviewing all this? I already know it!" That is true. But in Level Two, we will go much deeper. We will build more complex systems. We will learn to code. We will understand the math. This review is to make sure we have a solid foundation.
Definition: A foundation is the base upon which everything else is built.
Why it is important: A strong foundation is essential for building tall buildings. A strong foundation in AI is essential for building advanced systems.
Simple explanation: Imagine you are building a tower. If the foundation is weak, the tower will fall. This review is like strengthening your foundation.
Real-life example: Builders always check the foundation before building higher.
School example: Teachers always review previous lessons before teaching new ones.
Home example: You check the batteries in your remote before using it.
Nigerian example: A farmer checks the soil before planting.
Illustration (ASCII):
+-------------------+ | WHY REVIEW? | +-------------------+ | Strong foundation | | For Level Two | | We will go deeper | +-------------------+
Mini summary: This review is important because it strengthens our foundation for the advanced topics in Level Two.
| Word | Simple Definition |
|---|---|
| AI (Artificial Intelligence) | Machines that can think, learn, and solve problems. |
| Automation | Machines doing work without human help. |
| Narrow AI | AI that is good at one specific task. |
| General AI | AI that is good at many tasks, like a human. |
| Super AI | AI that is smarter than any human. |
| Machine Learning | AI learns from data without explicit programming. |
| Supervised Learning | AI learns from labeled data (with answers). |
| Unsupervised Learning | AI finds patterns on its own from unlabeled data. |
| Reinforcement Learning | AI learns through trial and error, getting rewards. |
| AI Lifecycle | The process of building and deploying an AI. |
+----------+ +----------+ +----------+ +----------+
| PROBLEM |----->| DATA |----->| TRAIN |----->| TEST |
| (What) | | (Gather) | | (Teach) | | (Check) |
+----------+ +----------+ +----------+ +----------+
|
v
+----------+ +----------+ +----------+ +----------+
| MONITOR |<-----| DEPLOY |<-----| IMPROVE |<-----| (Fix) |
| (Watch) | | (Use) | | (Make | | |
+----------+ +----------+ | better) | +----------+
+----------+
+-------------------+
| MACHINE |
| LEARNING |
+-------------------+
|
v
+-------------------+
| Is data labeled? |
+-------------------+
/ \
Yes No
| |
v v
+----------------+ +----------------+
| SUPERVISED | | UNSUPERVISED |
| LEARNING | | LEARNING |
+----------------+ +----------------+
| Feature | Supervised Learning | Unsupervised Learning | Reinforcement Learning |
|---|---|---|---|
| Data type | Labeled (with answers) | Unlabeled (no answers) | Rewards/Punishments |
| Goal | Predict the answer | Find patterns | Maximize rewards |
| Example | Spam filter | Customer segmentation | Game playing AI |
| Like | Learning with a teacher | Learning on your own | Learning through practice |
Congratulations! You have completed Module 1 of "AI and Automation Level Two." Let us review what we covered.
You are now ready for Module 2. In the next module, we will dive into Advanced Automation Workflows. We will learn to build more complex automations using no-code tools. We will learn about variables, loops, and error handling. Get ready for some exciting challenges!
Match the word on the left with its correct definition on the right.
| Word | Definition |
|---|---|
| 1. Narrow AI | A. AI that is smarter than humans. |
| 2. Supervised Learning | B. AI that learns from labeled data. |
| 3. Reinforcement Learning | C. AI that is good at one task. |
| 4. Super AI | D. AI that learns through trial and error. |
| 5. Unsupervised Learning | E. AI that finds patterns on its own. |
Answers: 1-C, 2-B, 3-D, 4-A, 5-E
Activity: In groups of 3-4, create a timeline of AI history. Include the key events from the 1950s to today. Then, predict what you think will happen in the next 10 years. Present your timeline to the class.
Activity: Write a short essay on the type of AI you find most interesting. Explain why it is interesting and how it could be used in the future.
Project: Choose a problem in your community. Write a one-page plan for an AI solution. Include what type of Machine Learning you would use and why.
Assignment: Research a real-world AI application. Write a short report on it. Include what type of AI it is (Narrow, General, Super) and what type of Machine Learning it uses.
In Module 2, we will dive into Advanced Automation Workflows. We will learn to build complex automations using no-code tools. We will learn about variables, loops, error handling, and API integration. To prepare, think about a task in your life that you would like to automate. It could be something at home, at school, or in your community. Write it down. We will use it in the next module.
See you in Module 2!
Note: This is the end of Module 1. You are now ready for Module 2, where we will build advanced automations. Keep your curiosity alive!
Welcome to Module 2 of "AI and Automation Level Two"! In Module 1, we reviewed the basics. We strengthened our foundation. Now, it is time to build on that foundation. We are going to move from simple automations to advanced ones.
In Level One, you learned to build simple automations. You used tools like Make, n8n, or Power Automate. You connected a trigger to an action. That was like learning to walk. In this module, we will learn to run. We will build complex workflows with many steps. We will use variables, loops, and conditional logic. We will handle errors and integrate with APIs.
By the end of this module, you will be able to build automations that can handle real-world complexity. You will be able to connect multiple systems. You will be able to build workflows that are reliable and efficient. Let us get started!
By the end of this module, you will be able to:
In a busy town in Nigeria, there was a supermarket called "Fresh & Fast." The owner, Mr. Ade, was very smart. He had automated many things in his store. But he wanted to do more. He wanted to build a super automation – a system that could do many things at once.
He called his daughter, Chidinma, who was studying automation. He said, "Chidinma, I want a system that does three things. First, when a customer buys something, it should update the inventory. Second, if the inventory is low, it should order more stock. Third, it should send a thank-you message to the customer."
Chidinma said, "Father, that is a complex workflow. It has many steps. It has conditions. It has loops. Let me show you how to build it."
She opened her no-code automation tool. She started with a trigger: "When a customer makes a purchase."
Then, she added a step to update the inventory. She used a variable to store the item name and quantity. Then, she added a conditional logic step: "If inventory is less than 5, then order more." If the condition was true, she added a step to send an order to the supplier. If it was false, she skipped that step.
Then, she added a step to send a thank-you message. But she wanted to send it only if the customer had a valid email. She added another condition: "If customer email exists, then send email."
Finally, she added a loop. She wanted to loop through all the items in the shopping cart and update the inventory for each item.
When she finished, she showed it to her father. He was amazed. "This is incredible! It does everything automatically. It saves me so much time."
Chidinma smiled. "That is the power of advanced automation. It is not just about one action. It is about many actions working together."
What can we learn from this story? Advanced automation is about building complex workflows with many steps. It uses variables, conditions, loops, and error handling. It can connect multiple systems and handle real-world complexity.
In Level One, we built simple workflows. A simple workflow has one trigger and one action. For example: "When I get an email, send a text message." Advanced workflows have many steps. They use variables, conditions, and loops.
Definition: A simple workflow is a straight line. An advanced workflow is like a map with many paths.
Why it is important: Real-world problems are complex. Advanced workflows help us solve them.
Simple explanation: Imagine you are going to school. A simple workflow is taking the same route every day. An advanced workflow is like planning a trip with many stops and choices.
Real-life example: A simple workflow: turning on a light. An advanced workflow: a smart home system that turns on lights, adjusts the thermostat, and locks the doors.
School example: A simple workflow: checking attendance. An advanced workflow: checking attendance, sending a report to parents, and updating grades.
Home example: A simple workflow: setting an alarm. An advanced workflow: setting an alarm, turning on the coffee maker, and checking the weather.
Nigerian example: A simple workflow: sending a text. An advanced workflow: sending a text, checking inventory, and updating a database.
Illustration (ASCII):
+-------------------+ | SIMPLE WORKFLOW | | Trigger -> Action| +-------------------+ | ADVANCED WORKFLOW| | Trigger -> Action| | -> Condition | | -> Loop | | -> Action | +-------------------+
Mini summary: Simple workflows have one step. Advanced workflows have many steps and use variables, conditions, and loops.
A variable is like a box that stores information. You can put data in it, change it, and use it later. Variables are very useful in automation.
Definition: A variable is a container that holds a value. It can be a number, text, or a list.
Why it is important: Variables help us store and manipulate data in our workflows.
Simple explanation: Imagine you have a box. You can put a toy in it. You can take the toy out. You can put a different toy in. The box is a variable. The toy is the data.
Real-life example: In a workflow, you might store a customer's name in a variable. Then, you can use that variable in a thank-you message.
School example: You might store a student's grade in a variable. Then, you can use it to calculate the final grade.
Home example: You might store the temperature in a variable. Then, you can use it to decide whether to turn on the fan.
Nigerian example: You might store the quantity of yams in a variable. Then, you can use it to check if you need to order more.
Illustration (ASCII):
+-------------------+ | VARIABLE | | (Box) | +-------------------+ | Name: "Chidi" | | Age: 12 | | Score: 85.5 | +-------------------+
Mini summary: A variable is a container that stores data. You can use it in your workflow.
Conditional logic is like making a decision. You check a condition. If it is true, you do one thing. If it is false, you do another thing. It is like "If it rains, take an umbrella. Else, do not take an umbrella."
Definition: Conditional logic is a way to make decisions in a workflow based on a condition.
Why it is important: Real-world workflows need to make decisions. Conditional logic allows this.
Simple explanation: Imagine you are at a traffic light. If the light is green, you go. If it is red, you stop. That is conditional logic.
Real-life example: "If inventory is less than 5, order more. Else, do nothing."
School example: "If a student's grade is above 70, pass. Else, fail."
Home example: "If the temperature is above 30 degrees, turn on the fan. Else, turn it off."
Nigerian example: "If it rains, turn on the irrigation system less. Else, water the plants."
Illustration (ASCII):
+-------------------+ | CONDITION | | (If-Then-Else) | +-------------------+ | If condition is | | true | | -> Do A | | Else | | -> Do B | +-------------------+
Mini summary: Conditional logic lets your workflow make decisions. If a condition is true, do one thing. Else, do another.
A loop is a way to repeat an action multiple times. It is like doing something again and again until a condition is met.
Definition: A loop repeats a block of actions until a condition is met.
Why it is important: Loops save time. Instead of writing the same step 10 times, you use a loop.
Simple explanation: Imagine you have a list of 10 items. You want to send an email for each item. Instead of writing 10 emails, you use a loop. The loop sends an email for each item.
Real-life example: "For each item in the shopping cart, update the inventory."
School example: "For each student in the class, send a report card."
Home example: "For each family member, set the alarm."
Nigerian example: "For each farm plot, check the soil moisture."
Illustration (ASCII):
+-------------------+ | LOOP | | (Repeat) | +-------------------+ | For each item in | | the list: | | -> Do action | | Next item | +-------------------+
Mini summary: A loop repeats an action multiple times. It is useful for processing lists of items.
Error handling is about what happens when something goes wrong. It is like having a plan B. If an action fails, you want your workflow to handle it gracefully, not just break.
Definition: Error handling is a way to manage errors in a workflow so that it does not fail completely.
Why it is important: Errors happen. Good error handling makes your workflow reliable.
Simple explanation: Imagine you are walking to school. If the main road is blocked, you take another route. That is error handling.
Real-life example: "If the API call fails, retry three times. If it still fails, send a notification."
School example: "If the printer is out of paper, send a notification to the teacher."
Home example: "If the smart bulb does not turn on, send a notification to your phone."
Nigerian example: "If the water pump fails, send an alert to the farmer."
Illustration (ASCII):
+-------------------+ | ERROR HANDLING | +-------------------+ | Try: | | -> Do action | | Catch error: | | -> Retry | | -> Notify | +-------------------+
Mini summary: Error handling is about what to do when something goes wrong. It makes your workflow reliable.
API stands for Application Programming Interface. It is like a messenger. It lets two different systems talk to each other.
Definition: An API is a set of rules that lets one application talk to another.
Why it is important: APIs let us connect different systems. We can get data from one system and send it to another.
Simple explanation: Imagine you are at a restaurant. You tell the waiter your order. The waiter tells the chef. The chef cooks the food. The waiter brings it to you. The waiter is like an API. You are one system. The chef is another system.
Real-life example: A workflow that gets weather data from an API and sends it to a smart home system.
School example: A workflow that gets student data from a school database and sends it to a report card system.
Home example: A workflow that gets the latest news from an API and reads it aloud.
Nigerian example: A workflow that gets exchange rates from an API and updates a price list.
Illustration (ASCII):
+-------------------+ | API | +-------------------+ | System A ----API--| | ----> System B | +-------------------+
Mini summary: An API lets two systems talk to each other. It is a messenger.
A webhook is a way for one system to send real-time data to another system. It is like a phone call. When something happens, the system calls you.
Definition: A webhook is a real-time notification from one system to another.
Why it is important: Webhooks allow real-time communication. You do not have to wait.
Simple explanation: Imagine you are waiting for a package. Instead of calling the delivery company every hour, they call you when the package arrives. That is a webhook.
Real-life example: When a customer buys something on a website, a webhook sends the order to the fulfillment system.
School example: When a student submits an assignment, a webhook notifies the teacher.
Home example: When your smart doorbell detects motion, a webhook sends a notification to your phone.
Nigerian example: When a farmer's moisture sensor detects dry soil, a webhook sends a signal to the irrigation system.
Illustration (ASCII):
+-------------------+ | WEBHOOK | +-------------------+ | System A calls | | System B when | | something happens | +-------------------+
Mini summary: A webhook is a real-time notification. It is like a phone call from one system to another.
Micro-batching means sending data in small groups, not all at once. Rate limits are rules that control how many requests you can make to an API.
Definition: Micro-batching is sending data in small batches. Rate limits are rules about how many requests you can make.
Why it is important: APIs have rate limits. If you send too many requests, you might be blocked. Micro-batching helps you stay within the limits.
Simple explanation: Imagine you have 100 letters to send. You can send them one by one. Or you can send them in groups of 10. Sending them in groups of 10 is micro-batching. It is faster and more efficient.
Real-life example: Instead of sending 100 API requests at once, send them in batches of 10.
School example: Instead of sending all report cards at once, send them in batches of 20.
Home example: Instead of turning on all lights at once, turn them on one by one.
Nigerian example: Instead of sending all irrigation data at once, send it in small chunks.
Illustration (ASCII):
+-------------------+ | MICRO-BATCHING | +-------------------+ | Send 10 requests | | Wait | | Send 10 requests | | Wait | +-------------------+
Mini summary: Micro-batching means sending data in small groups. Rate limits control how many requests you can make.
Security is very important in automation. You do not want your data to be stolen or misused. Here are some best practices.
Definition: Security best practices are rules that keep your data safe.
Why it is important: Security prevents data breaches and protects your privacy.
Simple explanation: Imagine you have a secret diary. You keep it in a safe place. You do not share the key with strangers. Security is like that.
Real-life example: Use strong passwords. Do not share API keys.
School example: Do not share your login details with anyone.
Home example: Use a secure Wi-Fi password.
Nigerian example: Be careful when sharing your BVN (Bank Verification Number).
Illustration (ASCII):
+-------------------+ | SECURITY | +-------------------+ | Use strong | | passwords | | Store API keys | | safely | | Don't share | | secrets | +-------------------+
Mini summary: Security best practices keep your data safe. Use strong passwords and protect your secrets.
Now, let us put everything together. We will build a multi-step workflow. It will use variables, conditions, loops, and error handling.
Definition: A multi-step workflow has many steps that work together.
Why it is important: It solves complex problems.
Simple explanation: It is like a recipe with many ingredients and steps.
Real-life example: A workflow that processes customer orders. It checks inventory, updates the database, and sends a confirmation email.
School example: A workflow that processes student grades. It calculates the final grade, updates the report card, and notifies the parents.
Home example: A workflow that manages your smart home. It checks the temperature, adjusts the thermostat, and sends a report to your phone.
Nigerian example: A workflow that manages a farm. It checks soil moisture, controls irrigation, and sends alerts to the farmer.
Illustration (ASCII):
+-------------------+ | MULTI-STEP | | WORKFLOW | +-------------------+ | 1. Trigger | | 2. Action | | 3. Condition | | 4. Loop | | 5. Action | | 6. Error handling | +-------------------+
Mini summary: A multi-step workflow combines variables, conditions, loops, and error handling to solve complex problems.
| Word | Simple Definition |
|---|---|
| Variable | A container that stores data. |
| Conditional Logic | Making decisions in a workflow (If-Then-Else). |
| Loop | Repeating an action multiple times. |
| Error Handling | Managing errors so the workflow does not break. |
| API | A way for two systems to talk to each other. |
| Webhook | A real-time notification from one system to another. |
| Micro-batching | Sending data in small groups. |
| Rate Limit | A rule that controls how many API requests you can make. |
| Security | Keeping your data safe. |
| Multi-step Workflow | A workflow with many steps. |
+----------+ +----------+ +----------+ +----------+
| TRIGGER |----->| ACTION |----->| CONDITION|----->| LOOP |
| (Start) | | (Step 1) | | (If) | | (Repeat) |
+----------+ +----------+ +----------+ +----------+
|
v
+----------+ +----------+ +----------+ +----------+
| ACTION |<-----| ACTION |<-----| ERROR |<-----| ACTION |
| (Step 5) | | (Step 4) | | HANDLE | | (Step 3) |
+----------+ +----------+ +----------+ +----------+
+-------------------+
| Is inventory |
| less than 5? |
+-------------------+
/ \
Yes No
| |
v v
+----------------+ +----------------+
| Order more | | Do nothing |
| stock | | |
+----------------+ +----------------+
| Feature | Simple Workflow | Advanced Workflow |
|---|---|---|
| Number of steps | 1-2 steps | Many steps |
| Uses variables | No | Yes |
| Uses conditions | No | Yes |
| Uses loops | No | Yes |
| Error handling | No | Yes |
| Example | Send an email | Process customer order |
Congratulations! You have completed Module 2 of "AI and Automation Level Two." Let us review what we covered.
You are now ready for Module 3. In the next module, we will dive into Advanced Prompt Engineering. We will learn to write better prompts for AI. We will learn to create structured outputs. We will learn to evaluate prompt quality. Get ready for some exciting challenges!
Match the word on the left with its correct definition on the right.
| Word | Definition |
|---|---|
| 1. Variable | A. Repeating an action. |
| 2. Conditional Logic | B. A container that stores data. |
| 3. Loop | C. Connecting two systems. |
| 4. API | D. Making decisions (If-Then-Else). |
| 5. Webhook | E. Real-time notification. |
Answers: 1-B, 2-D, 3-A, 4-C, 5-E
Activity: In groups of 3-4, design a multi-step workflow for a real-world problem. Use variables, conditions, loops, and error handling. Present your workflow to the class.
Activity: Write a one-page plan for a multi-step workflow. Include the trigger, variables, conditions, loops, actions, and error handling. Describe what the workflow does and how it helps.
Project: Build a multi-step workflow using a no-code automation tool. Choose a problem you want to solve. Use variables, conditions, loops, and error handling. Test your workflow and document it.
Assignment: Research a real-world automation use case. Write a report on how it works, what steps are involved, and what technologies it uses.
In Module 3, we will dive into Advanced Prompt Engineering. We will learn to write better prompts for AI. We will learn to create structured outputs. We will learn to evaluate prompt quality. To prepare, think about a prompt you have used before. What did you like about it? What could be improved?
See you in Module 3!
Note: This is the end of Module 2. You are now ready for Module 3, where we will dive into advanced prompt engineering. Keep your curiosity alive!
Welcome to Module 3 of "AI and Automation Level Two"! In Module 1, we reviewed the basics. In Module 2, we built advanced automation workflows. Now, we are going to focus on something very important – how we talk to AI.
Have you ever asked an AI a question and gotten a weird or wrong answer? That happens because the prompt (the question you ask) was not clear enough. In this module, we will learn how to write advanced prompts that get better, more reliable answers.
Think of prompt engineering like giving instructions to a very smart but literal assistant. If you give vague instructions, you get vague results. If you give clear, detailed instructions, you get amazing results. By the end of this module, you will be able to craft prompts that produce consistent, structured, and high-quality outputs. Let us get started!
By the end of this module, you will be able to:
In a busy restaurant in Lagos, there was a chef named Emeka. Emeka was famous for his amazing jollof rice. But he had a problem. He wanted to create a new menu item. He decided to ask an AI for help.
He typed: "Give me a recipe."
The AI replied: "Here is a recipe for pancakes."
Emeka was frustrated. That was not what he wanted. He realized he needed to be more specific. He tried again: "Give me a Nigerian recipe using chicken and rice."
The AI replied: "Here is a recipe for chicken and rice stew."
That was better, but still not what he wanted. Emeka thought, "I need to give clearer instructions." He decided to use a Chain-of-Thought approach. He wrote: "Step 1: Think about the best Nigerian chicken dishes. Step 2: Choose the most popular one. Step 3: Provide a detailed recipe with ingredients and steps."
The AI replied with a perfect recipe for Nigerian chicken stew. Emeka was happy. But he wanted to take it further. He used a Tree-of-Thought approach. He asked for multiple versions: "Version 1: Spicy. Version 2: Mild. Version 3: With vegetables."
The AI gave him three amazing recipes. Emeka chose the best one and added it to the menu. It became a huge success.
What can we learn from this story? The quality of the answer depends on the quality of the prompt. Advanced prompt engineering techniques like Chain-of-Thought and Tree-of-Thought can help you get much better results.
A prompt is the question or instruction you give to an AI. It is like asking a friend for help. The clearer your question, the better the answer.
Definition: A prompt is the input you give to an AI to get a response.
Why it is important: The prompt is the most important factor in getting good results from AI.
Simple explanation: Imagine you are ordering food. If you say "food," you might get anything. If you say "a slice of pepperoni pizza," you get exactly what you want. A prompt is like your order.
Real-life example: "What is the capital of Nigeria?" is a prompt.
School example: "Explain photosynthesis" is a prompt.
Home example: "How do I fix a leaky tap?" is a prompt.
Nigerian example: "How do I make jollof rice?" is a prompt.
Illustration (ASCII):
+-------------------+ | PROMPT | | (Question/Input) | +-------------------+ | | | | v | +-------------------+ | AI | | (Responds) | +-------------------+ | | | | v | +-------------------+ | ANSWER | | (Output) | +-------------------+
Mini summary: A prompt is the input you give to an AI. A good prompt gets a good answer.
A simple prompt is short and general. An advanced prompt is detailed and specific. It gives the AI more context and instructions.
Definition: A simple prompt is brief. An advanced prompt is detailed with instructions.
Why it is important: Advanced prompts get better, more reliable results.
Simple explanation: "Tell me about dogs" is simple. "Tell me about the history of dogs as pets in Nigeria, including their breeds and uses" is advanced.
Real-life example: Simple: "Give me a recipe." Advanced: "Give me a healthy Nigerian soup recipe that is easy to make and uses local ingredients."
School example: Simple: "Explain photosynthesis." Advanced: "Explain photosynthesis in a way a 10-year-old can understand, including a diagram and a step-by-step process."
Home example: Simple: "How do I clean this?" Advanced: "How do I clean a stained white shirt using household items?"
Nigerian example: Simple: "How do I farm?" Advanced: "How do I farm cassava in Ogun State, including soil preparation, planting, and harvesting?"
Illustration (ASCII):
+-------------------+ +-------------------+
| SIMPLE PROMPT | | ADVANCED PROMPT |
| "Tell me about | | "Tell me about |
| dogs" | | dogs in Nigeria, |
+-------------------+ | including breeds, |
| uses, and care" |
+-------------------+
Mini summary: Advanced prompts are detailed and specific. They give the AI more context and instructions.
Chain-of-Thought is a technique where you ask the AI to think step-by-step. You break down the problem into smaller pieces.
Definition: Chain-of-Thought is when you ask the AI to show its reasoning step-by-step.
Why it is important: It helps the AI think more carefully and gives you more accurate answers.
Simple explanation: Imagine you are solving a math problem. You do not just write the answer. You write down each step. Chain-of-Thought is like that. You ask the AI to show its work.
Real-life example: "Step 1: Think about the problem. Step 2: Brainstorm solutions. Step 3: Choose the best solution. Step 4: Write the answer."
School example: "Step 1: Read the question. Step 2: Identify the key facts. Step 3: Solve the problem. Step 4: Check your answer."
Home example: "Step 1: Find the leak. Step 2: Turn off the water. Step 3: Fix the pipe. Step 4: Turn the water back on."
Nigerian example: "Step 1: Check the soil. Step 2: Determine if it needs water. Step 3: Turn on the irrigation. Step 4: Monitor the moisture."
Illustration (ASCII):
+-------------------+ | CHAIN-OF-THOUGHT | +-------------------+ | Step 1: Think | | Step 2: Plan | | Step 3: Execute | | Step 4: Review | +-------------------+
Mini summary: Chain-of-Thought asks the AI to think step-by-step. It leads to more accurate answers.
Tree-of-Thought is a technique where you ask the AI to explore multiple possible paths. It is like a tree with many branches.
Definition: Tree-of-Thought is when you ask the AI to consider multiple options before choosing the best one.
Why it is important: It helps the AI think more creatively and explore different possibilities.
Simple explanation: Imagine you are planning a trip. You consider flying, driving, or taking a train. You explore each option before choosing. Tree-of-Thought is like that.
Real-life example: "Option 1: Use chicken. Option 2: Use beef. Option 3: Use fish. Choose the best one and explain why."
School example: "Method 1: Use algebra. Method 2: Use geometry. Method 3: Use trial and error. Choose the best method."
Home example: "Option 1: Repair the chair. Option 2: Buy a new chair. Option 3: Repurpose the wood. Choose the best option."
Nigerian example: "Option 1: Plant corn. Option 2: Plant cassava. Option 3: Plant yams. Choose the best for the soil type."
Illustration (ASCII):
+-------------------+ | TREE-OF-THOUGHT | +-------------------+ | Option 1 | | / \ | | Option 2 Option 3| | \ / | | Best one | +-------------------+
Mini summary: Tree-of-Thought explores multiple options before choosing the best one. It encourages creative thinking.
A dynamic prompt is a prompt that changes based on variables. You use placeholders that are filled in later.
Definition: A dynamic prompt has placeholders that are replaced with specific values.
Why it is important: Dynamic prompts are reusable. You can use the same prompt with different inputs.
Simple explanation: Imagine you have a letter template. You fill in the name and date each time. A dynamic prompt is like that template.
Real-life example: "Write a thank-you note to [customer_name] for their purchase of [product_name]."
School example: "Explain [topic] to a student in [grade_level]."
Home example: "Give me a recipe using [ingredient1] and [ingredient2]."
Nigerian example: "Give me farming tips for [crop_name] in [state_name]."
Illustration (ASCII):
+-------------------+ | DYNAMIC PROMPT | +-------------------+ | "Hello [name], | | how are you?" | +-------------------+ | Replace [name] | | with "Chidi" | +-------------------+ | "Hello Chidi, | | how are you?" | +-------------------+
Mini summary: Dynamic prompts use variables. They are reusable and can be customized.
Context injection is when you give the AI background information to help it understand the task better.
Definition: Context injection is adding relevant background information to a prompt.
Why it is important: It helps the AI give more accurate and relevant answers.
Simple explanation: Imagine you are telling a friend about your day. You give them context so they understand your story. Context injection is like that.
Real-life example: "Our company sells shoes. Our customers are mostly young adults. Write a marketing email."
School example: "We are studying ecosystems. We have learned about food chains. Write a summary."
Home example: "We are planning a trip to the beach. The weather is usually hot. What should we pack?"
Nigerian example: "We are farmers in Kaduna. The rainy season is coming. What crops should we plant?"
Illustration (ASCII):
+-------------------+ | CONTEXT | | INJECTION | +-------------------+ | Without context: | | "Write a message" | +-------------------+ | With context: | | "We are a bank. | | Our customers are | | in Nigeria. Write | | a welcome message"| +-------------------+
Mini summary: Context injection gives the AI background information. It helps the AI give better answers.
Prompt optimization is the process of improving your prompt to get better results. You test, tweak, and refine your prompt.
Definition: Prompt optimization is improving a prompt through testing and iteration.
Why it is important: It helps you get the best possible results from the AI.
Simple explanation: Imagine you are baking a cake. You try a recipe. It is okay, but you want it to be better. So you add more sugar, bake it longer, and try again. Prompt optimization is like that.
Real-life example: You start with "Give me a recipe." You test it. You change it to "Give me a healthy Nigerian soup recipe." You test it again. You keep improving it.
School example: You start with "Explain photosynthesis." You test it. You change it to "Explain photosynthesis in simple terms." You test it again.
Home example: You start with "How do I clean this?" You test it. You change it to "How do I clean a stained shirt?" You test it again.
Nigerian example: You start with "How do I farm?" You test it. You change it to "How do I farm cassava in Ogun State?" You test it again.
Illustration (ASCII):
+-------------------+ | OPTIMIZATION | +-------------------+ | 1. Write prompt | | 2. Test it | | 3. Evaluate | | 4. Improve it | | 5. Repeat | +-------------------+
Mini summary: Prompt optimization is the process of improving a prompt through testing and iteration.
After you write a prompt, you need to evaluate it. Evaluation means checking if the prompt is working well. You look at the answers and see if they are accurate, complete, and relevant.
Definition: Evaluation is checking the quality of the prompt and its outputs.
Why it is important: Evaluation helps you know if your prompt is good enough. It helps you find areas for improvement.
Simple explanation: Imagine you are a teacher. You give a test. After the test, you check the answers to see if the test was a good test. Evaluation is like that.
Real-life example: You ask "What is the capital of Nigeria?" The AI says "Lagos." That is wrong. The prompt is not working. You need to improve it.
School example: You ask "Explain the water cycle." The AI gives a long, confusing answer. The prompt is not good for young students. You need to improve it.
Home example: You ask "How do I fix a leaky tap?" The AI gives a complicated answer. The prompt is not clear. You need to improve it.
Nigerian example: You ask "How do I make jollof rice?" The AI gives a recipe that is not authentic. The prompt is not specific enough. You need to improve it.
Illustration (ASCII):
+-------------------+ | EVALUATION | +-------------------+ | Check accuracy | | Check completeness| | Check relevance | +-------------------+
Mini summary: Evaluation is checking if your prompt is working well. It helps you find areas for improvement.
Edge cases are situations that are unusual or unexpected. A good prompt should handle edge cases gracefully.
Definition: Edge cases are unusual or unexpected situations.
Why it is important: Handling edge cases makes your prompt more robust. It works well in all situations.
Simple explanation: Imagine you are giving directions. Most people ask for directions to a place. But what if someone asks for directions to a place that does not exist? That is an edge case.
Real-life example: "What if the user asks a question that is not about the topic?"
School example: "What if a student asks a question that is not in the curriculum?"
Home example: "What if the smart device does not work?"
Nigerian example: "What if the farmer asks about a crop that is not grown in that region?"
Illustration (ASCII):
+-------------------+ | EDGE CASES | +-------------------+ | 1. Identify them | | 2. Plan for them | | 3. Handle them | +-------------------+
Mini summary: Edge cases are unusual situations. A good prompt handles them gracefully.
A hallucination is when an AI makes up information that is not true. It is like a dream. The AI is confident, but it is wrong.
Definition: A hallucination is when an AI generates false information.
Why it is important: Hallucinations can cause problems. We need to reduce them.
Simple explanation: Imagine a friend tells you a story. You believe them. But later, you find out they made up part of the story. That is a hallucination.
Real-life example: An AI says "The capital of Nigeria is Lagos." That is a hallucination.
School example: An AI says "Water boils at 200 degrees Celsius." That is a hallucination.
Home example: An AI says "To clean a stain, use bleach on silk." That is a hallucination (bleach ruins silk).
Nigerian example: An AI says "The best time to plant yams is in December." That might be wrong.
Illustration (ASCII):
+-------------------+ | HALLUCINATIONS | +-------------------+ | AI says something | | that is not true | | Need to reduce | | them | +-------------------+
Mini summary: Hallucinations are false information from AI. We need to reduce them through better prompts.
| Word | Simple Definition |
|---|---|
| Prompt | The input you give to an AI. |
| Chain-of-Thought | Asking the AI to think step-by-step. |
| Tree-of-Thought | Exploring multiple options before choosing. |
| Dynamic Prompt | A prompt with placeholders (variables). |
| Context Injection | Adding background information to a prompt. |
| Optimization | Improving a prompt through testing. |
| Evaluation | Checking the quality of a prompt. |
| Edge Case | An unusual or unexpected situation. |
| Hallucination | When AI makes up false information. |
| Structured Output | Organized output like JSON or tables. |
+----------+ +----------+ +----------+ +----------+ | WRITE |----->| TEST |----->| EVALUATE |----->| IMPROVE | | PROMPT | | IT | | IT | | IT | +----------+ +----------+ +----------+ +----------+
+-------------------+
| Step 1: Think |
+-------------------+
|
v
+-------------------+
| Step 2: Plan |
+-------------------+
|
v
+-------------------+
| Step 3: Execute |
+-------------------+
|
v
+-------------------+
| Step 4: Review |
+-------------------+
| Feature | Simple Prompt | Advanced Prompt |
|---|---|---|
| Length | Short | Longer |
| Specificity | General | Detailed |
| Context | Little or none | Yes |
| Structure | Freeform | Step-by-step |
| Result | Often vague | Often accurate |
Congratulations! You have completed Module 3 of "AI and Automation Level Two." Let us review what we covered.
You are now ready for Module 4. In the next module, we will dive into AI Agents. We will learn what agents are, how they work, and how to build them. Get ready for some exciting challenges!
Match the word on the left with its correct definition on the right.
| Word | Definition |
|---|---|
| 1. Prompt | A. Asking the AI to think step-by-step. |
| 2. Chain-of-Thought | B. The input you give to an AI. |
| 3. Tree-of-Thought | C. Adding background information. |
| 4. Context Injection | D. Exploring multiple options. |
| 5. Hallucination | E. When AI makes up false information. |
Answers: 1-B, 2-A, 3-D, 4-C, 5-E
Activity: In groups of 3-4, choose a task and write three different prompts: a simple one, a Chain-of-Thought one, and a Tree-of-Thought one. Test each prompt and compare the results. Present your findings to the class.
Activity: Write a detailed prompt for a task of your choice. Use all the techniques you learned: Chain-of-Thought, Tree-of-Thought, context injection, and dynamic variables. Test your prompt and write a report on the results.
Project: Build a prompt testing system. Create a set of prompts and a way to evaluate them. Test your prompts on different AI models and analyze the results.
Assignment: Research a real-world application of prompt engineering. Write a report on how prompts are used, what techniques are applied, and what results are achieved.
In Module 4, we will dive into AI Agents. We will learn what agents are, how they work, and how to build them. To prepare, think about a task you would like an AI agent to do for you. It could be research, planning, or even creative work.
See you in Module 4!
Note: This is the end of Module 3. You are now ready for Module 4, where we will dive into AI agents. Keep your curiosity alive!
Welcome to Module 4 of "AI and Automation Level Two"! In Module 1, we reviewed the basics. In Module 2, we built advanced automation workflows. In Module 3, we learned advanced prompt engineering. Now, we are going to explore something very exciting – AI Agents.
So far, we have been using AI to answer questions or follow instructions. But AI Agents are different. They are not just answering questions. They are taking action. They can plan, make decisions, and even use tools. They can work on their own to achieve a goal.
Think of an AI Agent like a helpful robot assistant. You give it a task, and it figures out how to do it. It might break the task into smaller steps. It might search for information. It might even ask you questions if it gets stuck. Agents are the next level of AI. They are like a smart friend who can get things done.
In this module, we will learn what agents are, how they work, and how to build them. We will explore different types of agents and their capabilities. By the end of this module, you will be able to design your own simple AI agent. Let us get started!
By the end of this module, you will be able to:
In a university in Abuja, there was a student named Ngozi. She had a big research project to complete. She had to read many articles, take notes, and write a report. It was going to take many hours. She was feeling overwhelmed.
Her friend, Chidi, who was learning about AI, said, "Ngozi, I can help you. I can build you an AI Agent that will do the research for you."
Ngozi was surprised. "An AI Agent? What is that?"
Chidi explained, "It is like a personal assistant. You give it a topic. It will search for articles, read them, summarize them, and even write a draft of your report. It uses AI to think and act on its own."
Chidi built the agent. He gave it a simple instruction: "Research the impact of climate change on farming in Nigeria."
The agent went to work. It searched the web. It found articles. It read them. It took notes. It summarized the key points. Then, it wrote a draft report. All of this happened in a few minutes. Ngozi was amazed.
The agent even asked her questions. "Do you want more detail on crop yield or on soil health?" It was like having a smart research assistant.
Ngozi used the agent's work to finish her project. She got an A+. She told everyone about the amazing AI Agent that helped her.
What can we learn from this story? AI Agents are like smart assistants that can do complex tasks on their own. They can research, plan, and take action. They can save you time and help you achieve your goals.
An AI Agent is a system that uses AI to achieve a goal. It can perceive its environment, think about what to do, and take action.
Definition: An AI Agent is a program that can act autonomously to achieve a goal.
Why it is important: Agents can do complex tasks without needing step-by-step instructions.
Simple explanation: Imagine you give a task to a friend. They figure out how to do it. They break it down into steps. They get the work done. An AI Agent is like that friend.
Real-life example: A chatbot that can book a restaurant for you. You say "Book a table for dinner," and it does it.
School example: An AI that can help you study. You say "Help me study for the history test," and it creates a study plan.
Home example: A smart assistant that orders groceries. You say "We are out of milk," and it orders it.
Nigerian example: An AI that helps a farmer. You say "Check the crops," and it flies a drone to take pictures.
Illustration (ASCII):
+-------------------+ | AI AGENT | +-------------------+ | Goal: Achieve a | | task | | Perceives -> | | Thinks -> Acts | +-------------------+
Mini summary: An AI Agent is a system that acts autonomously to achieve a goal. It perceives, thinks, and acts.
There is an important difference between Assistive AI and Agentic AI. Assistive AI helps you. Agentic AI acts on its own.
Definition: Assistive AI responds to commands. Agentic AI takes initiative.
Why it is important: Agentic AI is more powerful because it can do things without you telling it every step.
Simple explanation: Assistive AI is like a calculator. You press buttons, it gives answers. Agentic AI is like a robot. You say "clean the room," and it figures out how to do it.
Real-life example: Siri is assistive. You ask a question, and it answers. A self-driving car is agentic. You say "drive me home," and it does.
School example: A spelling checker is assistive. An AI that writes an entire essay for you is agentic.
Home example: A timer is assistive. A robot vacuum is agentic.
Nigerian example: A weather app is assistive. An AI that plans your farming schedule is agentic.
Illustration (ASCII):
+-------------------+ | ASSISTIVE AI | | Responds to you | +-------------------+ | AGENTIC AI | | Takes initiative | +-------------------+
Mini summary: Assistive AI responds to you. Agentic AI acts on its own.
An AI Agent has three main parts: Perception, Reasoning, and Action. This is similar to the Sense → Think → Act cycle we learned before.
Definition: The architecture is the structure of an AI agent.
Why it is important: Understanding the architecture helps you build and design agents.
Simple explanation: Think of it like a person. Perception is seeing and hearing. Reasoning is thinking. Action is doing.
Real-life example: A self-driving car perceives the road with cameras (perception). It thinks about traffic and decides when to turn (reasoning). It turns the wheel (action).
School example: You read a question (perception). You think about the answer (reasoning). You write the answer (action).
Home example: Your smart thermostat senses the temperature (perception). It decides if it is too hot or cold (reasoning). It turns on the AC (action).
Nigerian example: An AI drone for farming. It takes pictures of the crops (perception). It decides which areas need water (reasoning). It tells the irrigation system to turn on (action).
Illustration (ASCII):
+--------+ +--------+ +--------+ |PERCEIVE|---->| REASON |---->| ACT | | (Sense)| | (Think)| | (Do) | +--------+ +--------+ +--------+
Mini summary: An AI Agent has three parts: Perception, Reasoning, and Action.
A single-agent system has one AI agent that works on its own. It is the simplest type of agent.
Definition: A single-agent system has one agent that performs tasks independently.
Why it is important: Single-agent systems are easier to build and are used for many simple tasks.
Simple explanation: Imagine one person working on a project by themselves. That is a single agent.
Real-life example: A chatbot that answers customer questions.
School example: An AI that helps you with math problems.
Home example: A smart speaker that plays music.
Nigerian example: An AI that helps farmers identify crop diseases.
Illustration (ASCII):
+-------------------+ | SINGLE AGENT | | (One agent) | +-------------------+
Mini summary: A single-agent system has one agent working on its own.
A multi-agent system has multiple AI agents that work together. They can cooperate, share information, and divide tasks.
Definition: A multi-agent system has multiple agents that work together to achieve a goal.
Why it is important: Multi-agent systems can handle more complex tasks than single agents.
Simple explanation: Imagine a team working on a project. One person does research, another writes, and another edits. They work together. That is a multi-agent system.
Real-life example: A self-driving car system might have separate agents for navigation, obstacle detection, and speed control.
School example: An AI system where one agent creates a study plan, another finds resources, and another tests your knowledge.
Home example: A smart home system where one agent controls lights, another controls temperature, and another controls security.
Nigerian example: A farming system where one agent monitors soil, another controls irrigation, and another tracks weather.
Illustration (ASCII):
+-------------------+ | MULTI-AGENT | | (Team of agents)| +-------------------+ | Agent 1 Agent 2 | | Agent 3 Agent 4 | +-------------------+
Mini summary: A multi-agent system has multiple agents working together as a team.
Reflection is when an agent looks back at its own work and thinks about how to improve. It is like self-review.
Definition: Reflection is when an agent evaluates its own output and improves it.
Why it is important: Reflection helps agents get better over time. They learn from their mistakes.
Simple explanation: Imagine you write a story. Then you read it and think, "This part could be better." You rewrite it. That is reflection.
Real-life example: An AI that writes a blog post and then checks it for grammar and style.
School example: An AI that grades your essay and gives you feedback on how to improve it.
Home example: A smart assistant that suggests improvements to your schedule.
Nigerian example: An AI that helps farmers by analyzing their planting patterns and suggesting improvements.
Illustration (ASCII):
+-------------------+ | REFLECTION | +-------------------+ | Agent does work | | Agent reviews it | | Agent improves it | +-------------------+
Mini summary: Reflection is when an agent looks at its own work and improves it.
Tool use is when an agent uses external tools to accomplish a task. Tools can be calculators, web searches, APIs, or other software.
Definition: Tool use is when an agent uses external tools to help it achieve a goal.
Why it is important: Tool use expands what an agent can do. It is like giving the agent superpowers.
Simple explanation: Imagine you are building a house. You use a hammer, a saw, and a measuring tape. Those are your tools. Agents can use tools too.
Real-life example: An agent that uses a web search API to find information.
School example: An agent that uses a calculator to solve math problems.
Home example: An agent that uses a weather API to get the forecast.
Nigerian example: An agent that uses a farming API to get crop prices.
Illustration (ASCII):
+-------------------+ | TOOL USE | +-------------------+ | Agent ---> Tool | | (Calculator, API) | | <--- Result | +-------------------+
Mini summary: Tool use is when an agent uses external tools like APIs or calculators.
Planning is when an agent breaks down a large task into smaller steps. It creates a plan before taking action.
Definition: Planning is when an agent creates a sequence of steps to achieve a goal.
Why it is important: Planning helps agents handle complex tasks. It is like having a roadmap.
Simple explanation: Imagine you are going on a trip. You plan the route, book the hotel, and pack your bags. You do not just start driving. Agents plan too.
Real-life example: An agent that plans a vacation. It books flights, hotels, and activities.
School example: An agent that creates a study schedule for you.
Home example: An agent that plans your weekly meals.
Nigerian example: An agent that plans a farming season. It decides when to plant, water, and harvest.
Illustration (ASCII):
+-------------------+ | PLANNING | +-------------------+ | Goal | | | | | v | | Step 1, Step 2, | | Step 3, ... | +-------------------+
Mini summary: Planning is when an agent breaks a large task into smaller steps.
Evaluation is how we check if an agent is doing a good job. We look at its performance, accuracy, and efficiency.
Definition: Evaluation is the process of measuring how well an agent performs.
Why it is important: Evaluation helps us improve agents. It tells us what is working and what is not.
Simple explanation: Imagine you are a coach. You watch your player and see how they are doing. You give them feedback. That is evaluation.
Real-life example: Testing a chatbot to see if it can answer 90% of questions correctly.
School example: Checking if an AI tutor helps students improve their grades.
Home example: Testing a smart thermostat to see if it saves energy.
Nigerian example: Testing a farming agent to see if it increases crop yield.
Illustration (ASCII):
+-------------------+ | EVALUATION | +-------------------+ | Measure accuracy | | Measure speed | | Measure success | +-------------------+
Mini summary: Evaluation is how we measure how well an agent performs.
Now, let us build a simple research agent. It will search for information, summarize it, and write a short report.
Definition: A research agent is a tool that finds and summarizes information.
Why it is important: It saves time and helps you learn about new topics quickly.
Simple explanation: You give it a topic, it finds information, and it gives you a summary.
Real-life example: You want to learn about "renewable energy in Nigeria." The agent finds articles, reads them, and gives you a summary.
School example: You have a research project on "the water cycle." The agent finds resources and creates an outline.
Home example: You want to know "how to fix a leaky tap." The agent finds step-by-step instructions.
Nigerian example: You want to know "the best crops to plant in Kaduna." The agent finds information and makes a recommendation.
Illustration (ASCII):
+-------------------+ | RESEARCH AGENT | +-------------------+ | Topic: "Climate | | change in Nigeria"| +-------------------+ | 1. Search web | | 2. Read articles | | 3. Summarize | | 4. Write report | +-------------------+
Mini summary: A research agent finds and summarizes information. It saves you time.
| Word | Simple Definition |
|---|---|
| AI Agent | A program that acts autonomously to achieve a goal. |
| Assistive AI | AI that responds to your commands. |
| Agentic AI | AI that takes initiative on its own. |
| Perception | How an agent senses its environment. |
| Reasoning | How an agent thinks and makes decisions. |
| Action | What an agent does in the world. |
| Reflection | When an agent reviews and improves its work. |
| Tool Use | When an agent uses external tools. |
| Planning | Breaking a large task into smaller steps. |
| Evaluation | Measuring how well an agent performs. |
+--------+ +--------+ +--------+ |PERCEIVE|---->| REASON |---->| ACT | | (Sense)| | (Think)| | (Do) | +--------+ +--------+ +--------+
+-------------------+
| Perceive |
+-------------------+
|
v
+-------------------+
| Reason |
| (What to do?) |
+-------------------+
|
v
+-------------------+
| Plan |
| (How to do it?) |
+-------------------+
|
v
+-------------------+
| Act |
| (Do it) |
+-------------------+
|
v
+-------------------+
| Reflect |
| (Did it work?) |
+-------------------+
| Feature | Assistive AI | Agentic AI |
|---|---|---|
| Initiative | Responds to commands | Takes initiative |
| Autonomy | Low | High |
| Complexity | Simple | Complex |
| Example | Voice assistant | Self-driving car |
Congratulations! You have completed Module 4 of "AI and Automation Level Two." Let us review what we covered.
You are now ready for Module 5. In the next module, we will dive into Retrieval-Augmented Generation (RAG). We will learn how to give agents access to knowledge and data. Get ready for some exciting challenges!
Match the word on the left with its correct definition on the right.
| Word | Definition |
|---|---|
| 1. Agent | A. Sensing the environment. |
| 2. Perception | B. Acts autonomously to achieve a goal. |
| 3. Reasoning | C. Using external tools. |
| 4. Tool Use | D. Thinking and making decisions. |
| 5. Reflection | E. Reviewing and improving work. |
Answers: 1-B, 2-A, 3-D, 4-C, 5-E
Activity: In groups of 3-4, design a multi-agent system for a task of your choice. Each agent should have a specific role. Draw a diagram showing how they work together. Present your design to the class.
Activity: Build a simple research agent using a no-code tool. Choose a topic and have the agent research it. Write a report on what the agent found and how well it performed.
Project: Build a simple AI agent that can answer questions about a topic you are interested in. Use a no-code tool to build it. Test it and evaluate its performance.
Assignment: Research a real-world application of AI Agents. Write a report on what the agent does, how it works, and what impact it has.
In Module 5, we will dive into Retrieval-Augmented Generation (RAG). We will learn how to give agents access to knowledge and data. To prepare, think about a topic you would like an agent to have knowledge about. It could be history, science, or even local knowledge.
See you in Module 5!
Note: This is the end of Module 4. You are now ready for Module 5, where we will dive into RAG. Keep your curiosity alive!
Welcome to Module 5 of "AI and Automation Level Two"! In Module 1, we reviewed the basics. In Module 2, we built advanced automation workflows. In Module 3, we learned advanced prompt engineering. In Module 4, we explored AI Agents. Now, we are going to learn about a powerful technique called Retrieval-Augmented Generation, or RAG for short.
Have you ever asked an AI a question, and it gave a good answer but not a perfect one? That happens because the AI only knows what it was trained on. It does not know your specific information. RAG solves this problem. It lets the AI look up information from your own documents or databases before answering. It is like giving the AI a library to search through.
Think of RAG like a student who is taking a test. A normal AI is like a student who can only use their memory. A RAG AI is like a student who can also look at their notes and textbooks. The student with the notes will usually get better answers. RAG makes AI smarter by giving it access to knowledge.
In this module, we will learn what RAG is, how it works, and how to build it. We will learn about embeddings, vector databases, and retrieval. By the end of this module, you will be able to build a document-based assistant that can answer questions using your own documents. Let us get started!
By the end of this module, you will be able to:
In a small town in Enugu, there was a library that was very special. It had a librarian named Ada. Ada was not just any librarian. She had a superpower. She could remember every single book in the library. If you asked her a question, she could recall the exact book and page with the answer.
One day, a new librarian came to help. His name was Chidi. Chidi did not have a superpower. But he was very smart. He created a system to help him answer questions. He scanned every book and stored the text on a computer. He used AI to understand the text. Now, when someone asked a question, the AI would search through all the text and find the best answer.
People were amazed. They could ask any question, and the system would find the answer. It was like having a superpower, but it was technology.
That is exactly what RAG does. It takes all your documents, stores them in a smart way, and lets the AI search through them to find answers. It is like having a super-smart librarian for your own information.
What can we learn from this story? RAG is like a super-smart librarian. It takes your documents and lets AI search through them to answer questions accurately.
RAG stands for Retrieval-Augmented Generation. It is a way to make AI smarter by giving it access to external knowledge.
Definition: RAG is a technique that combines retrieval (searching) with generation (creating answers).
Why it is important: RAG helps AI give accurate, up-to-date answers based on your own documents.
Simple explanation: Imagine you have a test. You can only use your memory. That is like a normal AI. RAG is like having a textbook you can look at during the test.
Real-life example: A customer service AI that can search through company policies to answer customer questions.
School example: An AI that can search through your textbooks to help you with homework.
Home example: An AI that can search through your recipes to suggest a meal.
Nigerian example: An AI that helps farmers by searching through agricultural manuals.
Illustration (ASCII):
+-------------------+ | RAG | +-------------------+ | Retrieval (Search)| | + | | Generation (AI) | | = Better answers | +-------------------+
Mini summary: RAG combines retrieval and generation. It gives AI access to external knowledge for better answers.
Normal AI models are trained on a fixed set of data. They do not know new things. They do not know your personal documents. RAG solves this problem.
Definition: RAG gives AI access to up-to-date and specific information.
Why it is important: Without RAG, AI can give outdated or wrong answers. RAG makes AI more reliable.
Simple explanation: Imagine your friend only knows things from one book. If you ask a question not in that book, they cannot answer. RAG gives your friend more books to read.
Real-life example: A medical AI that uses RAG to search through the latest research.
School example: An AI that uses RAG to search through your class notes.
Home example: An AI that uses RAG to search through your family recipes.
Nigerian example: An AI that uses RAG to search through local farming guides.
Illustration (ASCII):
+-------------------+ | WITHOUT RAG | | AI only knows | | what it was | | trained on | +-------------------+ | WITH RAG | | AI can search | | your documents | +-------------------+
Mini summary: RAG helps AI give better answers by using your own documents and data.
RAG has two main steps: Indexing and Retrieval. First, you prepare your documents. Then, you search them.
Definition: The RAG pipeline is the process of making documents searchable and then finding answers.
Why it is important: Understanding the pipeline helps you build RAG systems.
Simple explanation: Imagine you have a book. First, you create an index (like the index at the back of the book). Then, when you have a question, you look up the answer in the index.
Real-life example: Google works like RAG. It indexes the web and then retrieves results for your search.
School example: A library catalog. The catalog is the index. You search it to find books.
Home example: A recipe book with a list of recipes and an index by ingredient.
Nigerian example: A farm management system that indexes all farm data and lets you search for information.
Illustration (ASCII):
+-------------------+ | RAG PIPELINE | +-------------------+ | 1. INDEXING | | (Prepare docs) | | 2. RETRIEVAL | | (Search docs) | | 3. GENERATION | | (AI answers) | +-------------------+
Mini summary: The RAG pipeline has two main steps: Indexing (preparing) and Retrieval (searching).
Indexing is the process of making your documents searchable. You break them into pieces and store them in a special way.
Definition: Indexing is preparing documents so that an AI can search them quickly.
Why it is important: Good indexing leads to fast and accurate searches.
Simple explanation: Imagine you are organizing a library. You put books on shelves and create a catalog. That is indexing.
Real-life example: A search engine like Google indexes the web.
School example: A student who organizes their notes by subject and date.
Home example: Organizing your photos by date and people in them.
Nigerian example: A farmer who organizes crop data by type, date, and location.
Illustration (ASCII):
+-------------------+ | INDEXING | +-------------------+ | 1. Documents | | 2. Break into | | chunks | | 3. Create | | embeddings | | 4. Store in | | database | +-------------------+
Mini summary: Indexing is preparing your documents for search by breaking them into pieces and storing them.
Chunking is breaking large documents into smaller pieces. This makes them easier to search.
Definition: Chunking is splitting documents into smaller parts.
Why it is important: Small chunks are easier to search and lead to more accurate answers.
Simple explanation: Imagine you have a long book. Instead of searching the whole book, you search one chapter at a time.
Real-life example: A search engine that breaks web pages into smaller pieces.
School example: Studying by reading one chapter at a time.
Home example: Breaking a large recipe into smaller steps.
Nigerian example: Breaking a farm report into sections by crop type.
Illustration (ASCII):
+-------------------+ | CHUNKING | +-------------------+ | Big document | | | | | v | | Chunk 1, Chunk 2, | | Chunk 3, ... | +-------------------+
Mini summary: Chunking breaks large documents into smaller pieces for better searching.
Embeddings are a way to convert text into numbers. This helps AI understand the meaning of words.
Definition: Embeddings are numerical representations of text that capture meaning.
Why it is important: AI can only understand numbers. Embeddings let AI understand text.
Simple explanation: Imagine you assign a number to each word. The number represents the meaning. Words with similar meanings have similar numbers.
Real-life example: AI uses embeddings to understand "king" and "queen" are related.
School example: A student who creates a mind map to connect ideas.
Home example: Organizing your music by genre using a playlist.
Nigerian example: An AI that groups similar crops using embeddings.
Illustration (ASCII):
+-------------------+ | EMBEDDINGS | +-------------------+ | Word -> Numbers | | "Cat" -> [0.1, | | 0.2, ...] | | "Dog" -> [0.1, | | 0.3, ...] | +-------------------+
Mini summary: Embeddings convert text into numbers that represent meaning.
A vector database is a special database that stores embeddings. It is designed to search through them quickly.
Definition: A vector database stores and searches numerical representations (embeddings).
Why it is important: Vector databases make RAG fast and efficient.
Simple explanation: Imagine you have a huge box of numbers. A vector database is like a super-fast filing system that finds the numbers you want.
Real-life example: Pinecone and Weaviate are vector databases.
School example: A library catalog that is organized to find books quickly.
Home example: A phone contact list that finds names instantly.
Nigerian example: A database of farm data organized by crop type.
Illustration (ASCII):
+-------------------+ | VECTOR DATABASE | +-------------------+ | Embeddings -> | | Search quickly | | Example: Pinecone | +-------------------+
Mini summary: A vector database stores and searches embeddings quickly.
Retrieval is the process of finding the most relevant chunks for a question. It uses similarity search.
Definition: Retrieval is searching for the most relevant information.
Why it is important: Good retrieval finds the best information for the AI to use.
Simple explanation: Imagine you have a question. You look through a box of cards and find the card with the best answer.
Real-life example: A search engine that finds the best web pages for your question.
School example: Looking through your notes to find the information you need.
Home example: Looking for a specific recipe in a cookbook.
Nigerian example: A farmer looking for information about a specific crop in their farm records.
Illustration (ASCII):
+-------------------+ | RETRIEVAL | +-------------------+ | Question -> | | Search chunks | | Find best match | +-------------------+
Mini summary: Retrieval finds the most relevant information for a question.
Generation is the final step. The AI takes the retrieved chunks and creates a final answer.
Definition: Generation is the AI creating an answer based on the retrieved chunks.
Why it is important: Generation combines all the information into a clear, concise answer.
Simple explanation: Imagine you have all the pieces. You put them together to make a complete picture.
Real-life example: An AI that summarizes multiple articles into one report.
School example: Writing a report based on research from multiple sources.
Home example: Putting together a meal plan from different recipes.
Nigerian example: An AI that combines farm data to give a single recommendation.
Illustration (ASCII):
+-------------------+ | GENERATION | +-------------------+ | Chunks -> | | AI creates | | Final answer | +-------------------+
Mini summary: Generation is the AI creating a final answer from the retrieved chunks.
Now, let us build a simple document-based assistant. It will take documents, index them, and answer questions.
Definition: A document-based assistant uses RAG to answer questions from documents.
Why it is important: It helps you quickly find information in your documents.
Simple explanation: You upload your documents. You ask questions. The assistant finds the answers.
Real-life example: A company uses a document assistant to search through its policies.
School example: A student uses an assistant to search through their textbooks.
Home example: A family uses an assistant to search through recipes.
Nigerian example: A farmer uses an assistant to search through agricultural manuals.
Illustration (ASCII):
+-------------------+ | DOCUMENT ASSISTANT| +-------------------+ | 1. Upload docs | | 2. Index them | | 3. Ask questions | | 4. Get answers | +-------------------+
Mini summary: A document-based assistant uses RAG to answer questions from your documents.
| Word | Simple Definition |
|---|---|
| RAG | A technique that combines retrieval and generation. |
| Indexing | Preparing documents for search. |
| Chunking | Breaking documents into smaller pieces. |
| Embedding | Converting text into numbers that represent meaning. |
| Vector Database | A database that stores and searches embeddings. |
| Retrieval | Finding the most relevant chunks. |
| Generation | Creating an answer from retrieved chunks. |
| Pipeline | The entire RAG process. |
| Similarity Search | Finding chunks that are similar to a question. |
| Document Assistant | A tool that uses RAG to answer questions from documents. |
+----------+ +----------+ +----------+ +----------+
| DOCUMENTS|----->| CHUNKING |----->|EMBEDDINGS|----->| VECTOR |
| | | | | | | DATABASE |
+----------+ +----------+ +----------+ +----------+
|
v
+----------+ +----------+ +----------+ +----------+
| ANSWER |<-----| GENERATE |<-----| RETRIEVE |<-----| QUESTION |
| | | | | | | |
+----------+ +----------+ +----------+ +----------+
+-------------------+
| Question asked |
+-------------------+
|
v
+-------------------+
| Retrieve chunks |
| (Search vector |
| database) |
+-------------------+
|
v
+-------------------+
| Are there good |
| chunks? |
+-------------------+
/ \
Yes No
| |
v v
+----------------+ +----------------+
| Generate | | Ask for |
| answer | | clarification |
+----------------+ +----------------+
| Feature | Normal AI | AI with RAG |
|---|---|---|
| Knowledge | Fixed training data | Can access external documents |
| Up-to-date | Only as of training | Can use current documents |
| Personalization | No | Can use personal documents |
| Accuracy | May be inaccurate | More accurate |
Congratulations! You have completed Module 5 of "AI and Automation Level Two." Let us review what we covered.
You are now ready for Module 6. In the next module, we will dive into Tool Integration and Agent Capabilities. We will learn how to give agents tools and abilities to do even more. Get ready for some exciting challenges!
Match the word on the left with its correct definition on the right.
| Word | Definition |
|---|---|
| 1. RAG | A. Breaking documents into pieces. |
| 2. Chunking | B. Combines retrieval and generation. |
| 3. Embedding | C. A database for storing numbers. |
| 4. Vector Database | D. Converting text into numbers. |
| 5. Retrieval | E. Finding the most relevant chunks. |
Answers: 1-B, 2-A, 3-D, 4-C, 5-E
Activity: In groups of 3-4, design a RAG system for a specific use case. Choose a domain (e.g., education, farming, business). Describe the documents, indexing, retrieval, and generation. Present your design to the class.
Activity: Build a simple document-based assistant using a no-code RAG tool. Upload some documents and test it. Write a report on what you learned.
Project: Build a RAG system for a domain of your choice. Collect documents, index them, and create an assistant. Test it and evaluate its performance.
Assignment: Research a real-world application of RAG. Write a report on what it does, how it works, and what impact it has.
In Module 6, we will dive into Tool Integration and Agent Capabilities. We will learn how to give agents tools and abilities to do even more. To prepare, think about a tool you would like your agent to use. It could be a calculator, a search engine, or even a camera.
See you in Module 6!
Note: This is the end of Module 5. You are now ready for Module 6, where we will dive into tool integration and agent capabilities. Keep your curiosity alive!
Welcome to Module Six! In this module, we will learn how Artificial Intelligence (AI) and Automation work together to make our lives easier. We already know that AI can think like a human brain, and automation is like a robot that does tasks by itself. But what happens when we put them together? Magic!
This module is for beginners — and we will explain everything like you are 10 years old. We will use short sentences, fun stories, and many examples from home, school, and even Nigeria. By the end, you will understand how AI and automation help us every day.
Tola is a 12-year-old girl who lives in Lagos. Her grandmother has a small farm with chickens and tomatoes. Every morning, Tola wakes up at 5 AM to feed the chickens and water the tomatoes. It is hard work!
One day, her uncle visits from Abuja. He works with computers. He says, “Tola, what if we use AI and automation to help you?” He brings a small device with a camera and a water pump. The camera uses AI to see when the tomatoes are dry. The pump automatically waters them. For the chickens, an automatic feeder drops food when the chickens are hungry — the AI learns their eating times.
Now Tola wakes up at 6 AM and has more time to play. She loves AI and automation! That is what we will learn about in this module.
Definition: AI stands for Artificial Intelligence. It is when a computer or machine can think, learn, and make decisions like a human.
Why important: AI helps machines solve problems without being told every step.
Simple explanation: Imagine a robot that can play chess. It learns from every move. That is AI.
Real-life example: Your phone’s face unlock uses AI to recognise you.
School example: A spelling app that learns which words you find hard.
Home example: A smart speaker that understands your voice.
Nigerian example: A chatbot that helps farmers know the weather.
🧠 AI = Machine that learns
|
V
Recognises patterns
|
V
Makes decisions
✅ Mini summary: AI is a smart brain for machines.
Definition: Automation is when a machine does a task by itself, without a person controlling it every moment.
Why important: Automation saves time and reduces mistakes.
Simple explanation: Like a coffee maker that brews coffee at 7 AM automatically.
Real-life example: An automatic door opens when you walk near it.
School example: A bell that rings automatically at the end of class.
Home example: A robot vacuum cleaner that cleans the floor.
Nigerian example: An automatic generator that starts when power goes out.
⚙️ Automation = Machine does work alone
|
V
Set a trigger (time, sensor)
|
V
Action happens automatically
✅ Mini summary: Automation is like a robot that follows a plan.
When we add AI to automation, machines become smart. They can change their actions based on what they learn.
Simple: A normal sprinkler waters the garden at 6 PM every day. A smart sprinkler with AI waters the garden only if the soil is dry — it learns the weather!
Automation + AI = Smart Automation
|
V
Does tasks + learns and improves
✅ Mini summary: AI makes automation clever.
AI learns by looking at many examples. We call this training. Like a child learning fruits by seeing many pictures.
Nigerian example: An AI that recognises cassava leaves from weeds after seeing thousands of photos.
Training: show many examples → AI finds patterns
AI uses sensors like cameras, microphones, and thermometers to “see” and “hear” the world.
Home example: A smart thermostat senses temperature.
Sensor → data → AI decides → action
Actuators are the parts that move or act, like a motor or a speaker. They do the work.
Example: A robotic arm packs boxes.
AI checks if its action worked and learns from it. Good action = repeat. Bad action = change.
Action → result → feedback → improve
Lights that turn on when you enter; fridges that tell you when milk is low.
Traffic lights that change based on car flow. In Lagos, AI could help reduce traffic jams.
AI can check X-rays to help doctors. In Nigeria, some hospitals use AI to find diseases faster.
AI drones spray pesticide only where needed. This saves money and helps the environment.
Many companies use AI chatbots to answer questions. They understand language and help 24/7.
We must make sure AI is fair and doesn’t hurt anyone. Always check if AI makes good choices.
In the future, AI will drive cars, teach students, and help farmers even more. It is exciting!
There are simple tools like Scratch and Teachable Machine to make your own AI. Start small!
1. Soil sensor checks moisture. 2. AI reads the data. 3. If dry, AI sends signal to pump. 4. Pump waters the plant. 5. Sensor checks again – if wet, stop.
| Type | Example |
|---|---|
| Real-life | Self-driving cars use AI and sensors. |
| Nigerian | AI app “PlantVillage” helps farmers detect crop diseases. |
| Fun | Robotic toys that learn your favourite games. |
| Everyday | Email spam filters – they learn what is junk. |
Use real objects like a camera and a fan to demonstrate sensor + actuator. Encourage students to draw their own smart device.
Ask your child to find 3 automated things at home. Talk about how they work. Explore YouTube videos of AI in Nigeria together.
In Nigeria, AI is used to predict flooding in some states, saving many lives.
Data → Training → Model → Test → Improve
| AI | Automation |
|---|---|
| Learns | Follows rules |
| Changes over time | Stays the same |
We learned that AI is like a brain, automation is like a robot, and together they make smart machines. We saw examples from home, school, and Nigeria. We practiced with stories and activities. Now you can explain AI and automation to your friends!
| Term | Definition |
|---|---|
| AI | Machine learns |
| Automation | Machine does task alone |
| Sensor | Detects environment |
| Actuator | Moves or acts |
Imagine you have a farm with maize. Design a smart system using AI and automation to water the maize only when it is dry. Write the steps.
In groups of 4, draw a smart city with at least 3 AI automation examples. Present to the class.
Find an automated device at home. Write a paragraph about how it uses AI or sensors.
Do you think AI is more helpful or scary? Why? Let’s talk about it.
Build a paper model of an AI-powered automatic fan that turns on when it is hot. Label sensors, actuator, and AI brain.
Use a free online AI tool (like Teachable Machine) to train a model to recognise 3 objects. Take a screenshot and share.
Write a short story about a Nigerian village that uses AI automation to solve a big problem (like water scarcity).
Answers to Fill-in: 1. Artificial, 2. sensor, 3. itself, 4. data, 5. improve. True/False: F, F, T, T, F. MC answers are above.
In Module Seven, we will learn about Data and Machine Learning. Bring your curiosity and we will explore how data feeds AI. See you there!
✅ End of Module Six – AI and Automation Level Two
Welcome to Module Seven! Now that we know about AI and automation, it is time to learn how AI gets smart. How does a computer learn to tell a cat from a dog? How does it know what you are saying? The secret is data and machine learning.
In this module, we will explore how machines learn from examples — just like you learn at school! We will use simple words, fun stories, and many examples from home, school, and Nigeria. By the end, you will understand how data feeds AI and makes it powerful.
Chidi is 11 years old and lives in Enugu. He loves mangoes and oranges. One day, his aunt gives him a magic box. She says, “This box can learn to sort fruits!”
Chidi puts 10 mangoes and 10 oranges inside, one by one. He tells the box, “This is a mango, this is an orange.” The box looks at each fruit — colour, size, shape. After many fruits, the box starts sorting by itself. Chidi gives it a new fruit, and it says “mango!” correctly.
The magic box is really a machine learning program. It learned from data (the fruits). That is exactly what we will learn in this module.
Definition: Data is information. It can be numbers, words, pictures, sounds, or anything that a computer can read.
Why important: Without data, AI cannot learn. Data is the food for AI.
Simple explanation: Think of data like ingredients for a cake. You need ingredients to bake.
Real-life example: Your name, age, and class are data.
School example: Test scores of students are data.
Home example: The list of groceries your mum writes.
Nigerian example: Weather data from NIMET (Nigerian Meteorological Agency) used to predict rain.
📊 Data = Information
|
+-- Numbers (temperature, age)
+-- Words (names, descriptions)
+-- Pictures (photos, drawings)
+-- Sounds (speech, music)
✅ Mini summary: Data is any piece of information a computer can use.
Definition: Machine learning is when a computer learns from data, without being told every single rule.
Why important: It helps AI solve problems that are too hard to program by hand.
Simple explanation: Instead of telling the computer “this is a cat” step by step, we show it many cat pictures, and it learns.
Real-life example: Your email app learns to filter spam because you mark emails as spam.
School example: A maths app that adapts questions based on your wrong answers.
Home example: A smart speaker that learns your voice.
Nigerian example: A machine learning model that identifies crop diseases from photos of leaves.
🧠 Machine Learning = Learn from data
|
V
Show many examples → find patterns → make predictions
✅ Mini summary: Machine learning is how AI gets smarter by studying data.
Definition: Training is the process of giving a machine many examples so it can learn.
Why important: Training is like going to school for AI. It needs practice.
Simple: You train a dog to sit by showing it a treat. You train an AI by showing it data.
Training: [Data] → [AI] → [Learned model]
✅ Mini summary: Training is teaching AI with examples.
After training, we test the AI with new data it has never seen. If it answers correctly, it has learned well.
Testing: [New data] → [Trained AI] → [Prediction] → compare with correct answer
✅ Mini summary: Testing checks if AI really learned.
Definition: Features are the important pieces of data that help AI make decisions. For fruit, features are colour, shape, and size.
Nigerian example: To predict rainfall, features could be temperature, humidity, and wind speed.
Fruit → features: colour, weight, smell
Labels are the correct answers we give the AI during training. For fruit, the label is “mango” or “orange”.
(features) + (label) = training example
When we give the AI both features and labels, it is called supervised learning. Like a teacher supervising a student.
Sometimes we give AI only features and no labels. It finds groups on its own. Like sorting toys without names.
If the data is bad (wrong labels, messy), the AI will be bad. Always use good, clean data.
Big data means huge amounts of information. The more good data, the smarter the AI.
An algorithm is a step-by-step recipe that the AI follows to learn from data.
Sometimes AI learns the training data too well but fails on new data. That is overfitting.
When AI is too simple and misses patterns, it underfits.
In Lagos, some banks use machine learning to detect fraud. In agriculture, it helps predict harvest times.
With tools like Google’s Teachable Machine, you can train your own AI to recognise poses, sounds, or images.
1. Collect many fruit pictures (data). 2. Label each as “mango” or “orange”. 3. Show the AI the pictures and labels (training). 4. Test with new fruit picture. 5. If wrong, adjust and retrain.
| Type | Example |
|---|---|
| Real-life | Netflix recommends movies based on what you watched. |
| Nigerian | AI model by a Nigerian startup predicts traffic in Abuja. |
| Fun | A game that learns your playing style and adapts. |
| Everyday | Google Translate learns from millions of sentences. |
Use a physical activity: give students 10 pictures of fruits and ask them to list features. Then simulate training. Encourage discussions.
Ask your child to find examples of data at home (e.g., calendar events, shopping lists). Talk about how machines could learn from that data.
In Nigeria, machine learning helps predict the best times to plant cassava, improving farmers’ yields.
Data Collection → Data Cleaning → Training → Testing → Deployment
| Supervised | Unsupervised |
|---|---|
| Has labels | No labels |
| Teacher guides | Finds patterns alone |
We learned that data is information, and machine learning is how computers learn from that information. Training teaches the AI, and testing checks it. We saw examples from Nigeria and everywhere. Now you know the secret behind smart AI!
| Term | Definition |
|---|---|
| Data | Information |
| Machine Learning | Learn from data |
| Training | Teaching with examples |
| Testing | Checking with new data |
You are building a machine learning model to tell if a student is happy or sad based on their face. List the features you would use. How would you collect data?
In groups, collect 20 pictures of fruits (or objects). Label them. Train a simple classifier using Teachable Machine. Present your results.
Write down 5 features of your favourite animal. Explain how a machine could use those features to recognise it.
Do you think machines will ever learn as well as humans? Why or why not? Share your thoughts.
Build a paper-based “data collection” board. Draw 10 different leaves, write features (size, colour, shape). Simulate training and testing with a friend.
Use Google’s Teachable Machine (teachablemachine.withgoogle.com) to train a model to recognise 3 hand gestures. Take a screenshot of your trained model.
Think of a problem in your community (like waste sorting). Write a plan for a machine learning solution. What data would you collect?
Fill-in: 1. information, 2. data, 3. features, 4. new, 5. algorithm. True/False: F, T, F, T, F. MC answers are above.
In Module Eight, we will dive into Deep Learning and Neural Networks — the brain-like structures that power advanced AI. Bring your curiosity and we will explore how AI mimics the human brain.
✅ End of Module Seven – Data & Machine Learning
Welcome to Module Eight! We have already learned that AI can learn from data. But how does it learn so well? The answer is neural networks — computer systems that work like a human brain! And deep learning is when we use many layers of these networks to solve very hard problems.
In this module, we will explore how the brain-inspired AI works. We will use simple words, fun stories, and examples from school, home, and Nigeria. You will understand how AI can recognise faces, understand speech, and even drive cars.
Ada is 10 years old and lives in Abuja. She loves drawing. Her dad gives her a small robot that can draw, but it only makes squiggles. Ada says, “Can you teach it to draw a cat?” Her dad says, “Yes, with a neural network!”
They show the robot many cat pictures. The robot has a “brain” made of tiny parts called neurons (like in our brains). The neurons work together to find patterns — eyes, ears, whiskers. After many pictures, the robot draws a perfect cat! Ada is amazed. The robot used deep learning.
Definition: A neural network is a computer system that works like a brain. It has many small parts called neurons that pass information to each other.
Why important: Neural networks help AI solve complex problems like recognising faces or understanding speech.
Simple explanation: Imagine a big team of tiny workers. Each worker looks at a small piece of a picture. They talk to each other and decide what the whole picture is.
Real-life example: Your phone uses a neural network to unlock your face.
School example: A handwriting app that learns your letters.
Home example: A smart doorbell that recognises family members.
Nigerian example: A neural network that detects fake banknotes.
🧠 Neural Network = Brain-like computer
|
+-- Input layer (receives data)
+-- Hidden layers (process data)
+-- Output layer (gives answer)
✅ Mini summary: A neural network is a computer brain made of connected neurons.
Definition: A neuron is a small unit that takes in numbers, processes them, and passes them on.
Why important: Neurons are the building blocks of neural networks.
Simple: Think of a neuron like a messenger that receives a note, adds a little thought, and sends a new note to the next messenger.
[Input] → (neuron) → [output]
✅ Mini summary: Neurons are tiny calculators that pass information.
Neural networks have layers of neurons. The first layer gets the data (like pixels of a picture). The last layer gives the answer. The middle layers are called hidden layers.
Input Layer → Hidden Layer → Hidden Layer → Output Layer
✅ Mini summary: Layers are the steps the data goes through.
Definition: Deep learning uses neural networks with many hidden layers. “Deep” means lots of layers.
Why important: More layers can learn more complex patterns.
Simple: Like a detective asking many questions to solve a mystery.
Real-life example: Self-driving cars use deep learning to see the road.
Nigerian example: Deep learning helps sort tomatoes by ripeness in farms.
Shallow network: Input → 1 Hidden → Output Deep network: Input → 5 Hidden → Output
✅ Mini summary: Deep learning = neural network with many layers.
Each connection between neurons has a weight. The weight tells how important that connection is. Bigger weight = more important.
Neuron A ---(weight 0.8)---→ Neuron B
A neuron activates (fires) when the input is strong enough. It then passes the signal on.
Input → sum → if sum > threshold → fire!
Training means adjusting the weights so the network gives correct answers. We show it examples, it makes a guess, we correct it, and weights change.
Example → forward pass → error → backpropagation → update weights
Backpropagation is the method the network uses to fix its mistakes. It goes backwards and changes weights to reduce errors.
CNNs are a type of neural network great for images. They look at small parts of a picture and combine them.
Nigerian example: CNNs used to detect crop diseases from leaf photos.
RNNs are good for sequences like sentences or music. They remember previous inputs.
NLP is when deep learning understands human language. Chatbots and translators use NLP.
Computer vision is teaching computers to see and understand images and videos. Deep learning powers it.
With many layers, deep learning can overfit. We use tricks like dropout to prevent it.
Nigerian startups use deep learning for traffic monitoring, health diagnostics, and agriculture.
You can build simple neural networks online with tools like TensorFlow Playground. It is fun!
1. Input: pixels of a picture. 2. Hidden layers: look for edges, shapes, eyes, ears. 3. Output layer: gives "cat" or "not cat". 4. If wrong, backpropagation adjusts weights. 5. Repeat until correct.
| Type | Example |
|---|---|
| Real-life | Google Photos uses deep learning to recognise faces. |
| Nigerian | A deep learning model helps diagnose malaria from blood images. |
| Fun | A game that uses your face to change the character’s expression. |
| Everyday | Voice assistants like Siri use deep learning. |
Use a class activity: simulate a neural network with students as neurons. Pass notes with numbers. Show how weights change.
Ask your child to find examples of deep learning at home (like smart speakers). Discuss how they might work.
In Nigeria, deep learning is used to sort and grade cocoa beans, helping farmers get better prices.
Input Layer → Hidden Layer 1 → Hidden Layer 2 → Output Layer
| Deep Learning | Traditional ML |
|---|---|
| Many layers | Few layers |
| Learns features automatically | Needs manual features |
We learned about neural networks – the brain-like systems that power AI. Deep learning uses many layers to solve hard problems. We saw examples from Nigeria and around the world. Now you know the secret behind face recognition, voice assistants, and self-driving cars!
| Term | Definition |
|---|---|
| Neural Network | Brain-like computer |
| Deep Learning | Many layers |
| Weight | Importance |
| Backpropagation | Fixing errors |
You are building a neural network to recognise different types of beans (e.g., black-eyed, kidney). Describe the layers and what features the network might learn.
Form groups and draw a neural network with 3 layers on a large paper. Label input, hidden, and output. Show how data flows.
Think of a problem that deep learning could solve in your school. Write a paragraph describing your idea.
Should we be worried about deep learning being too smart? Discuss the pros and cons.
Build a physical model of a neural network using marbles and tubes. Marbles are data, tubes are connections with weights.
Use TensorFlow Playground (playground.tensorflow.org) to train a neural network on a simple dataset. Take a screenshot.
Write a short story about a deep learning AI that helps a Nigerian farmer. Include the problems it solves.
Fill-in: 1. brain, 2. layers, 3. weight, 4. Backpropagation, 5. images. True/False: T, F, F, T, F. MC answers are above.
In Module Nine, we will explore AI Ethics and Responsible AI — how to make sure AI is fair, safe, and helpful for everyone. Bring your thoughts and questions!
✅ End of Module Eight – Deep Learning & Neural Networks