# What an AI agent is, and how it differs from a chatbot

> What an AI agent is according to OpenAI and Anthropic, how it differs from a chatbot or a fixed workflow, and what it needs from a store to buy.

URL: https://clione.ai/glossary/ai-agent/
Lang: en

In ecommerce, "agent" gets used for almost everything: the chatbot in the corner of the site, an automation that sends emails, the sales rep who answers the phone. Here an AI agent is something more precise: **a program that takes an assignment and decides for itself the steps to complete it**, using tools such as searching a catalog or creating a cart. It matters to a store because that program already visits stores on shoppers' behalf, and what it finds depends on what the store lets it read and do.

## How it works

OpenAI defines it in one sentence: an agent is a system that **completes tasks on your behalf with a high degree of independence**. Its guide to building them asks for three traits. The agent uses an [LLM (large language model)](/glossary/llm/) to direct execution and make decisions, recognizes when it has finished and corrects its actions if needed, and halts and hands control back to the user if something fails. It also has access to tools to query outside systems and act on them, and it picks which one to use depending on the state of the task, within defined limits. The same guide rules out applications that plug in a language model without letting it control the flow: a simple chatbot, a single-turn answer or a sentiment classifier are not agents.[^openai-agents-guide]

Anthropic draws the line in the same place, in different words. It calls anything that combines models and tools an agentic system, and inside that it separates two things: workflows, where the model and the tools follow paths defined beforehand in code, and agents, where **the model dynamically directs its own process and its use of tools**.[^anthropic-agents] In practice, an agent works in a loop: it acts, looks at what the environment returns at each step (a tool's result, say) to see whether it is making progress, can stop to ask a person for help, and usually has a stopping condition, such as a maximum number of steps. Anthropic recommends starting with the simplest solution possible, because an agent trades latency and cost for better results on open-ended tasks.[^anthropic-agents]

Tools are the piece that turns a model that talks into one that acts. The model's ability to request that a function run is [tool calling](/glossary/tool-calling/), and the [MCP (Model Context Protocol)](/glossary/mcp/) standardizes how a server offers those tools to any application. Its specification defines them as model-controlled, discovered and invoked by the model according to context, and adds that there **should always be a human in the loop with the ability to deny a call**.[^mcp-tools]

When the task is buying, questions come up that a search does not have. Google sums them up when presenting its [payments protocol for agents](/glossary/ap2/): proving that the user gave the agent authority for this specific purchase, that the agent's request reflects what the user wanted, and who is accountable if the transaction is fraudulent or wrong.[^ap2] For buying inside ChatGPT, OpenAI describes its assistant as the user's AI agent, which passes information between the buyer and the merchant the way a personal shopper would.[^openai-buy]

## In a store

A **fictional example**: a shopper tells an assistant, "I'm looking for a waterproof 30-liter backpack under $130 that arrives before Friday." An agent solves it in steps, and each step asks something different of the store:

| Step | What the agent does                                    | What it needs from the store                                                            |
| ---- | ------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| 1    | Searches for backpacks by capacity, material and price | A catalog it can query, with capacity and waterproofing as data and not just in a photo |
| 2    | Opens the two or three candidates                      | Up-to-date price and stock, by size or color                                            |
| 3    | Checks the delivery time                               | Delivery times and shipping costs it can read, not just in a PDF                        |
| 4    | Suggests an option and asks for confirmation           | A stable link to the product or a cart it can create                                    |
| 5    | Hands the purchase over to payment                     | The store's checkout, or an integration with the platform's protocol                    |

If at step 1 the waterproofing is only in an image, the agent does not see it and the backpack is left out, even if it is the best answer. **What the agent cannot read does not exist for it**.


Calling any chatbot an agent. If the assistant on your site answers questions with a language model but does not decide steps, use tools or check what it does, OpenAI does not count it as an agent.[^openai-agents-guide] The difference matters when buying software: a vendor selling "an agent" should be able to say which tools it uses and when it stops.


## How to check

1. **Ask for the list of tools.** A real agent can show which tools it has and what each one does: read, write or pay.[^mcp-tools]
2. **See who confirms.** Before the agent does anything that changes data or moves money, there has to be a step where a person sees it and can reject it.[^mcp-tools]
3. **Ask how it stops.** An agent should have a stopping condition, such as a maximum number of steps, and hand control back when it gets stuck.[^anthropic-agents][^openai-agents-guide]
4. **Test it against your catalog.** Give an assistant with search a shopping task in your category and note which of your store's data it used and which it could not find.

## Related concept: agentic AI

[Agentic AI](/glossary/agentic-ai/) is the field, and the agent is the concrete system. Anthropic uses "agentic systems" for the whole set, which includes both workflows with fixed paths and agents that decide their own path.[^anthropic-agents] So not everything agentic is an agent: a process that summarizes reviews with a model and always follows the same steps is a workflow, even if it uses AI. For a store, the useful question is who decides the next step, the code or the model.

To keep going, [agentic commerce](/glossary/agentic-commerce/) applies all of this to buying, and the [agentic commerce reading path](/learn/agentic-commerce/) lays out the protocols an agent uses to talk to a store.
