Agent, chatbot, and script name three different tools. A chatbot answers. A script executes a fixed sequence. An agent pursues a goal through tools and adjusts as it goes. Picking the wrong one is a common reason automation projects disappoint. This guide defines each term, compares them side by side, gives a decision framework for choosing, and walks through one hypothetical task built all three ways.
What a chatbot is
A chatbot holds a conversation. You type, it responds, you type again. It may be powered by a powerful language model, but its job is to produce the next message - not to take action in the world. Customer-support widgets, character bots, and the chat window you use to brainstorm are all chatbots. They are excellent at explaining, drafting, and answering questions. They cannot, on their own, check your calendar, file an expense report, or fix a broken workflow, because they have no hands - only words.
The chatbot's strength is also its boundary: everything happens inside the conversation. That makes chatbots cheap to run, easy to supervise (you read every exchange), and safe by default - a chatbot cannot accidentally delete your files because it has no mechanism to touch them. Their weakness is follow-through. A chatbot can write you a perfect plan for reorganizing your files and then do absolutely nothing about it. Whenever someone complains that an AI tool gave great advice but no results, they were usually talking to a chatbot while expecting an agent.
What a script is
A script is a fixed sequence of steps written in advance: do A, then B, then C. It runs the same way every time, which makes it fast, cheap, and perfectly reliable - as long as nothing unexpected happens. The moment reality deviates from what the author anticipated, a script fails or does something silly. Scripts are ideal for repetitive, well-understood tasks with no surprises: nightly backups, formatted reports, moving files between folders. If the task never changes, a script beats an agent on every dimension that matters.
Scripts have one more advantage people underestimate: they are inspectable. You can read a script and know exactly what it will do, which means you can prove it is safe, test it completely, and hand it to an auditor. Nobody can do that with an agent, whose behavior varies run to run. In regulated or high-stakes environments, that inspectability is often the deciding factor. The rule of thumb stands: if you can write down every step in advance, a script is not just adequate - it is the better tool.
What an AI agent is
An AI agent is given a goal and figures out the steps itself. It can use tools - searching the web, running code, reading files, calling APIs - observe the results, and adjust its plan. Unlike a chatbot, it acts. Unlike a script, it improvises. That flexibility is the whole point: agents handle tasks where the steps cannot be fully specified in advance, like find three vendors for this part and compare quotes or clean up this messy spreadsheet however you need to. The price of that flexibility is unpredictability. An agent may take an unexpected route, misunderstand a step, or burn through resources solving a problem a script would have handled in seconds.
The right way to think about an agent is as a capable but unsupervised junior hire with tools. It will attempt whatever you describe, it will not ask whether it should, and its work needs review. That framing explains both the enthusiasm and the disappointment around agents: people who expected a script's reliability from an agent's flexibility were set up to be let down, while people who supervised the agent like a new hire and gave it judgment-shaped tasks got real value. The tool is not broken; the expectations were miscalibrated.
Side-by-side comparison
Lined up against each other, the trade-offs become concrete. Use this comparison when you are deciding between the three for a specific task:
- What it does: a chatbot converses - it produces the next message. A script executes fixed steps - it runs the same sequence every time. An agent pursues a goal using tools - it plans, acts, observes, and adjusts.
- Best for: chatbots suit questions, explanations, drafts, brainstorming, and anything where the deliverable is words. Scripts suit repetitive, unchanging tasks: backups, formatted reports, file moves, scheduled jobs. Agents suit multi-step tasks with unknowns: research briefs, triage, coordination, cleanup jobs where the mess is different every time.
- Reliability: scripts are deterministic - same input, same output, every time. Chatbots are consistent within a conversation but vary between sessions. Agents vary run to run; the same goal can produce different paths and different results.
- Cost: scripts cost almost nothing to run. Chatbots cost a little per message. Agents cost the most, because they take many steps and each step is a full model call with growing context.
- Speed: scripts run in seconds or less. Chatbots respond in seconds. Agents take minutes to hours, because they work through sequences of tool calls and reasoning steps.
- Supervision needed: chatbots need you to read the conversation, which you do naturally. Scripts need testing up front, then run unattended. Agents need active oversight - reviewing outputs, checking tool logs, and setting limits - for as long as they run.
- Failure mode: scripts break loudly on surprises - they crash or produce obvious errors. Chatbots give wrong answers smoothly, with full confidence. Agents wander off quietly, producing plausible-looking results that drifted from the goal three steps ago.
- Setup effort: chatbots need almost none - open and type. Scripts need someone to specify every step up front, which is real work. Agents need careful instructions, constraints, and limits - less than scripting every step, more than most people expect.
Which one do you actually need? A decision framework
When you are unsure which tool fits, walk through these five questions in order. The first question that gives you a clear answer decides it:
- Question 1: Is the deliverable words? If what you need is an explanation, a draft, a summary, or an answer to a question - use a chatbot. Do not build an agent to write you a paragraph.
- Question 2: Can you write down every step in advance? If yes - every branch, every exception, every input format - write a script. It will be cheaper, faster, more reliable, and inspectable. Agents are for the steps you cannot specify.
- Question 3: Does the task require judgment in the middle? If the steps depend on interpreting messy, varied inputs - this invoice is formatted differently, this customer request is ambiguous - and tools are needed to act on the judgment, that is agent territory. Judgment plus action is the agent's defining combination.
- Question 4: What happens when it goes wrong? If a wrong action is costly or irreversible, prefer the script (predictable) or keep a human in the loop with any tool. An agent's flexibility is a liability when mistakes are expensive - its failure mode is quiet drift, the hardest kind to catch.
- Question 5: How often does the task change? Stable tasks reward the upfront investment of scripting. Tasks that are different every time - new vendors, new messes, new questions - never pay back scripting effort, because the script needs rewriting each time. Agents handle novelty; scripts handle repetition.
Notice what the framework does: it defaults you to the simpler tool. Most automation disappointments come from reaching for the most exciting tool first. The chatbot handles the words, the script handles the routine, and the agent earns its place only where judgment must meet action on unpredictable inputs.
A worked hypothetical: invoice intake three ways
Here is a hypothetical example - an invented scenario to illustrate the trade-offs, not a real deployment. Imagine a small business receiving twenty supplier invoices a month by email, in PDF attachments with varying layouts, that need to end up in the accounting system. Built three ways:
As a script: someone writes code that watches the inbox, extracts text from each PDF, and maps fields - invoice number, date, amount, vendor - into the accounting system's import format. For the twelve vendors whose layouts never change, this works flawlessly in seconds at negligible cost. For the other eight, whose layouts drift or arrive as scanned images, the script fails loudly: it crashes, logs an error, and a human handles the exceptions. Total ongoing cost is near zero; the failure mode is visible and contained. This is the right answer if the vendor set is stable.
As a chatbot: there is no automation at all. Each month, someone pastes invoice details into a chat and asks for the import rows, then copies the result into the accounting system. It handles every layout - the model reads whatever is in front of it - but a human does the moving, the checking, and the filing. The chatbot saved typing, not time. This is the right answer if volume is tiny and nobody wants to maintain anything.
As an agent: the agent watches the inbox, opens each PDF however it arrives, extracts the fields, deals with the odd layouts by reasoning about them, enters everything into the accounting system, and reports what it did. It handles all twenty vendors including the weird ones. It also costs the most by far, takes minutes per invoice instead of seconds, occasionally misreads a field on an unusual layout, and - critically - it has its hands on the accounting system, so a misread amount becomes a real error in the books unless a human reviews the entries. This is the right answer only if the vendor set churns constantly and the business accepts review overhead as the price of handling novelty.
The lesson of the hypothetical: the same task has three correct answers depending on stability, volume, and tolerance for review. Most real businesses in this situation pick the script for the stable vendors and let the agent - or a human - handle the exceptions. Which brings us to the hybrid reality.
The hybrid reality: combining all three
In practice, the lines blur. Many products marketed as agents are chatbots with a few tools attached; many scripts now call language models for one tricky step. Don't get too attached to the labels. What matters is matching the tool's actual behavior - how much it improvises, what it can touch, and how it fails - to your task's tolerance for surprise. Ask vendors what happens when the task goes off-script. The answer tells you what you are actually buying: an agent, or a chatbot with ambitions.
The best setups deliberately combine all three, assigning each the part it does best. A script handles the routine, deterministic core - the parts that never change. An agent handles the messy middle - the exceptions, the varied inputs, the judgment calls the script cannot cover. A chatbot sits on top as the interface, letting you ask questions about what happened and give new instructions in plain language. In the invoice example: the script processes the twelve stable vendors, the agent handles the eight odd ones with a human reviewing its entries, and a chatbot lets the owner ask what got processed this month without opening the accounting system. Each tool stays in its lane; nothing is asked to do another tool's job.
Upgrading over time
You do not have to pick the final architecture on day one. A natural progression: start with a chatbot to explore the task - have it draft the process, handle a few instances manually, and learn where the variability actually is. If the task turns out to be stable and repetitive, script it; the chatbot phase taught you exactly which steps to encode. If it turns out to be varied in ways you cannot enumerate, promote it to an agent with proper constraints and supervision. And when an agent's task settles into a pattern - the same vendor layouts month after month - demote the stable parts back to a script and keep the agent for the exceptions. Tools should move down the complexity ladder as understanding grows, not up.
Questions people actually ask
Isn't an agent just a better chatbot? No - and the confusion costs people real money. A better chatbot still only produces words. An agent's defining feature is not intelligence but agency: it takes actions through tools, in sequence, toward a goal, without you in the middle. You can have a brilliant chatbot and a mediocre agent; they are different dimensions. Judge each tool by what it does, not by how smart it sounds.
My vendor says their product is an AI agent. How do I check? Ask three questions. First: what tools can it actually use, and what happens when a tool call fails - does it recover, retry blindly, or stop? Second: show me what it does when the task goes off the expected path - the answer reveals whether it improvises or just follows a script with AI-generated text. Third: what does it cost per task, and what limits can I set? Products that cannot answer the cost question are usually priced for demos, not production.
Can a chatbot become an agent by adding tools? Partially - and this is exactly what most agent products are. A chatbot with web search, code execution, and file access, wrapped in a loop that lets it act on results, is functionally an agent for many purposes. The label matters less than the behavior: once a system can take actions without your per-step approval, you need agent-grade supervision - constraints, limits, and review - regardless of what the marketing calls it.
Which should I learn first? The chatbot, because you already know how - it is a conversation. Then the script, because thinking in explicit steps is the skill that makes you good at instructing agents later. People who can write down a task's steps precisely write better agent instructions than people who cannot, because they know what complete specification looks like and can recognize where their agent instructions fall short of it.
The one-sentence version
Use a chatbot when you need words, a script when you need the same actions repeated exactly, and an agent when you need judgment applied through tools to inputs you cannot fully predict - and whenever you are unsure, start with the simpler tool and promote only when the task proves it needs more.
Frequently asked questions
Is an agent just a better chatbot?
No. A better chatbot still only produces words. An agent takes actions through tools in sequence toward a goal without you in the middle. Judge each tool by what it does, not by how smart it sounds.
My vendor says their product is an AI agent. How do I check?
Ask what tools it can use and what happens when a tool call fails, ask what it does when the task goes off the expected path, and ask what it costs per task and what limits you can set.
Can a chatbot become an agent by adding tools?
Partly, and most agent products work this way. A chatbot with web search, code execution, and file access in a loop that acts on results works as an agent for many purposes and needs agent-grade supervision, constraints, limits, and review.
Keep reading
Guide
Comparing AI Agent Frameworks
Framework marketing converges on the same claims. The dimensions that matter for choosing: control, observability, tooling, deployment, cost, and team fit, plus a 30-day evaluation plan and the build-versus-buy math.
2026-09-29
Guide
10 Tasks AI Agents Handle Well (and 5 to Keep in Your Hands)
Where AI agents earn their keep in 2026 and where they still fall short. A decision grid for delegating checkable, low-cost work and keeping judgment, money, and public commitments in human hands.
2026-09-26
Guide
Managing Agent Memory and Context
How agent context actually works, what fills it fastest, and the patterns that keep long runs coherent: a written state file, checkpoint summaries, trimmed tool outputs, and memory separated by lifetime.
2026-09-29
Accounts and the planned features are not open yet. See what is planned. The catalog and the browser workspace are free and need no account.