This is a free preview. Enrol on the course to save your progress and open every lesson.

Lesson 1 of 32 · 12 min

From chatbot to agent

A chatbot answers. An agent does.

When you ask a chat tool a question, it writes a reply and stops. Whatever happens next is up to you: you check the timetable, you book the lesson, you send the email.

An AI agent is a program that uses a language model to decide what to do next, does it, looks at what happened, and keeps going until the job is finished. Give it a goal like "Book Leo a free maths trial on a day with room" and it works out the steps itself: look up the timetable, pick a session, make the booking, tell the parent.

Three things turn a chatbot into an agent:

PartWhat it isAt a tutoring centre
A modelThe language model that reads the situation and decides the next stepThe "brain" that understands "Leo needs a Saturday"
ToolsFunctions the model can ask your code to run: search, look up, book, sendCheck the timetable, book a trial, look up an invoice
A loopCode that runs the tool, hands the result back to the model, and asks "what next?" until it's doneCheck, then book, then confirm, without a person typing each step

That's the whole idea. Everything else in this course (search, planning, memory, teams of agents, safety) is built on top of those three parts.

The model never runs anything itself

This surprises most people. A language model can only produce text. When an agent "books a lesson", what really happens is:

  1. The model writes a short, structured request: please run book_trial with student Leo, year 8, session M6.
  2. Your code reads that request, decides whether to allow it, and runs the function.
  3. Your code gives the result back to the model as text.

So you are always in charge of what an agent can actually do. That's good news, and it's the key to keeping agents safe (Module 7).

How much freedom?

"Agent" covers a range, from barely more than a chatbot to software that runs for hours on its own:

LevelWhat the model decidesExample
ChatOnly the words of its replyAnswer "When does Term 2 start?" from what it already knows
Tool useWhich tool to call for one questionLook up the term dates, then answer
AgentThe steps, in a loop, until the goal is metFind a session with room, book it, write to the parent
Team of agentsWhich agent handles which partA coordinator passes billing questions to a billing agent (Module 5)

More freedom means more can go wrong. Good agent builders give an agent as little freedom as the job needs, and no more.

Where agents are used

  • Customer service: answer questions from a company's own documents, look up an order, start a refund for a person to approve
  • Office work: read incoming emails, sort them, draft replies, add tasks to a calendar
  • Coding: read a codebase, change files, run the tests, fix what failed
  • Research: search several sources, compare them, write a summary with links

What these have in common: the steps change from case to case, so you can't write them all down in advance. That's where an agent earns its keep. Lesson 1.2 looks at when it doesn't.

What you'll build

You'll build Brightside Front Desk, an assistant for Brightside Tutoring, a made-up tutoring centre in Parramatta (you met it in our Generative AI for Beginners course, but you don't need to have taken it). One ability per module, Front Desk will learn to:

  • check the timetable and answer from Brightside's notes, with sources
  • work out prices in code instead of guessing
  • plan several steps, and review its own drafts
  • hand billing questions to a second agent
  • remember a family's preferences between conversations
  • ask a staff member before booking, and keep a signed record of everything it did

Every program in this course was run for real with the free models you'll use, and the lessons show what really came back, including the mistakes. Spotting what an agent got wrong is the most useful skill you'll take away.

Try it

  1. Think of a job you do that has several steps (booking an appointment, sorting your email, planning a trip). Write down the steps.
  2. Next to each step, write which tool an agent would need (search the web, read your calendar, send a message).
  3. Circle the step you'd least want an agent to do without asking you first. Keep this list: you'll come back to it in Module 7.