AI agent

Definition

An AI agent is a language model that chooses and calls tools in a loop, reading each result, until it finishes a task or hands off to a person.

Updated

Also called LLM agent or autonomous agent.

How it works

An agent gets a goal, a set of tools and rules for when to stop. Tools are functions it is allowed to call: search the CRM, read an inbox, create a ticket, run a database query. On each turn the model looks at the goal and everything it has seen so far, picks a tool, gets the result back and decides what to do next. The loop ends when the task is done, a step limit is hit or a rule says a person must approve.

Anthropic's engineering guide, Building effective agents (opens in a new tab) (December 2024), draws a useful line. Workflows run model calls along code paths you define in advance. Agents choose their own path. Most production systems are mostly workflow, with an agent handling one or two steps that need judgment.

How businesses use it

Good first agents have a narrow job and a clear finish line:

  • Qualifying inbound leads: read the form, look up the company, score it against your criteria, then book a call or route it
  • Triaging support email: classify it, pull the order history, draft a reply for a person to send
  • Preparing account research before sales calls
  • Reconciling records across 2 systems and flagging what does not match

A first custom AI agent build should be one of these, on your own accounts, with model usage billed at cost. The inbound lead qualification blueprint shows a narrow agent built as a workflow, from intake to a drafted reply.

Where it goes wrong

Agents cost more than fixed workflows and fail in stranger ways. Each extra tool and each extra step is another chance for a wrong turn, and errors compound across a long loop. Typical failures: the agent calls the wrong tool, passes a made-up order number as an argument, loops without finishing, or takes an action nobody approved.

If the steps are the same every time, build a workflow in n8n or Make instead. It is cheaper to run and easier to debug, and our comparison of agents, automation and chatbots covers that decision. When you do need an agent, give it the fewest tools that do the job, log every call and put human-in-the-loop approval in front of anything that emails a customer or moves money.

Find out where this fits in your own systems

Bring one process or page to a 30-minute call.

Request a 30-minute scoping call

We reply within 1 working day and suggest times that suit you.