A Chatbot Tells You How. An Agent Just Does It.
Ask a chatbot "how do I get lunch delivered?" and it politely lists the steps: open the app, pick a restaurant, checkout, track the courier. Helpful, but you still do all the work.

Ask an AI agent the same thing and something different happens. It checks your order history, picks the restaurant you usually order from, places the order, pays, and pings you when the courier is two minutes away. You gave it a goal. It handled the steps.
That gap — between explaining and executing — is the whole point of agents. And once you understand the four parts that make execution possible, agent demos stop looking like magic and start looking like plumbing. Good plumbing, but plumbing.

Building Block 1: The Brain (the Large Language Model)
Every agent starts with a large language model, or LLM — the same kind of model behind ChatGPT or Claude. Think of it as the hungry person holding the phone: it reads the menu, weighs the options, and decides that today calls for noodles, not salad.
But notice what the brain can't do. It can't tap the screen, transfer money, or talk to the restaurant. Deciding is not doing. This is the most common misunderstanding I run into when friends ask how agents work: the model itself never touches your apps or data. It only outputs decisions and instructions.
So what turns decisions into action? Block two.
Building Block 2: Tool Calling (the Hands)
Tools are the specific actions an agent is allowed to take: search the web, send an email, read a spreadsheet, query your expense system. Each tool is a predefined button the agent knows exists, plus a description of when to press it.
Back to food delivery: the app's interface is the toolset. "Place order," "track courier," "request refund." The agent doesn't invent new buttons — it picks from the ones developers built in advance.
Under the hood, the agent's output isn't always plain text. Sometimes it's a structured instruction like call tool "get_weather" with city = "Tokyo". Separate software runs that call, hands the result back to the model, and the model keeps thinking with fresh information.
Practical tip: agent quality depends heavily on how tools are described. A tool named "process_data" tells the model almost nothing. "Search unpaid invoices by customer name and return the total due" — now it knows exactly when to use it. I've fixed more "broken" agents by rewriting tool descriptions than by swapping models.
Building Block 3: Memory (the Order History)
Memory comes in two flavors, and the delivery app shows both.
- Short-term memory is the current conversation — like the chat window with your courier during one delivery. It holds recent context so the agent doesn't ask your address three times in a row.
- Long-term memory is your saved preferences: extra spice, no cilantro, leave at the door. It persists across sessions, so next month's order starts from what last month's order taught it.
Technically, long-term memory is usually just a database the agent reads from and writes to — not mystical brain tissue. When an agent "remembers" your team's $50 meal cap, someone stored that fact and gave the agent a tool to fetch it.
Why it matters: without memory, every task starts from zero. With it, the agent gets personal — it knows your usual lunch, your manager's name, which projects you're on.
Building Block 4: Planning (the Delivery Route)
Ordering lunch is one step. Real work rarely is. Take expense reimbursement:
- Find the receipt photo I uploaded last week
- Read the amount and vendor from it
- Pick the right expense category per company policy
- Check the trip budget still has room
- Fill in and submit the form in the finance system
- Notify my manager in Slack
An agent plans this sequence before acting, executes step by step, and — the part people underestimate — re-plans when reality disagrees. If the receipt won't parse, a good agent doesn't give up or invent a number. It falls back: ask you for the amount, or flag the item for manual review. It's a courier rerouting around a closed road, not a courier stopping the car to write you an essay about traffic.
All Four Blocks, One Full Run-Through
Watch them cooperate on a single request: "Order my usual Friday lunch."
- Brain: interprets the request and decides it needs order history, restaurant hours, and a payment method.
- Memory: recalls you always order the spicy noodle bowl from the place on 5th Street, cilantro on the side.
- Planning: builds the sequence — check hours → place order → pay → confirm delivery time.
- Tools: executes each step via the app's APIs. The restaurant turns out to be closed, so the agent loops back to planning, picks your second-favorite spot from memory, and finishes.
Notice the failure handling. That's the difference between a demo and something you'd trust with your credit card.
Chatbot vs. Agent: The Short Version
- Chatbot: answers questions. Output is text. Your hands do the work.
- Agent: completes tasks. Output is actions in real systems. Your hands stay in your pockets.
- Chatbot: forgets you when the tab closes.
- Agent: carries memory and preferences across tasks.
- Chatbot: one turn at a time. Agent: a loop of plan → act → observe → adjust until the goal is met.
When You Actually Need an Agent (and When You Don't)
Agents are heavier to build and harder to test than chatbots, so don't reach for one by default. My rule of thumb: stick with a chatbot for one question, one draft, or one explanation — like drafting a reimbursement email. Go agent when the task is multi-step, touches other systems like calendar or finance, or repeats every week — like actually submitting the reimbursement.
Three lessons from building these that will save you pain:
- Start with three to five tools, not thirty. Every extra tool is another way to pick the wrong one. Expand only when the small set works reliably.
- Keep a human in the loop for anything irreversible. Payments, client emails, deleting records — require a confirmation click first. Reading is cheap; writing is where trust gets earned.
- Write tool descriptions like you're briefing a new intern. Say what the tool does, what it returns, and when to prefer it over an alternative. Vague descriptions are the top cause of agents that work in the demo but not on Tuesdays.
The One-Sentence Summary
An AI agent is a large language model brain, wired to real tools, carrying memory of what matters, and working through a plan — adjusting when the restaurant turns out to be closed. A chatbot tells you how to order lunch. An agent orders it, and remembers to skip the cilantro.