What AI agents are

Last updated

"Agent" has become one of the most used, and most overused, words in AI. Depending on who is talking, it can mean anything from a chatbot with a fancy name to software that runs entire business processes on its own. This article offers a practical definition, explains how agents work, and describes where they are genuinely useful today.

A practical definition

An AI agent is a system that uses an AI model to pursue a goal by deciding on and taking actions, usually over several steps, rather than just answering a single question.

The key difference from a regular chat assistant is action. A chat assistant tells you how to do something. An agent can do some of it: search the web, read files, query a database, fill in a form, send a draft for approval, update a spreadsheet, or run code. It looks at the results of each action and decides what to do next.

How an agent works

Most agents follow a loop that repeats until the goal is reached or the agent stops:

  1. Receive a goal, such as "Find the three most recent invoices from this supplier and summarize any price changes."
  2. Plan or decide the next step. The model considers the goal, the information it has, and the tools available.
  3. Take an action by calling a tool, for example searching the email inbox for invoices. See Tools and tool calling.
  4. Observe the result, such as a list of matching emails.
  5. Decide again: is the goal met, or is another step needed? Perhaps it now needs to open each invoice and extract the prices.
  6. Finish by returning a result, asking a person for input, or stopping when it hits a limit.

The model provides the reasoning, the tools provide the ability to act, and the surrounding software, often called a harness, runs the loop, enforces limits, and keeps records.

Agents versus chatbots versus workflows

It helps to place agents on a spectrum:

  • Chat assistant: you ask, it answers. Any action is up to you.
  • AI-enhanced workflow: a fixed sequence of steps defined in advance, with AI handling some steps, such as "when a form is submitted, have AI summarize it, then email the summary to the office." The path is predictable.
  • Agent: the AI decides which steps to take and in what order, based on the goal and what it discovers along the way. The path can vary each time.

Many products marketed as agents are really workflows with AI inside, and that is often a good thing. Fixed workflows are more predictable and easier to test. Agents vs traditional automation discusses when each makes sense.

What agents are good at today

Agents work best on tasks that:

  • Have a clear goal and a clear finish line.
  • Need several steps, where the next step depends on what the previous one found.
  • Use information from multiple sources, such as the web, documents, and internal systems.
  • Are tolerant of review, meaning a person can check the result before it matters.

Examples:

  • Research: gathering information from several sources and producing a summary with citations.
  • Coding: reading a codebase, making changes across files, running tests, and fixing failures. Coding agents are among the most mature uses.
  • Data gathering: collecting details from a set of documents or web pages into a structured table.
  • Inbox and admin triage: sorting messages, drafting replies, and preparing a list of items needing attention.
  • Customer support assistance: looking up an order, checking policy, and drafting a response for a staff member to approve.
  • Computer and browser use: some agents can operate a web browser or desktop to complete tasks in applications without an API, though this is slower and less reliable than direct integrations.

Where agents still struggle

Agents inherit the weaknesses of the models behind them, and a multi-step process can compound errors:

  • Small mistakes add up. If each step has a small chance of going wrong, a long chain has a much bigger chance of an error somewhere.
  • They can go off track, pursuing an unproductive approach, repeating actions, or misinterpreting the goal.
  • They can be manipulated. Content an agent reads, such as a web page or email, can contain hidden instructions. See Prompt injection explained.
  • Costs can grow. Each step uses tokens, and long agent runs with large contexts can become expensive.
  • They are hard to predict exactly. The same goal may produce a different path each time, which complicates testing.

These are reasons to design agents carefully, not reasons to avoid them. Keeping agents on track covers the practical safeguards.

Levels of autonomy

A useful way to think about agents is how much they can do without asking:

  1. Suggest: the agent researches and recommends; a person takes every action.
  2. Draft: the agent prepares actions, such as an email or record update, and a person approves each one.
  3. Act with limits: the agent takes low-risk actions on its own, such as reading data or creating drafts, and asks before anything consequential.
  4. Act independently: the agent completes the whole task without review.

Most businesses should start at levels one or two and move up only for specific, low-risk actions once the agent has proven reliable. Anything involving money, customer commitments, deleting data, or contacting people deserves an approval step. See When a human has to stay in the loop.

Getting started with agents

  • Use agents built into tools you already have. Many AI assistants now include research or task modes that act as agents within safe boundaries.
  • Pick a narrow task. "Prepare a weekly summary of new reviews across our listings" is better than "manage our online reputation."
  • Give read access before write access. Let an agent look things up long before you let it change things.
  • Require approval for actions that affect customers, money, or records.
  • Review the logs. See what steps the agent took, not just the final result.

When a task is valuable enough to build a custom agent around your own systems, the design of tools, permissions, and approvals matters as much as the model. Some businesses build these in-house; others work with a partner on custom integrations.

Key takeaways

  • An agent uses an AI model to pursue a goal by taking actions over multiple steps.
  • It works in a loop: decide, act with a tool, observe, and decide again.
  • Agents are strongest on clear, multi-step tasks where results can be reviewed.
  • Errors can compound, and agents can be manipulated by content they read.
  • Start with narrow tasks, limited permissions, and human approval for consequential actions.