Elsardel AI Academy

Academy / AI Basics / Lesson 7

Lesson 7: What is an AI agent?

About 20 minutes. You'll learn what makes an AI agent different from a chatbot, how the agent loop works, and why a person should approve anything risky before an agent does it.

1. Chatbot or agent?

A chatbot answers you. You ask, it replies, and then you do the work. An AI agent goes further: you give it a goal, and it takes steps to reach it by using tools, such as looking at your calendar, searching a website or filling in a form.

You ask for…A chatbotAn agent
A dentist appointmentTells you how to book onlineChecks your calendar for free times, finds a slot on the booking site and asks you to confirm
The weekly food shopWrites a shopping listPuts the items in your online basket, then stops and waits for you to check and pay
A table for FridaySuggests restaurantsChecks which ones have a table at 7pm and drafts the booking for you to approve

OpenAI's guide to building agents describes agents as systems that complete tasks on your behalf with a good deal of independence. It says simple chatbots that just answer, without controlling the steps of a task, are not agents.

2. Workflow or agent?

Anthropic, the company behind Claude, separates two kinds of system:

  • Workflow: the steps are fixed in advance by the person who built it, like following a recipe. "Read the email, summarise it, save the summary." The AI fills in each step, but it doesn't choose the steps.
  • Agent: the AI decides its own next step and which tool to use, like a cook who looks in the fridge and works out what to make.

Anthropic's advice is to use the simplest thing that works. Often a single good prompt (like the ones from lesson 2) or a fixed workflow is enough. Agents are more flexible, but Anthropic notes they cost more, take longer and their mistakes can add up.

3. The agent loop

Most agents work in a loop that repeats until the job is done:

  1. Goal: you say what you want ("Find a free hour for a haircut next week").
  2. Think: the AI plans its next step ("First I need to see the calendar").
  3. Use a tool: it calls a tool, such as "read calendar".
  4. Check: it looks at what the tool sent back. Anthropic calls this getting "ground truth" from the real world, rather than guessing.
  5. Repeat or stop: if the goal isn't met, it goes round again. When it's done, or it gets stuck, it stops and reports back.

Good agents also have a stop rule, such as a maximum number of steps, so they can't go round forever. OpenAI's Agents SDK, for example, has a setting for the maximum number of turns and stops the run with an error if it's exceeded.

4. Tools and MCP, in plain words

A tool is anything the agent can use to look something up or do something: a web search, a calculator, your calendar, a booking form. Each tool has a name and a short description, so the AI can work out when to use it.

MCP (Model Context Protocol) is an open standard for plugging tools and data into AI apps. Its own documentation compares it to a USB-C port: one standard way to connect lots of different things. It means an app such as Claude or ChatGPT can connect to, say, a calendar or a notes app without someone building a custom link for each one. You don't need to set up MCP for this course; just know the name when you see it.

5. Memory

Agents need two kinds of memory. Google's Agent Development Kit docs describe it like this:

  • Short-term (the session): what has happened so far in this task or conversation, such as "I've already checked Tuesday".
  • Long-term (memory): information kept between conversations that the agent can search, such as "you prefer morning appointments".

Memory makes agents more helpful, but it's also personal data. Check what's being remembered, just as you did with chat assistants in lesson 6.

6. Why a person approves the risky steps

Agents can act, so their mistakes can cost money or cause embarrassment. That's why the official guides build in a human approval step:

  • OpenAI's guide says actions that are sensitive, can't be undone or have high stakes, such as cancelling orders, big refunds or payments, should need a human's OK, at least until you trust the agent.
  • The MCP specification says there should always be a person who can refuse a tool being used, and that apps should ask for confirmation.
  • OpenAI's Agents SDK and Google's Agent Development Kit both let builders mark tools that must pause and wait for a person to approve.
  • The UK Government's AI Playbook includes "meaningful human control at the right stage" as one of its principles for using AI.

There's a security reason too. The UK's National Cyber Security Centre (NCSC) warns that AI systems can be tricked by instructions hidden in the content they read, called prompt injection. A web page or email could tell an agent to do something you never asked for. A human approval step is one way to catch that before it does harm.

The safe rule

Let an agent look things up and draft freely. Make it stop and ask you before it sends, books, buys, pays, deletes or shares anything.

A real-world example: Meta's Muse in the UK

On 24 November 2026 Meta launched Muse in the UK, a personal AI agent for people aged 18 and over. Meta says it doesn't just answer questions: you can give it a job, such as searching for a cheaper energy deal or sorting the school calendar, and it can keep working in the background, then report back. Before it sends a message, posts or buys anything, Meta says it shows you what it plans to do and waits for your go-ahead. You can change how often it checks in with you in the settings, which means you can give it more or less independence.

