Intermediate
40 mins
Teacher/Student led
+90 XP

AI Agents, Software That Plans and Acts

Learn the difference between chatbots that answer questions and AI agents that plan and act in loops to reach goals. Direct an agent through a coding task and then switch roles to act as the agent yourself.

Teacher Class Feed

Load previous activity

    1 - Start ~4 mins

    A loop of four students around a goal flag, with a friendly robot at the top: one plans with a light bulb, one works at a laptop beside cogs, one checks a chart with a magnifying glass, and one ticks a checklist, with arrows leading round from each to the next.You have already trained a model and used it inside a program. Today the question is different: what happens when software is given a goal and allowed to plan, use tools, and act in a loop until the job is done?

    Today

    That kind of software is called an AI agent. You will direct one on the board, then take turns being the agent yourselves.

    2 - Agent or Chatbot? ~4 mins

    How an AI agent works: a person sets the goal, then the agent loops through plan, act, observe and adjust. After it observes, if the goal is met it stops; if not, it goes round again. A person can stop it at any time.

    A chatbot answers. You ask a question, it replies with text. The conversation stops until you type again.

    An AI agent is a model given a goal. It works through four phases:

    PhaseWhat the agent does
    PlanIt plans the steps needed to reach the goal.
    ActIt uses tools: it writes a file, runs code, searches or sends a message.
    ObserveIt looks at what happened: an error message, a result or a web page.
    AdjustIt adjusts the plan and tries the next step.
    The difference

    It keeps looping through plan, act, observe, adjust until the goal is met or it is stopped. A chatbot waits; an agent keeps going.

    3 - Direct the Agent: the Goal and the Roles ~3 mins

    Your class is about to direct an AI coding agent. One person is the error-spotter: their job is to call out when something looks wrong. Everyone else confirms the goal, predicts the next step before it happens, and names which phase is running: plan, act, observe, or adjust.

    Three cards saying who does what while the class directs the agent. The agent does the work on the board, one move at a time: plan, act, observe, adjust. The error-spotter is one person who calls out when something looks wrong. Everyone else confirms the goal, predicts the next step and names the phase that is running.
    Goal

    Write a short program that asks for two numbers and prints their sum. If anything breaks, fix it.

    4 - Watch the Agent, Then Debrief It ~11 mins

    Your class directs Ada, an AI agent, through three jobs in Human in the Loop below. Ada works in loops: plan, act, observe, adjust. The first job has the same goal as the last step.

    1. Read the goal card, then press Start Ada.
    2. Ada's log shows one line at a time. Before each new line, say what you think the next phase and the next action will be.
    3. When Ada pauses with a question, agree an answer before anyone presses it.
    4. At the end of each loop, decide as a class: Continue, Redirect or Stop.
    5. Error-spotter: call out as soon as something looks wrong. The red Stop button stops Ada at once, at any point.

    After Job 3, answer as a class:

    • Where did Ada need a human watching it?
    • In which job was the goal met, but something was still harmed?
    • How is Ada different from a chatbot that only explains how to add two numbers?
    • Observe and adjust is debugging: the agent runs a test, reads what went wrong, and fixes it. Where did you see that today?

    Human in the Loop

    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of 123Learn.ie 2017 - 2026. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more