What separates an AI agent from a standard LLM chatbot

developer2026-11-25

On this page

An AI system becomes an agent when it can call tools, read what those tools return, and choose its next step until it reaches a goal. A standard LLM chatbot takes text in and returns text out in a single turn, with no way to act on outside systems. The difference lies in the loop around the model, not in the model itself.

The short answer is tools plus a loop

The defining feature is a loop that connects the model to actions. The agent reads a goal, picks a tool, runs it, reads the result, and decides what to do next. The same model can power both designs. A chatbot skips the loop and stops after one reply.

Three parts make the loop work: tool access, a control layer that runs the cycle, and state that carries results from one step to the next.

Tool use is the first dividing line

A standard chatbot produces text. An agent produces text and tool calls. The model emits a structured request, such as a function name with JSON arguments. The host program executes that request against an HTTP API or another service, then places the output back into the model's context.

Tool access arrives in several forms. Function calling lets a developer define tools inside a single model request. The Model Context Protocol, usually shortened to MCP, standardises how a client discovers and calls tools served by separate servers. An MCP gateway puts many such tools behind one connection. APIbase is one such gateway.

Some tools charge per call. Payment protocols such as x402 let an agent pay in USDC over HTTP. The agent can settle a small fee without a person entering card details.

The loop plans, acts, observes, and repeats

The control loop decides when the agent stops. It sends the model the goal and the history so far. The model returns either a final answer or a tool call. The host runs the call, appends the result to the history, and sends the updated history back. The cycle repeats until the model returns an answer or a stop rule fires.

A chatbot runs this cycle once. The user sends a message, the model replies, and the turn ends. Nothing in the system acts on the reply unless a person does.

State carries the work between steps

An agent keeps a record of what it has tried. The record includes tool calls, their results, errors, and intermediate notes. Without that record, each step would start blind. Developers store state in the prompt, in a database, or in a file that the loop reads on each pass.

State also lets the agent recover. If an HTTP call returns a rate limit error, the agent can read the error, wait, and retry. A chatbot cannot notice an error it never caused.

Who chooses the next step

In an agent, the model chooses the next action. The developer sets the boundaries: which tools exist, what permissions each tool carries, and how many steps the loop may take. A well-built agent has a step cap, scoped credentials, and a way for a person to approve risky actions.

This choice is the core of agent autonomy. The system decides which call to make next based on what it has already seen. A chatbot decides only which words to write next.

A worked example for developers

Suppose a developer wants a support assistant that checks an order and issues a refund. A chatbot can explain the refund policy, but it cannot look up the order or move money. An agent with a lookup tool and a refund tool can read the order record, check the policy text, call the refund endpoint, and confirm the result in its reply.

The same agent can fail in ways a chatbot cannot. It might call the refund twice after a timeout. Developers guard against this with idempotency keys, a confirmation step before money moves, and a log of every call.

Where a standard chatbot is still the better choice

A chatbot suits tasks that need one good answer. Summaries, drafting, explanation, and translation rarely need outside actions. An agent adds latency, cost per step, and new failure modes. Developers who only need text should build the simpler system.

No public benchmark settles which design wins for every team. Teams should measure task success and error rates on their own workload before they commit.

How to check whether a system is an agent

Four checks separate an agent from a chatbot:

  • Can the system call a tool that reads or changes external state?
  • Does it read the tool result and act on that result?
  • Does it run more than one step without a person sending each message?
  • Does it keep track of what happened earlier in the same run?

A system that passes only the first check is a chatbot with a tool attached. It becomes an agent when the loop lets the model act on what the tool returns.

Live pricing — developer