Useful does not always mean smooth. Agents can draft over-long replies, so read a message before you approve it. They can get stuck in loops, or fail on websites that block them, so don't assume a job is finished just because the agent is still “working”. And connect only the accounts that job needs: a personal inbox or calendar is a bigger step than a shopping list, and you can leave work or other sensitive accounts disconnected.

The UK's Information Commissioner's Office (ICO) published advice on the same day: consider the pros and cons, because agents can make mistakes, and those mistakes can be magnified if the agent is acting on its own. The ICO's chief executive, Paul Arnold, also said the ICO had been clear with Meta about its data-protection duties, including that people should be able to understand and control how their personal data is used.

The day before the UK launch, Meta's head of AI, Alexandr Wang, published an essay on X titled Superintelligence is Arriving. He wrote: “It is hard to imagine a world where humanity can maintain control over fully unconstrained recursive self-improvement.” He also said: “We should not be okay with a “handover” of society to AI.” You don't need to settle that longer-term debate to use an agent today. The practical version of staying in control is the safe rule above: look and draft freely, but approve anything that sends, posts or spends. We'll practise the settings and checks in Trust & Safety, lesson 6: Using a personal AI agent safely.

Sources: Meta's UK launch announcement, 23–24 November 2026; the ICO's 24 November 2026 statement and consumer advice. A BBC News article on the UK launch is listed under Official sources, as background reading.

7. Spot the agent

Which of these are agents? Decide, then open the answers.

  1. An assistant that writes a birthday message when you ask.
  2. A system that checks your inbox every morning, picks out bills, adds the due dates to your calendar and asks you before paying any.
  3. A website button that always turns any text into bullet points, in the same three steps every time.
  4. An assistant that is asked to "find me a cheaper phone contract", then searches, compares deals, decides what to check next and comes back with two options.
Show answers

1: a chatbot (it answers; you do the rest). 2: an agent, with a sensible approval step before paying. 3: a workflow (fixed steps every time). 4: an agent (it chooses its own next steps), and you still make the final choice.

YouAct as an AI agent planner. My goal: book a GP appointment next week, mornings only. List the steps an agent would take, the tool it would use at each step, what it should check after each step, and the exact point where it must stop and ask me to approve. Don't book anything; just give me the plan as a numbered list.

8. Practice workspace

Your task

Scenario: You'd like an agent to help with your Saturday food shop: plan five evening meals for a family of four, keep the cost under £60 and put the ingredients in your supermarket's online basket. You don't want it paying for anything without you.

  1. Write a request asking a free AI assistant to plan how an agent would do this job, without doing it.
  2. Include the goal, the tools the agent would need, what it should check after each step, a stop rule, and where it must ask your approval.
  3. Click Check my prompt, improve it, then try it in a free AI.
  4. Paste the plan below and review it: is every risky step behind an approval?

1 Write your prompt

This check uses simple word-matching in your browser. It is not AI marking; it just looks for the key parts.

  • Goal Say what the agent should achieve, e.g. “plan 5 meals and fill my basket”.
  • Limits Include the budget and how many people.
  • Tools Ask which tools it would use, e.g. supermarket website, calendar, recipe search.
  • Checks and a stop rule Ask what it should check after each step, and when it should stop.
  • Human approval Say it must ask you before paying, ordering or sending anything.

2 Try it in a free AI

Each button copies your prompt to the clipboard and opens the assistant in a new tab. If the prompt isn't filled in for you, paste it in.

3 Paste the AI's reply and review it

Self-review

9. Quick quiz

Q1. What's the main difference between a chatbot and an AI agent?

  1. An agent always uses a bigger AI model
  2. An agent takes steps towards a goal using tools; a chatbot just answers
  3. A chatbot can't write emails
Show answer

Answer: B. Agents act by using tools such as calendars, search or forms. A chatbot replies and leaves the doing to you.

Q2. In Anthropic's terms, a system that always runs the same fixed steps is a…

  1. Workflow
  2. Agent
  3. Chatbot
Show answer

Answer: A. In a workflow the steps are set in advance. In an agent, the AI chooses its own next step.

Q3. In the agent loop, why does the agent check the result after using a tool?

  1. To use up its turns
  2. To see what really happened before deciding the next step
  3. Because the law requires it
Show answer

Answer: B. Checking real results (Anthropic calls it ground truth) stops the agent building on guesses.

Q4. MCP is best described as…

  1. A type of AI model
  2. An open standard for connecting AI apps to tools and data
  3. A UK law about AI
Show answer

Answer: B. The MCP docs describe it as an open standard, like a USB-C port for AI apps.

Q5. Your agent has found a train ticket and wants to pay. What should happen?

  1. It pays, because that was the goal
  2. It stops and asks you to approve the payment
  3. It tries a few times to be sure
Show answer

Answer: B. Payments can't easily be undone, so official guides say a person should approve high-risk actions.