# AI agent

> An AI agent is software built around a language model that can plan steps, call tools such as APIs, databases or a browser, look at the results and keep going until it completes a task, rather than only replying to a single message.

Also called: AI agents, LLM agent, agent, digital worker. Category: Agents and automation. Source: https://aibuildindex.com/glossary/ai-agent

## In the index

- Custom AI agent: median $3,850, middle half $600 to $10,000, 2,831 priced briefs (https://aibuildindex.com/cost/custom-ai-agent)
- AI agents: median $3,600, middle half $600 to $11,720, 4,476 priced briefs (https://aibuildindex.com/skills/ai-agents)
- LangGraph: median $4,400, middle half $500 to $14,100, 216 priced briefs (https://aibuildindex.com/tools/langgraph)

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](https://aibuildindex.com/glossary/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](https://aibuildindex.com/glossary/system-prompt) describing the job, [agent memory](https://aibuildindex.com/glossary/agent-memory) for facts that persist between sessions, [guardrails](https://aibuildindex.com/glossary/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](https://aibuildindex.com/glossary/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](https://aibuildindex.com/cost/custom-ai-agent).

## When it is the wrong tool

If the steps are always the same, a fixed [workflow automation](https://aibuildindex.com/glossary/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.

## Related terms

- [Agentic workflow](https://aibuildindex.com/glossary/agentic-workflow): An agentic workflow is an automated process in which a language model makes some of the decisions, such as choosing the next step, calling a tool or judging whether output is good enough, inside a structure that the builder defines in advance.
- [Function calling](https://aibuildindex.com/glossary/function-calling): Function calling is a capability that lets a language model request that the application run a defined tool, such as a database lookup, an API call or a calculation, by returning the tool's name and structured arguments instead of plain text.
- [Autonomous agent](https://aibuildindex.com/glossary/autonomous-agent): An autonomous agent is an AI agent that pursues a goal over many steps with little or no human input, choosing its own actions, tools and order of work until it decides the task is done or reaches a limit.
- [Multi-agent system](https://aibuildindex.com/glossary/multi-agent-system): A multi-agent system is a design in which several AI agents, each with its own role, instructions and tools, work together on a task by passing work and messages between them, usually under a coordinating agent or fixed workflow.
- [Agent memory](https://aibuildindex.com/glossary/agent-memory): Agent memory is the set of techniques that let an AI agent keep and reuse information beyond a single model call, such as the current conversation, facts about a user, past actions or lessons learned, so it can act consistently over time.
- [Guardrails](https://aibuildindex.com/glossary/guardrails): Guardrails are the checks and controls placed around an AI model, such as input filters, output validation, topic limits and action restrictions, that keep its behaviour within safe, permitted and useful bounds in a live system.
