Ask ten people what an AI agent is and you will get ten answers, most of them shaped by marketing. Strip that away and an agent is a specific piece of engineering: software that takes a goal, works through it in several steps, uses tools to act on real systems, and checks its own results. This guide explains the mechanics, shows what an agent looks like in practice, and is honest about where it pays off and where it quietly fails.

Key takeaways

  • A chatbot answers a question. An agent completes a task across several steps, using tools, and verifies the result.
  • Four stages repeat: perceive, plan, act, verify. Memory and tool access are what turn a language model into an agent.
  • Agents earn their cost where judgement is needed. If a rule can express the decision, use a rule.
  • Anything irreversible (payments, deletions, messages to customers) needs a human gate and a written log.
  • Start with one narrow workflow, measure it against a human baseline, then widen the scope.
Working definition

An AI agent is a system built around a language model that can take a goal, decide the next step, use tools to act on real systems, observe what happened, and continue until the goal is met or a person needs to decide.

What an AI agent actually is

The shortest way to see the difference is a support ticket. Ask a chatbot “what is the status of order 451?” and it will explain, in fluent prose, how order statuses usually work. Give the same goal to an agent and it queries the orders database, calls the courier’s tracking API, notices the parcel has been sitting in a depot for three days, drafts the customer message, and reports back with the evidence it used.

That is the whole distinction, and it is worth being blunt about it: a chat window gives you language, an agent gives you a finished step in a real system. Everything else, the frameworks, the vendor categories, the pricing pages, follows from that.

Screenshot of ChatGPT answering the question 'What is an AI agent?' with a short paragraph, next to the chat sidebar and composer
Figure 1 — We put this article’s question to ChatGPT. The answer is accurate and it stops there: no lookup, no action, no verification. That is a chatbot doing its job. Screenshot: chatgpt.com, November 2026.

The loop that makes it an agent

Almost every production agent runs the same four-stage loop. The vocabulary changes between vendors; the mechanics do not.

Diagram of the agent loop: perceive, plan, act, verify, with a loop back from verify to plan
Figure 2 — The four stages of the agent loop. The step people underestimate is the last one: without verification the agent cannot tell a finished task from a plausible one. Diagram: AIGS.

Perceive

The agent reads the goal and whatever context it is allowed to see: the ticket, the email, the database row, the API response, the file. The quality of this stage decides most outcomes. An agent that cannot see the customer’s plan tier will confidently apply the wrong policy.

Plan

The model breaks the goal into steps and chooses which tool to call next. Good implementations also define a stop condition up front: what “done” looks like, how many attempts are allowed, and which failures should stop the run instead of being retried.

Act

This is where the agent touches the world: search, code execution, CRM updates, payments, email, file operations. Every tool you expose is a capability you are granting, so the list deserves the same review as a permissions change.

Verify

The agent checks what came back against the goal, then either continues, retries differently, or escalates to a person. Teams that skip verification build agents that are fast and wrong, which is the most expensive combination in software.

Screenshot of an n8n workflow canvas: a chat trigger connected to an AI Agent node wired to an OpenAI chat model, a simple memory store and a Postgres tool
Figure 3 — What the loop looks like once it is wired together. A chat trigger feeds an AI Agent node, which is connected to a model, a memory store and a database tool. Screenshot: the public n8n template library, November 2026, where more than 9,700 AI workflow templates are listed.

Two details in that picture matter more than the rest. Memory is what lets the agent keep context between steps instead of restarting from zero each time. Tools are the only things that let it act outside the conversation. A model without tools can describe a refund; an agent with a payments tool can issue one, which is exactly why the next section matters.

Agent, automation, chatbot: the difference that decides the budget

Most failed “agent” projects were never agent problems. They were automation problems wearing an AI label, or chatbot problems with too much expected of them. Use this table before you scope anything.

ChatbotClassic automationAI agent
JobAnswer or draftRun a fixed sequenceReach a goal over several steps
DecidesWordingNothing; the rule decidesWhich step and which tool comes next
Unexpected inputAnswers plausibly anywayBreaks, queues, or alertsRe-plans, or escalates
Best fitSupport, drafting, explanationStable, high-volume, rule-based workJudgement inside a bounded workflow
Typical failureConfident and wrongBrittle when the process changesDrifts, loops, or acts without permission
The rule we use

