Agents and services · ai-007

How is an agent different from a chatbot?

In an agent, the model only asks to use tools and a program does the work, so you can have it stop and ask before steps like payment.

At a glance

A chatbot answers in words; an agent gets things done with tools such as search, a shopping cart, or payment. The language model at the heart of an agent never presses a button itself. It writes a request (“use this tool with these values”), and a program carries it out and sends back the result. Since the program does the acting, it also decides what runs right away and what needs a person’s approval first. Anything hard to undo, like paying or sending, should be set up to stop and ask.

The model writes requests; a program acts

The language model (LLM) behind an agent produces text. It has no hands: it cannot search the web or click “add to cart” on its own. Instead, it writes a request in a predefined format that says which tool to use and with what values.

Anthropic’s documentation on tool use describes the flow this way: the model returns a structured call that your application runs (or, for some server tools, that Anthropic runs), and your code performs the operation and sends the result back to the model. OpenAI’s function-calling guide makes the same point: when the model calls a function, the developer’s code must execute it and return the result.

Put together, one round goes like this:

  1. The LLM writes a request: “search for 2 L bottled water.”
  2. The program receives it, runs the actual search, and returns the result (a list of products) to the LLM.
  3. The LLM reads the result and writes the next request: “add the cheapest one to the cart.”

An agent repeats this exchange until the goal is met. In short, an agent is a model plus tools plus a loop. (The shopping steps here are an example.)

The LLM sends a request to the program, such as search for 2 L water; the program runs the tool and returns a result, such as a list of products. Below the program are three tools: Search and Add to cart run right away, while Pay has a rule to ask first and leads to a box where a person approves or says no. (Example steps and tools)

Because a program acts, you can choose where it stops

Whether a request actually runs is up to the program. So you can set a rule for each tool: run search requests immediately, but ask a person before any payment. When an agent pauses before paying, the model has not decided to be careful. The program that carries out payments has a rule that says to pause.

People want this kind of control. In a 2025 Accenture survey of 10,000 banking customers in 10 countries, 82% said they would want to approve each action an AI takes in AI-supported banking interactions, and 79% said they would want a one-tap pause option.

Where the errand comparison breaks down

It is tempting to think of an agent as an assistant you send on an errand: “just water, up to 20 dollars.” The comparison helps, but with two differences.

  • An assistant acts on their own. The model does not; it only writes requests. The hands belong to the program that receives them.
  • An assistant understands “up to 20 dollars” and sticks to it. If you only tell an agent in words, the model can get it wrong: as Why does AI state falsehoods so confidently? explains, a model can produce answers that sound right but are not. Limits that must hold, such as a spending cap or a confirmation before paying, belong in the program’s rules.

Not covered here

This lesson does not go into the exact format of tool requests (data containing a tool name and values), the standards for connecting many tools in a common way, or attacks in which a malicious web page tries to trick an agent. Planning and repeating steps, along with permissions and pauses, are the next concepts in this layer.

Remember

  1. Set the scope first: what it may buy, how much, and where.
  2. Require confirmation before paying or sending anything.
  3. Keep a record of what the agent did.

Next question

The tools an agent uses are ultimately programs on a device and requests sent over the internet. How does a program carry out instructions, and where does a request go once it leaves your device? Those questions lead down to the programs and internet layers.

Sources

  • Anthropic documentation, Tool use with Claude: “It then returns a structured call that your application runs (client tools) or that Anthropic runs (server tools).” · “Your code runs the operation and sends back a tool_result.”
  • OpenAI documentation, Function calling: “When the model calls a function, you must execute it and return the result.”
  • Accenture, Top Banking Trends 2026 (page 20): “More than four-fifths (82%) said they would want to approve each action, and 79% said they would want a one-tap pause option.” · “Between September and November 2025, we surveyed 10,000 nationally representative banking consumers across 10 countries”

Stay in the loop

Get new posts by email, plus launch news when it's ready. No spam.