Price per call, developer tools Horizontal bar chart of the price per call and the cache-hit price, in US dollars, for 12 developer tools. The same values are in the table below the chart. Price per call Cache-hit price $0.0 $0.0005 $0.001 Usage Time SeriesUsage Time Series $0.0 $0.0 Per-Tool Usage BreakdownPer-Tool Usage Breakdown $0.0 $0.0 Usage SummaryUsage Summary $0.0 $0.0 Discover ToolsDiscover Tools $0.0 $0.0 Batch Tool CallsBatch Tool Calls $0.0 $0.0 Tool Quality MetricsTool Quality Metrics $0.0 $0.0 Tool Quality RankingsTool Quality Rankings $0.0 $0.0 List Programming LanguagesList Programming Languages $0.001 $0.0001 Check CVE ID Reservation Stat…Check CVE ID Reservation Status $0.001 $0.0001 Security Advisories (deps.dev)Security Advisories (deps.dev) $0.001 $0.0001 Dependency Tree (deps.dev)Dependency Tree (deps.dev) $0.001 $0.0001 Package Info (deps.dev)Package Info (deps.dev) $0.001 $0.0001 US dollars per call
Price per call for developer tools, cheapest first.

Data source: live tool catalog snapshot, fetched 2026-11-25.

Chart data as a table
ToolPrice per callCache-hit price
Usage Time Series$0.0$0.0
Per-Tool Usage Breakdown$0.0$0.0
Usage Summary$0.0$0.0
Discover Tools$0.0$0.0
Batch Tool Calls$0.0$0.0
Tool Quality Metrics$0.0$0.0
Tool Quality Rankings$0.0$0.0
List Programming Languages$0.001$0.0001
Check CVE ID Reservation Status$0.001$0.0001
Security Advisories (deps.dev)$0.001$0.0001
Dependency Tree (deps.dev)$0.001$0.0001
Package Info (deps.dev)$0.001$0.0001
ToolProviderPrice/callCache-hit
Usage Time Seriesaccount$0$0
Per-Tool Usage Breakdownaccount$0$0
Usage Summaryaccount$0$0
Discover Toolsapibase$0$0
Batch Tool Callsplatform$0$0
Tool Quality Metricsplatform$0$0
Tool Quality Rankingsplatform$0$0
List Programming Languagesjudge0$0.001$0.0001
Check CVE ID Reservation Statuscve-mitre$0.001$0.0001
Security Advisories (deps.dev)depsdev$0.001$0.0001
Dependency Tree (deps.dev)depsdev$0.001$0.0001
Package Info (deps.dev)depsdev$0.001$0.0001

Connect via MCP

How a tool call worksAn AI agent sends a tool call to the APIbase gateway. The gateway checks payment, calls the provider API, and returns the JSON result to the agent.Your agentAPIbase gatewayProvider API1. tool call2. paid call3. JSON result flows back to the agent
Diagram: the path of one tool call.

Data source: gateway design, no measured values.

$ curl -X POST https://apibase.pro/api/v1/tools/account.timeseries/call \
  -H "Content-Type: application/json" -d '{"params": {}}'

FAQ

What is the main difference between an AI agent and a chatbot?

An agent runs a loop in which the model calls tools, reads their results, and picks the next step until a goal is met. A chatbot returns one text reply per turn and does not act on outside systems on its own.

Is a chatbot with function calling an agent?

Not by itself. Function calling lets the model request a tool. The system becomes an agent when the host runs the tool, feeds the result back, and lets the model choose further steps.

Does an agent need an MCP server?

No. An agent can call tools through function calling, direct HTTP requests to an API, or an MCP server. MCP standardises discovery and invocation, so one client can reach many tools without custom code for each.

Does an agent need to run without a human?

No. Many useful agents pause for approval before they send money, delete data, or send messages. The defining trait is that the model chooses the steps, not that no person ever reviews them.

Does an agent need long-term memory?

It needs state for the current run. The run history, tool results, and errors are enough for many tasks. Memory that persists across sessions is an added feature that a developer can choose to build.

Which should a developer build first?

Start with the simplest design that meets the task. If the task needs an outside fact or action, add one tool and a short loop. Add more steps only after logs show that the single-call design fails.

  1. STEP 1/2 Connect your MCP client
  2. STEP 2/2 Browse the full catalog

Written with AI assistance from APIbase's published documentation and public data; checked automatically against them. Corrections: https://apibase.pro/

Published: 2026-11-25Source: live apibase.pro catalog snapshot