Module 1

From Chatbots to Agents

Everything in agentic AI rests on one idea: a model that can use tools and decide its own next step. Get this picture clear and the rest hangs off it.

About 20 minPreps you for: Sessions on how GenAI and agents differ from traditional AI

Three steps up the ladder

1. A language modelText goes in, text comes out. It predicts what should come next. It cannot look anything up or do anything.
2. A chatbotA model wrapped in a conversation. You ask, it answers once, then waits for you. You are the one doing the work between turns.
3. An agentA model that is given tools and a goal, and keeps going on its own, step after step, until the goal is met or it needs you.

The difference between 2 and 3 is who drives. With a chatbot you copy an error into the chat, read the suggestion, try it, and paste the next error. With an agent, the model runs the command, reads the error itself, and tries the fix.

The agent loop

Every agent you will ever build, however large, is this loop:

1. ThinkThe model reads the goal and everything so far, and picks a next step.
2. ActIt asks for a tool to be run: read a file, search, call an API.
3. ObserveThe tool result is added to the conversation.
4. Repeat or stopBack to step 1, until the model decides it is done.

Two details matter and both surprise people. First, the model never runs a tool itself. It only writes a request, and your program (or Claude Code) runs it. You will see this with your own eyes in Module 4. Second, the model has no memory between calls. The loop works because the full history is sent back in every time.

Workflow or agent?

You will hear both words. They are different designs, and choosing between them is most of what people mean by an architect's mindset.

WorkflowAgent
Who decides the stepsYou, in code, ahead of timeThe model, as it goes
Good forTasks with the same shape every timeTasks where the path depends on what is found
Cost and speedPredictableVaries run to run
When it goes wrongEasy to see which step failedNeeds logs and limits to stay safe

A good rule to carry in: use the simplest design that works. Reach for an agent when you cannot write the steps down in advance.

Words you will hear in the first hour

WordPlain meaning
PromptEverything you send the model: instructions, context, the question.
System promptStanding instructions that set the model's role and rules for the whole conversation.
Context windowHow much text the model can consider at once. Its working memory.
TokenThe unit models read and bill in. Roughly three quarters of an English word.
ToolA function the model is allowed to ask for, described by a name and its inputs.
Agent loopThink, act, observe, repeat.
Human in the loopA point where the agent must stop and get a person's approval.
GuardrailA check or limit that keeps the agent inside safe bounds.
OrchestrationCoordinating several steps or several agents toward one result.

Check yourself

No task on this page. Before moving on, answer these out loud:

  1. In one sentence, what does an agent have that a chatbot does not?
  2. When an agent "searches the web", which part does the model do and which part does the software around it do?
  3. Name one job at your work that fits a workflow, and one that needs an agent. What makes them different?