AI Agents

What Are AI Agents?

A working definition you can use to tell an agent from a chatbot or an automation, and to decide where a person stays in charge.

Goal Model Loop Spreadsheet Email Lookup

The short answer

An AI agent is software that uses a large language model to choose the next step toward a goal and to take that step through tools such as a spreadsheet or an email account. It repeats the cycle until the work is done. A person sets the goal, the rules and the approvals.

What is an AI agent?

An AI agent is software that uses a large language model, a program trained on text to predict and produce language, to decide the next step toward a goal and then take that step through a tool. You give it a goal such as "register this applicant". The model reads the goal, picks an action, reads the result, and picks again until the work is done.

A tool is a function the model may call, such as "add a row to this spreadsheet" or "send this email". Tools give the model reach into other systems. A model with no tools can describe how to register an applicant. A model with a spreadsheet tool can write the record.

Vendors attach the word "agent" to many products, so check two things before you accept the label. The model chooses the steps, and the model can act on another system. A product that does neither is a chatbot or an automation under a new name.

How does an agent differ from a chatbot and from an automation?

A chatbot answers in text and waits for your next message. A fixed automation runs steps that a person drew in advance. An agent takes a goal and chooses its own steps inside limits you set.

Chatbot answers, then waits You Model Fixed automation a person drew each arrow Trigger Step 1 Step 2 Done AI agent the model picks each step your limits Goal Model Tools
The chatbot bounces between you and the model, the automation follows the line its builder drew, and the agent circles between model and tools inside a boundary you set.
ChatbotFixed automationAI agent
Who chooses the stepsYou, one message at a timeThe person who built itThe model, inside your limits
What it can changeNothing outside the chatThe systems wired into each stepThe systems its tools reach
Input it has not seen beforeAnswers in textStops or takes the wrong branchReads it and adapts its steps
Typical failureA confident wrong answerBreaks if a format changesPicks the wrong tool or repeats itself
Good fitQuestions and draftsHigh-volume tasks with one pathTasks whose steps depend on what turns up

Anthropic's engineering guide "Building effective agents" draws the same line. It calls a system a workflow if code fixes the path in advance, and an agent if the model directs its own process and tool use. Many useful builds mix the two: a fixed workflow with one agent step in the middle. AI agent architecture compares those shapes.

What are the parts of an agent?

An agent has five parts: a model, instructions, tools, memory and a loop. Each one is a setting you can read and change, on a no-code platform as much as in code.

  • Model. The large language model that reads text and decides what to do next.
  • Instructions. The system prompt, a standing text that gives the model its role, rules and limits before a run begins.
  • Tools. Functions the model may call to read or change another system. Tool calling explains how the model asks for one.
  • Memory. Text carried over from earlier steps or earlier conversations. Agent memory covers the kinds and their limits.
  • Loop. Software that passes the model's request to a tool, returns the result and asks the model for the next step. How AI agents work follows one run through it.

The intake agent I built in n8n, a no-code automation platform, shows all five. Google Gemini is the model. The instructions hold five business rules written in plain language. Three tools connect the agent to Google Sheets, Gmail and a lookup. A memory component carries the conversation, and the agent node runs the loop.

Loop the agent node Instructions five business rules Memory the conversation Model Google Gemini Tools Google Sheets Gmail Lookup
The loop wraps the other parts: instructions and memory give the model its text, the model calls a tool, and the result comes back for the next decision.

What do agents do well today?

Agents suit tasks where the input varies, the steps depend on what the agent finds, and a person can check the output fast. Reading a messy form and filling a clean record is one such task. Gathering sources for a decision, with each source kept beside its finding, is another.

Language is the model's strength. It reads free text, applies a rule you wrote as a sentence, and drafts a reply in your tone. A fixed automation needs a separate branch for each case its builder thought of in advance. An agent can handle a case you did not list, as long as your rules cover it in principle.

The parts are few enough for a beginner to learn. In the course I teach, working adults with no programming background build agents on a no-code platform. They try the problem first and hear the explanation after, and the five parts above give them names for what they bumped into.

Where do agents fall short?

Agents make three mistakes that a fixed automation avoids: they pick the wrong tool, they repeat a step without progress, and they state a detail that no source gave them. Your design has to expect all three.

Run length raises the risk. Each step adds text for the model to read and one more decision to get right, so a long task fails more often than a short one. Split a long job into short agent steps with fixed checks between them.

Agents also give different output on different runs of the same input. A task that demands an identical result each time, such as a tax calculation, belongs in code. You can still let an agent gather the inputs and hand them to that code as a tool.

An agent has no knowledge of your business beyond the text you give it. A rule that lives in a colleague's head stays invisible to the model until someone writes it into the instructions or a document the agent can read.

Where does a person still decide?

A person decides the goal, the rules, the tools the agent may use, and whether an action that cannot be undone goes ahead. The agent works inside those four decisions.

My intake agent writes its record and prepares a welcome email, then pauses. A person reads the draft and approves it before anything goes out. That pause adds a short wait to each record, and it catches a wrong name or a misapplied rule before the applicant sees it.

Put the approval step where a mistake reaches a customer, moves money or deletes data. Let the agent run unattended on steps you can reverse, such as drafting or sorting. If you approve each small step, you will start approving without reading.

Reversible the agent runs unattended Read form Write record Draft email Person approves Cannot be undone reaches a customer Send email
One approval sits at the point where a mistake stops being cheap to fix, and the steps before it run without a person.

The earlier decision is which task to hand over at all. Choosing a process to automate gives a way to compare candidates before you build.

Common questions

Is ChatGPT an AI agent?

A plain chat session is a chatbot: it answers in text and waits for you. The same product behaves as an agent once the model can call tools, such as search or code execution, and chooses several steps in a row toward a goal you set.

Do I need to know how to code to build an AI agent?

No. No-code platforms such as n8n let you attach a model, instructions, memory and tools on a visual canvas. You still need to write clear rules and test the agent on real inputs.

Can an AI agent run without a person checking it?

It can on steps you are able to reverse, such as sorting or drafting. Keep a person in front of actions that reach a customer, move money or delete data.

Sources and references

  1. Anthropic, Building effective agents
  2. arXiv, ReAct: Synergizing Reasoning and Acting in Language Models
  3. n8n, Advanced AI documentation

Concepts covered: AI agent, large language model, chatbot, workflow automation, tool calling, system prompt, human approval.

Weekly newsletter

The AI Brief by Clarence Cheang

A weekly exploration of the developments, technologies and ideas shaping artificial intelligence.

One email a week. Unsubscribe in one click. What is in each issue