If a rule can express the decision, write the rule. Agents are worth their cost and their unpredictability only where the decision needs judgement over messy input: triage, extraction, matching, summarising, deciding what to do next.

Where businesses actually see returns

The deployments that work share one trait: a narrow, measurable workflow with a clear owner. In our own engineering practice at AIGS, the projects that pay back fastest automate a process that already exists on paper, not an imagined one.

  • Support triage. Classify the ticket, pull the order or account context, draft a reply with the evidence attached. A human still sends anything sensitive.
  • Document and invoice processing. Extract fields from PDFs, match them against the ledger, flag only the exceptions. The value is in the exceptions, not the happy path.
  • Internal knowledge search. Answer staff questions from company documents with citations, so the answer can be checked instead of trusted.
  • Lead qualification. Enrich an inbound lead, score it against criteria you already use, and route it with a written reason.
  • Code review assistance. Run a first pass on pull requests for the categories your team keeps missing, and leave the merge decision to a person.
An agent is not a smarter employee. It is a process that can now handle the messy inputs the process was never able to read.
A caution about ROI claims

Treat any published percentage for agent savings as marketing until it names the workflow, the baseline and the measurement window. The honest test is small: run one workflow for a month, count the hours and the errors before and after, and compare.

Four myths that cost money

“Agents replace whole teams.”

They remove repetitive steps inside a workflow. People keep judgement, relationships and accountability, which is also why someone still has to own the outcome.

“A good agent is fully autonomous.”

Reliable deployments are defined by their boundaries: which systems the agent may read, which it may write, and when it must stop and ask. Autonomy is a dial, not a virtue.

“You need perfect data before you start.”

You need a mapped process more than perfect data. A well-scoped agent tolerates messy inputs as long as its outputs can be verified.

“A bigger model makes it reliable.”

Model quality helps with reasoning. Reliability comes from the wiring: narrow tools, explicit stop conditions, verification, and a log you can read afterwards.

Adopting agents without losing control

The pattern that holds up in production is simple to describe and takes discipline to keep: let the agent act freely where the action can be undone, and require a person wherever it cannot.

Diagram showing an agent planning an action, a decision on whether it can be undone, a reversible branch where the agent acts and logs, and an irreversible branch where a person approves first
Figure 4 — The human gate. Reversible actions run; irreversible ones wait for a named person. The log is what makes the whole thing auditable. Diagram: AIGS.
  • One workflow, one owner, one success metric written down before the pilot starts.
  • A tool list reviewed like a permissions change: read versus write, and which systems are off limits.
  • A stop condition and an attempt limit on every run, so a loop cannot burn budget quietly.
  • Approval by a named person for payments, deletions, refunds and anything sent to a customer.
  • A log of every action with its input, its output and who approved it.
  • An accuracy check against a human baseline, repeated after any model or prompt change.

A 30-day starting plan

  1. Week 1 — map the process. Write down the workflow as it exists today: inputs, decisions, systems touched, exceptions. If it is not written down, an agent cannot improve it.
  2. Week 2 — pick the narrow slice. Choose the step with the most repetition and the least risk, and define what a correct output looks like with real examples.
  3. Week 3 — build with the gate in place. Read-only tools first, drafts instead of sends, and a human approval on anything that leaves the company.
  4. Week 4 — measure, then decide. Compare accuracy and time against the baseline. Expand only the part that beat it; rewrite the part that did not.

Where to go next

If you want to try the building blocks before committing a budget, our free browser tools cover the everyday pieces of this work: formatting, converting, checking and cleaning data without installing anything. To go deeper on the surrounding topics, read our guides to retrieval-augmented generation, writing better prompts and what comes after the first wave of agents. If you would rather scope a pilot with people who have shipped them, talk to our team.

Further reading

IBM: what are AI agents for the industry framing, Anthropic’s engineering guide for the design patterns behind the loop, and the n8n template in Figure 3 if you want to open the wiring yourself.