← All Articles
AI AgentsSep 23, 2026◷ 8 mins

From Chatbot to Agent: What Actually Changed?

From Chatbot to Agent: What Actually Changed?

When I first started building Z3phyr, it was basically a chat application.

You send a message.

The model generates a response.

You send another message.

The model responds again.

Simple.

But at some point, I started asking a different question:

What if the AI could actually do something instead of just telling me how to do it?

That question changed the way I was building the application.

A chatbot is mostly a conversation

The basic flow of a chat application is pretty straightforward:

User ↓ Model ↓ Response

The model receives the conversation, generates some text, and sends that text back to the user.

Even if the model is very capable, the application around it might still be doing very little.

That’s roughly where Z3phyr started.

But an assistant that can actually perform tasks needs more.

The first big change: tools

The first major step was giving Z3phyr access to tools.

Instead of only generating text, the model can decide that it needs to call a function.

For example, if I ask:

“Find all the TypeScript files in my project.”

The model doesn’t need to guess the answer.

It can use a filesystem tool.

The flow becomes:

User ↓ Z3phyr ↓ Model ↓ Tool call ↓ Filesystem ↓ Tool result ↓ Model ↓ Response

The important part is that the model isn’t directly controlling my computer.

The application exposes specific capabilities to it.

For example:

read_file() search_files() list_directory() get_file_stats()

The model can choose when to use them, but the actual implementation of those operations belongs to my application.

That separation became pretty important.

Tool calling changes the application

Once tools are involved, the model’s response isn’t necessarily the end of the request.

It might decide:

I need to search the filesystem.

Then the application executes the requested tool.

The result goes back to the model.

The model looks at that result and decides what to do next.

So instead of:

Message → Response

you start getting something closer to:

Message ↓ Model ↓ Decision ↓ Tool ↓ Result ↓ Model ↓ Decision ↓ Tool ↓ Result ↓ Final response

That loop is one of the things that made Z3phyr start feeling like an agent.

So what’s actually different?

For me, the biggest difference isn’t simply that an agent can call tools.

It’s that the model becomes part of a control loop.

A normal chatbot mostly answers.

An agent can:

  1. Understand the request
  2. Decide what it needs
  3. Use a capability
  4. Inspect the result
  5. Decide what to do next
  6. Continue until it has enough information to respond

The application has to support that entire process.

And that creates a lot more engineering problems.

The model isn’t the whole agent

This was probably one of the more important things I’ve learned while building Z3phyr.

It’s easy to think:

“I’m building an AI agent, so I need a really good model.”

The model obviously matters.

But the model alone isn’t the agent.

There is a whole system around it.

Something more like:

text
1            ┌──────────────┐
2            │    User      │
3            └──────┬───────┘
4                   ↓
5            ┌──────────────┐
6            │   Z3phyr     │
7            │   Runtime    │
8            └──────┬───────┘
9                   ↓
10            ┌──────────────┐
11            │    Model     │
12            └──────┬───────┘
13                   ↓
14          ┌────────┴────────┐
15          │                 │
16       Response           Tool
17                            ↓
18                       Tool Result
19                            ↓
20                         Model
21                            ↓
22                       Next action

The runtime handles things around the model.

Tools provide capabilities.

State keeps track of what’s happening.

The model provides the reasoning and decision-making.

That distinction has changed how I think about AI applications.

Then state becomes a problem

Once the system can perform multiple steps, simply storing messages isn’t always enough.

Now I have to think about things like:

  • What session is this?
  • What conversation does it belong to?
  • Which tools have been called?
  • What were their results?
  • What is the agent currently doing?
  • What should happen if something fails?
  • What needs to persist after the request ends?

A normal chat application can get away with thinking mostly about messages.

An agent application starts looking more like a stateful system.

I’m still working through how I want Z3phyr to handle that properly.

I’m intentionally trying to understand the problem before throwing a database at everything.

More capability also means more responsibility

Giving an AI access to tools sounds great until the tools can actually affect your environment.

Reading a file is one thing.

Creating, modifying, moving, or deleting files is another.

That’s why I’ve been treating tools as explicit capabilities rather than giving the model unrestricted access to everything.

The agent should only be able to do what I’ve intentionally exposed.

And the application still needs to enforce those boundaries.

This is one of the areas where building an agent starts feeling much more like traditional software engineering.

Permissions matter.

Validation matters.

Error handling matters.

Observability matters.

The model doesn’t remove those problems.

It introduces new ones.

Where the architecture is going

As the agent became more capable, I also needed a better way to structure the work it performs.

Instead of treating every task as one long sequence of model calls and tool calls, I started experimenting with a DAG (Directed Acyclic Graph) approach.

The idea is to represent work as connected steps with dependencies between them.

That gives me a way to describe things like:

Task ├── Step A │ ├── Step B │ ↓ │ Step D │ └── Step C ↓ Step D

This opens up some interesting possibilities around execution order, dependencies, and eventually running independent pieces of work in parallel.

I’m still refining how I want this to work inside Z3phyr, so I’m not going too deep into the implementation here.

I’ll be writing a separate post about the DAG approach and how I implemented it in Z3phyr.

For now, the important part is that moving from a chatbot to an agent isn’t just about adding tools.

The architecture around those tools starts becoming important too.

I’m still figuring out what “agent” means for Z3phyr

I don’t think there’s a single switch where an application goes from being a chatbot to being an agent.

For me, it’s been more gradual.

Z3phyr started as:

Chat UI ↓ LLM ↓ Response

Then became:

Chat UI ↓ LLM ↓ Tools ↓ Tool results ↓ LLM

And now I’m working toward something more capable:

User ↓ Z3phyr Runtime ↓ Model ↓ Plan / Decide ↓ Skills + Tools ↓ Results ↓ State ↓ More actions ↓ Final result

There are still a lot of things I want to figure out.

Better memory.

More useful skills.

Scheduled tasks.

Background execution.

Computer interaction.

Long-running tasks.

Better model selection.

And eventually, multiple specialized agents working together.

But I’m trying not to build all of that at once.

What changed for me

The biggest shift wasn’t adding an AI SDK or connecting a different model.

It was changing the question I was asking.

At first I was asking:

“How do I make an AI chat application?”

Now I’m asking:

“How do I build software that allows an AI to actually get things done?”

Those sound similar, but they’re very different engineering problems.

And that’s what I’m exploring with Z3phyr.

Published on September 23, 2026
Last updated September 23, 2026