Welcome back, young AI explorer! In Module 1, we learned what AI and automation are. Now we are going to learn how to build simple AI and automation projects. Let's dive in!
“AI & Automation Level One – Module 2: Building Simple AI and Automation”
Hello! 👋 In Module 1, we learned that AI is like a smart computer that can learn, and automation is a machine that does work by itself. Now, in Module 2, we are going to build our own simple AI and automation projects. You don’t need to be a programmer – we will use easy tools and fun activities.
We will learn how to give instructions, how to collect data, and how to make a chatbot. We will also create our own automation rules. By the end of this module, you will have built at least two projects! Ready? Let’s go! 🚀
Tunde lives in Ibadan. He helps his grandmother on the farm. Every morning, they water the vegetables. It takes a long time. Tunde thought: “What if I could make a machine that waters the plants when the soil gets dry?”
He took a small pump, a soil sensor, and a small computer. He wrote a rule: IF the soil is dry, THEN turn on the water pump. He tested it. It worked! The plants got water only when they needed it. Tunde built an automation.
But then he thought: “What if the pump could learn how much water each plant likes?” That would be AI. In this module, we will build things like Tunde’s automatic farm – starting with simple rules, and then adding a little intelligence.
🌱 TUNDE’S AUTOMATION
Sensor checks soil
|
V
Is it dry? → YES → Turn on pump
|
NO → Do nothing
Definition: An algorithm is a list of steps to do something.
Why important? AI and automation work by following algorithms.
Simple explanation: It’s like a recipe for making pancakes – you follow steps in order.
Real-life example: A recipe for jollof rice.
School example: The steps to solve a math problem.
Home example: The steps to brush your teeth.
Nigerian example: The steps to make a phone call: pick up phone → unlock → dial number → talk.
📱 ALGORITHM TO SEND A TEXT 1. Unlock phone 2. Open messaging app 3. Choose contact 4. Type message 5. Press send
Mini summary: Algorithms are step-by-step instructions. We use them every day.
Definition: Data is pieces of information. Numbers, words, pictures.
Why important? AI learns from data. Good data = smart AI.
Simple explanation: If you want to teach your friend about cars, you show them pictures of cars. That is data.
Real-life example: A weather app uses temperature data.
School example: Your scores in tests are data.
Home example: A list of groceries is data.
Nigerian example: A bank collects data on how much you spend to give you offers.
📊 DATA COLLECTION Fruit: Orange | Colour: Orange | Shape: Round Fruit: Banana | Colour: Yellow | Shape: Long Fruit: Apple | Colour: Red | Shape: Round
Mini summary: Data is information that helps AI learn. Collect it carefully.
Definition: A decision tree is a chart that shows decisions. Like a flowchart.
Why important? Many AIs use decision trees to make choices.
Simple explanation: It’s like asking yes/no questions. “Is it raining?” If yes → take umbrella. If no → don’t.
Real-life example: A spam filter decides if an email is spam or not.
School example: “Do you have a pencil?” If yes → start writing. If no → borrow one.
Home example: “Is the fridge empty?” If yes → go shopping. If no → cook.
Nigerian example: A farmer asks: “Is it rainy season?” If yes → plant yams. If no → wait.
🌳 DECISION TREE FOR OUTDOOR PLAY
Is it sunny?
/ \
YES NO
/ \
Play outside Play inside
Mini summary: Decision trees are yes/no questions that help AI make choices.
Definition: A chatbot is a program that talks to you.
Why important? Chatbots are used in many places to answer questions.
Simple explanation: It’s like a robot that you can text.
Real-life example: Bank chatbots that help you check balance.
School example: A bot that tells you the school timetable.
Home example: A bot that reminds you to do chores.
Nigerian example: Some Nigerian companies use WhatsApp chatbots for customer service.
💬 CHATBOT FLOW User: "Hello" Bot: "Hi! How can I help?" User: "What is 2+2?" Bot: "2+2 = 4"
Mini summary: Chatbots are AI programs that have conversations with us.
Definition: IFTTT means “If This Then That”. It lets you make automation rules.
Why important? You can connect apps and devices to work together.
Simple explanation: You say: “If it rains, then close the window.”
Real-life example: If you get an email, then send a WhatsApp message.
School example: If it’s 2pm, then ring the bell.
Home example: If the sun sets, then turn on the light.
Nigerian example: If the power goes off, then turn on the generator (automatically).
🔗 IFTTT RULE IF (I arrive home) THEN (turn on the light)
Mini summary: IFTTT lets you create easy automations by connecting “if” and “then”.
Definition: Training means showing AI many examples so it can learn.
Why important? This is how AI gets smart.
Simple explanation: Show a child many pictures of cats and dogs, then they learn to tell them apart. AI does the same.
Real-life example: Google Photos can group pictures of the same person.
School example: A tool that sorts shapes by showing examples.
Home example: A toy that recognises your voice.
Nigerian example: An app that identifies crops from photos.
🖼️ TRAINING AI Step 1: Collect 100 cat photos and 100 dog photos. Step 2: Show AI the photos with labels (cat/dog). Step 3: AI finds patterns (ears, nose, fur). Step 4: Test with a new photo. Step 5: If wrong, correct it.
Mini summary: Training is giving AI examples to learn from. It’s like studying for a test.
Definition: Testing is trying your AI with new data to see if it is correct.
Why important? You need to know if your AI is smart enough.
Simple explanation: After you study for a test, you answer questions to see if you learned.
Real-life example: A self-driving car is tested on empty roads first.
School example: A teacher gives a quiz to check if students understood.
Home example: You test a recipe by cooking a small portion first.
Nigerian example: A farmer tests a new fertiliser on a small plot before using it everywhere.
🔍 TESTING AI New image → AI predicts “cat” Actual label: “cat” → Correct ✅ If wrong → find out why and fix it.
Mini summary: Testing tells us if our AI learned well. We can fix mistakes and make it better.
Definition: Automation is everywhere – from traffic lights to washing machines.
Why important? It saves time and makes life easier.
Simple explanation: Instead of you doing a boring job, a machine does it.
Real-life example: Elevator that takes you to the right floor.
School example: A projector that turns on with a remote.
Home example: A fan that rotates automatically.
Nigerian example: Toll gates that open automatically for cars with a pass.
🏢 AUTOMATION EXAMPLES - ATM machine (dispenses cash) - Traffic light - Automatic door - Water dispenser
Mini summary: Automation is everywhere, making our lives easier.
Definition: Ethics means doing the right thing. We need to use AI fairly.
Why important? AI can make mistakes, and we must make sure it helps everyone.
Simple explanation: If you have a superpower, you use it to help, not to hurt.
Real-life example: AI should not be used to cheat or steal.
School example: Don’t use AI to do your homework without learning.
Home example: Use AI to help with chores, not to be lazy.
Nigerian example: AI should treat everyone the same, no matter where they are from.
🤝 AI ETHICS RULES 1. Be fair – don’t let AI be biased. 2. Be honest – tell people when they talk to AI. 3. Be helpful – use AI to solve problems. 4. Be safe – protect data.
Mini summary: We must use AI responsibly, just like we use our superpowers for good.
Definition: A classifier is an AI that sorts things into groups.
Why important? This is a common AI task – like sorting spam emails.
Simple explanation: You give it a fruit, it tells you if it’s an apple or an orange.
Real-life example: A machine in a supermarket that sorts fruits by type.
School example: Sorting coloured blocks into groups.
Home example: Sorting laundry by colour.
Nigerian example: Sorting yams by size for market.
🍎 FRUIT CLASSIFIER Input: picture of fruit AI checks: shape, colour, size Output: “Apple” or “Orange”
Mini summary: A fruit classifier is a simple AI that sorts fruits by looking at them.
Definition: Voice assistants are AI that understand spoken words.
Why important? You can talk to them like a friend.
Simple explanation: You say “What’s the time?” and it answers.
Real-life example: Asking Siri to set an alarm.
School example: Using a voice assistant to spell a word.
Home example: Asking Alexa to play music.
Nigerian example: Using Google Assistant to find a recipe for jollof rice.
🎤 VOICE ASSISTANT FLOW You speak → AI converts to text → AI understands → AI responds
Mini summary: Voice assistants listen to us and respond with useful answers.
AI is getting better every year. In the future, we might have AI that can:
But we must learn about AI now, so we can shape that future.
🔮 FUTURE AI Self-driving cars → Robot doctors → AI teachers → Smart cities
Mini summary: AI will grow and help us in amazing ways. You can be part of it!
Use group activities. Let students build chatbots using simple tools. Encourage creativity.
Help your child think of daily tasks that can be automated. Try IFTTT together. Discuss AI ethics.
| Feature | Automation | AI |
|---|---|---|
| Follows rules | Yes | Learns rules |
| Changes over time | No | Yes |
| Example | Automatic door | Chatbot |
| Needs data? | No | Yes |
Excellent work! In this module, you learned how to build simple AI and automation. You now know about algorithms, data, decision trees, chatbots, IFTTT, training, testing, and ethics. You also built your first chatbot and automation rule. You are now an AI builder! In the next module, we will dive deeper into machine learning and explore how AI learns like a human brain. Keep up the great work!
| Term | Definition |
|---|---|
| Algorithm | Step-by-step instructions |
| Data | Information |
| Chatbot | AI that talks |
| IFTTT | If This Then That |
| Classifier | Sorts things into groups |
Scenario: Your school wants to use AI to help students find books in the library. Design a simple AI that can suggest a book based on what a student likes.
In groups, build a simple chatbot using a free tool. Each group presents their chatbot to the class.
Write down an IFTTT rule for your morning routine. Example: “If I wake up, then turn on the kettle.”
Create a fruit classifier using a drawing or a simple spreadsheet. Collect data (pictures or descriptions) and train your AI on paper.
Use IFTTT to connect two apps. For example, get an alert when it rains. Write down how you did it.
Build a decision tree for your morning routine. Include at least 5 decisions.
Fill-in: 1.steps 2.Data 3.This 4.classifier 5.Testing
True/False: 1.F 2.F 3.T 4.F 5.T
MCQ: 1.b 2.b 3.a 4.b 5.a 6.b 7.a 8.a 9.a 10.a 11.a 12.a 13.a 14.a 15.c
In Module 3, we will learn about Machine Learning – how AI improves itself. We will also use simple coding to train an AI. Bring your curiosity and creativity!
🎉 Well done! You are now an AI builder. See you in Module 3! 🎉