An AI agent is a language model given a goal, a set of tools and permission to act. Instead of answering one question, it decides what to do next, does it, checks the result and repeats. Asked to "find overdue invoices and chase them", an agent might query the accounts system, draft reminder emails, send them and log what it did. For a business buyer agents promise to take on multi-step work, but they need tighter design, testing and limits than a chatbot.
How it works
Most agents run a loop. The model receives the goal, the conversation so far and a description of the available tools. It either answers or asks to call a tool, using function calling to return the tool name and arguments in a structured form. The surrounding code runs the tool, such as a CRM lookup or a web search, and feeds the result back. The loop continues until the model says it is done or a limit is reached.
Around this core, builders add the parts that make it dependable: a clear system prompt describing the job, agent memory for facts that persist between sessions, guardrails that block risky actions, logs of every step, and approval points where a person confirms before money moves or a customer is contacted. Frameworks such as LangGraph and the agent tooling from model providers handle the loop; much of the real work is in the tools and the limits.
What it means for cost
Agents usually cost more to build and run than fixed automations doing similar work:
- Tool building. Each system the agent touches needs a safe, well-described tool with sensible permissions.
- Testing. Because the agent chooses its own path, it must be tested on many realistic scenarios, including ones where tools fail. See evals.
- Running cost. Each step is another model call, and long tasks with many steps add up.
- Oversight. Approval queues, audit logs and alerting are needed before an agent acts on anything that matters.
Ask a builder which steps truly need the model's judgement and which could be fixed logic, what the agent is not allowed to do, and how a person reviews its actions. Live figures are on the custom AI agent cost page.
When it is the wrong tool
If the steps are always the same, a fixed workflow automation is cheaper, faster and easier to debug. Agents earn their cost where inputs vary and the next step genuinely depends on what was found.
Common questions
What is the difference between an AI agent and a chatbot?
A chatbot mainly talks: it answers questions inside a conversation. An agent acts: it calls tools, changes records and completes tasks, sometimes with no conversation at all. Many products combine the two, with a chat interface on top of an agent.
Can an AI agent be trusted to act on its own?
For low-risk, reversible actions with good logging, often yes. For payments, customer messages or data deletion, most builds keep a person approving actions until the agent has a track record on real cases.