Chatbot vs LLM vs AI Agent: Explained Simply
LLM, chatbot and AI agent are not three rival things, they are one evolution. Learn what each one is, how chatbot memory really works, what a tool call is, and the one question that tells you which one any AI tool really is.
Mahnoor 6 min read 10-item prompt pack
If you are learning AI, you hear three words all the time: LLM, chatbot and AI agent. People use them like they mean the same thing, but they do not. In this lesson we explain chatbot vs LLM vs AI agent in plain words, and the easiest way to see it is that they are not three rival technologies. They are one evolution. First we got LLMs, then we built chatbots around LLMs, and now those chatbots are turning into AI agents. By the end you will know what each one is, how they connect, and one simple question that tells you which one any AI tool really is.
Layer 1: the LLM
In our What is RAG lesson, we talked about a student in a closed-book exam. They answer everything from memory, and they sound confident even when they are guessing. That student is an LLM, which stands for large language model.
An LLM is trained on a huge amount of text, and what it really learned to do is predict the next word. It writes one word, then the next, again and again, until it has a full answer. GPT, Gemini and Claude are all LLMs.
On its own, an LLM has two big limits:
It has no memory. Every request starts from zero. If you tell it your name in one request and ask for it in a new one, it has no idea.
It cannot act. Text goes in and text comes out. It cannot open a website, check the time or run your code by itself.
Layer 2: the chatbot
When you open ChatGPT or Gemini, you are not talking to the LLM directly. You are talking to an app built around the LLM, and that app is the chatbot.
How chatbot memory really works
This is the part most people never hear. The chatbot seems to remember your conversation because every time you send a message, the app quietly sends the whole chat again, from the very first message, to the LLM. The LLM still forgets everything after each reply. The app is just reminding it every single time. (Features like saved memories work the same way: the app stores a few facts and adds them to what it sends.)
The app can also add extra things around the LLM, like rules (a system prompt), a web search, or a RAG search over your notes. That means the study buddy we built in the RAG lesson is a chatbot.
With a chatbot, you are still in control. You ask, it answers, and then it waits for you.
The key question: who decides the next step?
This one question separates everything. In our study buddy, the steps are written in the code: search the notes, take the top three cards, answer. Same order, every time. When a developer fixes the steps in advance like that, it is called a workflow. A workflow can use an LLM, and it can be really useful, but it is not an agent.
Layer 3: the AI agent
An AI agent is what you get when the LLM itself decides the next step.
Go back to our student, and this time give them a whole group project instead of one question. They make a plan, go to the library, use a calculator, check their own draft, fix the weak parts, and only message the teacher when they are stuck or need permission. Nobody told them the order. They decided it.
The agent loop
An agent works the same way. You give it a goal, and it runs in a loop:
Think: what should I do next?
Act: use a tool.
Look: read the result.
Decide again, until the goal is done.
What a tool really is
A tool sounds like magic, but it is simple. The LLM still cannot run anything. So it writes a short message saying which tool it wants and with what input, for example search_notes("loops"). Your code reads that message, runs the real function, and sends the result back to the LLM. The LLM is the brain, and your code is its hands. This is called tool calling (or function calling), and every big AI API supports it.
Human in the loop
A good agent stops and asks you before anything risky, like paying, sending a message or deleting files. That approval step is called human in the loop, and you should build it into any agent that can change real things.
Chatbot vs agent on a real bug
You have probably seen both already. Paste an error into a chatbot and it explains the problem and gives you code to copy. Give the same bug to a coding agent (like Claude Code, Cursor's agent or Codex) and it opens the files, makes the change, runs the tests and keeps trying until they pass. Both can use the exact same LLM underneath. The difference is who decides the next step.
The one-question test
Whenever you see a new AI tool, ask: who decides the next step?
It answers, then waits for you: chatbot.
A developer wrote the steps in advance: workflow.
It makes its own plan, uses tools and keeps going until the goal is done: AI agent.
The "Which one do I need?" prompt below runs this test for you on any tool or project idea.
When not to use an agent
Agents are slower and cost more, because they call the LLM again and again, and every extra step is another chance to go wrong. If your steps are always the same, a workflow is faster, cheaper and easier to trust. Use an agent only when the steps really change from one task to the next.
Recap
LLM: writes text and forgets.
Chatbot: an app that keeps the conversation going while you lead.
Workflow: fixed steps written by a developer.
AI agent: the LLM decides its own next steps, using tools, until the job is done.
Next, we turn our study buddy into a real agent. If you want a head start on using AI for code, see our 7 GitHub repos for AI coding lesson. All the prompts from this lesson are below: three are free to copy right now, and the full pack (agent plan template, tool description writer, agent loop system prompt and more) unlocks when you sign in for free.
Prompt pack
Every prompt from this lesson
Everything from the video: the one-question test prompt, the is-this-an-agent check and the quiz, plus the full agent pack: an agent plan template, a tool description writer, a think-act-check system prompt, an agent log debugger, a workflow-or-agent check and the study buddy to agent upgrade plan.
I am a student developer. Here is an AI tool or project idea:
[describe it in 2-4 sentences]
Tell me which of these it is (or should be): a plain LLM call, a chatbot, a workflow, or an AI agent.
Use this test: who decides the next step?
- Answers once, then waits for the user = chatbot
- Steps fixed in advance by a developer = workflow
- The LLM plans, uses tools and keeps going until a goal is done = agent
Reply with:
1. The verdict in one sentence.
2. Why, in 2-3 short bullet points.
3. The simplest version I should build first, and what would make it worth upgrading later.
Keep it short and use plain words.
Below is the description of an AI product. Decide whether it is a chatbot, a workflow or an AI agent.
Check three things and quote the part of the description that proves each one:
1. Does it decide its own next step, or does the user or a developer decide?
2. Can it take actions with tools (browse, run code, send, edit files), or does it only write text?
3. Does it keep going in a loop until a goal is done, or does it stop after one answer?
If the description is vague or full of marketing words, say what is missing instead of guessing.
[paste the product description]
Quiz me on the difference between an LLM, a chatbot, a workflow and an AI agent.
Ask me one question at a time (5 questions total), starting easy and ending with a real-world example I have to classify.
Wait for my answer each time. Then tell me what I got right, fix what I got wrong in one or two sentences, and move on.
At the end, give me a score out of 5 and the one idea I should review.
7 more items in the full pack
Free. Sign in once and every prompt pack on Morow Global unlocks.
Sign in free to unlockAlready a member? Sign in
FAQ
What is the difference between an LLM, a chatbot and an AI agent?
An LLM is the model that predicts text, like GPT, Gemini or Claude. A chatbot is an app built around an LLM that keeps your conversation going while you lead. An AI agent is a system where the LLM decides its own next steps and uses tools in a loop until a goal is done.
Is ChatGPT an LLM or a chatbot?
ChatGPT is a chatbot app. The LLM underneath is a GPT model. Today ChatGPT also has agent features, like browsing and running code on its own, so one product can contain a chatbot and an agent at the same time.
How does a chatbot remember my conversation?
The LLM itself remembers nothing between requests. Every time you send a message, the app sends the whole chat again, from the first message, so the LLM can read it. Saved memory features work the same way: the app stores facts and adds them to what it sends.
What is the difference between a workflow and an AI agent?
In a workflow, a developer writes the steps in advance and they run in the same order every time. In an agent, the LLM decides the next step itself based on the results it gets. Ask who decides the next step, and you know which one it is.
Should I always build an AI agent?
No. Agents are slower and cost more because they call the LLM many times, and they have more chances to go wrong. If your steps are always the same, build a workflow. Use an agent only when the steps really change from one task to the next.