Research & Models · Explainer
What Is an AI Agent? Examples and Safety Risks
What is an AI agent? Learn how models choose actions, how agents differ from chatbots, and what can go wrong in real use.
How this article was made: Researched and drafted with AI tools and checked against its sources. Umair reviews our articles and corrects them in public. How we work
The short answer
You give it a goal, rather than spelling out every move.
An AI agent can choose steps and act toward a user's goal. In the language-model systems described by LangChain, the model helps decide what happens next; tools and memory let it carry the task forward.
In brief
- The background
- Agent is not a standard product label: LangChain notes that vendors and researchers use it for different kinds of systems.
- Why it matters
- Cisco warns that an attack can misuse an agent's permissions, including to access data or make unauthorized changes.
- What to watch
- LangChain cites Gartner's forecast that over 40% of agentic AI projects will be canceled by the end of 2027. The forecast points to rising costs, unclear business value and weak risk controls.
Key facts
- LangChain cites McKinsey's November 2025 State of AI survey: 62% of respondents were trying agents. The share that had scaled them was 10% or less in each business function.
- Monte Carlo reports that 85% of organizations in its research had agents in production or limited production. In the 2026 Agents in Production survey, 64% said rollout outpaced their teams' readiness to provide support.
- Sierra reports 143% higher funded-loan conversion in an early Figure pilot that paired an agent with loan officers. The comparison group used loan officers alone.
An AI agent is software that can work toward a user’s goal by choosing steps and using tools, not just writing replies. Google Cloud and Meta describe systems that can plan and act, though people can still review or guide their work.
How does an AI agent work?
An AI agent works through a loop: choose an action, use a tool, read the result and decide what comes next. LangChain describes modern agents as language models linked to tools and memory. The model can change the path as it gets new information, rather than follow a fixed script.
In Meta’s account, the large language model (LLM) reads the request and the surrounding information. It produces responses and helps the system work out its next move.
Monte Carlo groups the parts of an agent used in production into six areas:
| Part | Role |
|---|---|
| Model | Chooses actions and writes responses. |
| Instructions | Sets the job and its rules. |
| Tools | Provides functions the system can call. |
| Data and context | Supplies records and documents for the task. |
| Memory | Carries context from earlier steps or sessions. |
| Guardrails | Sets permissions, filters and approval checks. |
Cisco describes the Model Context Protocol (MCP) as one standard way to link agents with outside tools. Such links can let a system fetch database records, run code or start a function in another app.
How do AI agents differ from chatbots and workflows?
An AI agent differs from a basic chatbot because it can choose actions, not just offer text for someone else to use. A fixed workflow follows steps set in code. Monte Carlo uses this split, while Google Cloud describes assistants as tools that leave decisions with the user.
These labels are not strict product boundaries. Google Cloud also calls AI assistants a kind of agent. Meta stresses that people should review and guide agent output. LangChain notes that vendors sometimes apply the agent label to chatbots.
LangChain treats autonomy as a range, not two boxes. At one end, code fixes the route or makes a single model call. At the other, a model can pick tools and work over many steps. Most live systems fall between fixed workflows and full autonomy, it says.
Cisco traces the contrast with fixed rules back to software from the 1950s. Such programs struggle with cases outside their explicit rules. Amazon Web Services says agents can instead pick a next action from past data without constant human direction.
What are examples and types of AI agents?
AI agents can sort email, handle service requests or help staff move a loan application forward. These are examples in guides from Meta and Sierra, not a single class of product. Other types described by Monte Carlo include coding agents and systems that divide a job among several agents.
Meta describes an inbox agent with permission to read and act on email. It sorts messages, adds dates to a calendar and flags important notes. It can also prepare replies that the user checks before they are sent.
Sierra illustrates customer service with a shoe return. Its example agent checks the customer’s identity, finds the order and reviews the return rules. It then creates the return, sends a prepaid label and starts the refund. This is a description of a possible process, not a measured result.
For a company example, Sierra describes Figure’s lending agent. It reaches home-equity applicants whose applications have stalled, using voice and text over several days. It helps with identity checks and bank-account linking before passing applicants to a loan officer.
Monte Carlo calls systems that read source code, run commands and edit repositories coding agents. In its multi-agent category, an orchestrator coordinates specialist agents. Sierra notes that categories can overlap: they may describe how a system learns, makes decisions or splits up work.
Why do AI agents fail, and what are the security risks?
AI agents can fail when they use old data, pick the wrong tool or act with too much access. Monte Carlo lists these as common problems in live systems. Cisco also warns about attacks hidden in data, shortcuts that break policy and agents left running without clear oversight.
The sources describe several distinct risks:
- Excessive access: Monte Carlo warns that an agent may reach systems or data beyond what its job needs. It may also choose the wrong tool, supply bad inputs or get stuck retrying an action.
- Indirect prompt injection: Cisco describes attacks that hide instructions in data an agent processes. A successful attack could let someone misuse the agent’s permissions to access data or alter systems.
- Reward hacking: Cisco uses this term for shortcuts that meet the wording of instructions but break company policy or ethics.
- Orphaned agents: Cisco warns that agents can keep running after their creators leave or change roles. Without central tracking, they can become unmonitored security risks.
Not every failure is an attack. Monte Carlo also describes behavior changing after a model update, a prompt edit or new kinds of user questions. It warns that a run can finish without a software error yet still return a wrong result.
How do teams test and control AI agents?
Teams can test and control AI agents by tracking their actions, checking results and limiting access, according to LangChain and Monte Carlo. LangChain also calls for isolated spaces where code can run. These controls surround the model; they help teams see what happened and restrict what the system can do.
LangChain calls for evaluations and test datasets, not just a working demo. Evaluations are tests used to measure changes in system behavior. Its guidance also names sandboxes, which keep code runs isolated, and access rules that bound an agent’s actions.
Monte Carlo recommends keeping a record of each model call, tool call and data retrieval. It also calls for checks on whether source data is current. Its testing guidance covers both the final answer and the order in which tools ran.
For teams of agents, LangChain says checking only the final response can miss a wrong choice of specialist or needless tool calls.
For actions that cannot be undone, LangChain recommends pausing for human input. Reviewers can approve, edit or reject an action, or seek clarification.
Questions answered
What is a data agent?
Monte Carlo uses the term for an agent that answers questions by querying data warehouses. It can write database queries as it works.
What is a learning agent?
In Sierra's grouping, a learning agent improves through training or feedback.
Can an agent hand a conversation to a person?
A human can receive the customer's request plus a recap of what the system has already tried, Sierra explains. This handoff can happen during a phone call or a chat when the case needs human judgment.
Sources used
Editorial standards
How this article was made: Researched and drafted with AI tools and checked against its sources. Umair reviews our articles and corrects them in public. See our editorial policy and corrections policy.
Join the newsletter
New stories and explainers, free in your inbox.
By joining you agree to receive our email newsletter. Unsubscribe any time. Privacy policy