# How do AI agents work? Goal, plan, tools, memory and review

How AI agents work step by step without jargon: the goal, the plan, the tools, the memory and the review loop, with a worked example of a support task.

Published 2026-11-15. Updated 2026-11-15. Source: https://beereau.com/blog/how-ai-agents-work

> **Short answer:** AI agents work in a loop. They take a goal, plan the steps, use tools such as email drafts or document search to carry them out, keep notes in memory and review the result before finishing or asking a person to approve. The loop repeats until the task is done or a limit is reached. The quality of the result depends on clear goals, good information and a review step.

An **AI agent** is software that works toward a goal rather than answering a single question. Under the hood it is a language model wrapped in a loop with tools and memory. You do not need the technical details to use one well, but understanding the five parts helps you set them up and spot problems.

## What are the five parts of an AI agent?

Think of a new employee doing a task. They get a request, work out what to do, use their tools, remember what they know about the company and check their work. An agent does the same.

1. **Goal.** What done looks like.
2. **Plan.** The steps, in order.
3. **Tools.** What it can look at or do.
4. **Memory.** What it knows about you and the task.
5. **Review.** How the result is checked.

## How does the goal work?

Everything starts with the instruction. A goal such as "help the customer" is too loose. A goal such as "answer this customer's question about order 4412 using our shipping policy, in our tone, and flag if a refund is needed" is specific enough to act on.

Good goals state three things: the outcome, the rules to follow and the limit of what the agent may do alone. Most disappointing agent results trace back to a vague goal, not a weak agent.

## How does the plan work?

The agent breaks the goal into steps. In Anthropic's description, agents are systems where models dynamically direct their own processes and tool usage, which is what separates them from fixed scripts ([Anthropic, Building effective agents](https://www.anthropic.com/engineering/building-effective-agents)). That means the order of steps is decided as it goes, based on what it finds.

Example plan, for the order question above:

1. Read the customer's message and find the order number.
2. Look up the order status.
3. Check the shipping policy for delays.
4. Draft a reply that states the status and next steps.
5. Check the draft against the tone guide.
6. Send it to a person for approval.

If step 2 shows the parcel was lost, the plan changes: now it prepares a refund or a reshipment for approval. A script would not adapt; an agent can.

## What do tools mean?

**Tools** are the things the agent can do besides writing text: search your documents, look up an order, read a message, prepare a draft. Without tools an agent can only talk. With tools it can act.

Tools come with permissions, and permissions are your main control. An agent that can read orders but not issue refunds cannot move money by mistake. Details are in [AI agent tool use](/blog/ai-agent-tools).

## What is memory in an agent?

Memory is what the agent can refer to without being told again. It comes in two kinds:

| Kind | What it holds | How long it lasts |
|---|---|---|
| Working memory | The current task: the message, steps done so far | Until the task ends |
| Long-term notes | Your company's brief, policies, tone, past decisions | Until you change them |

Long-term notes are what make an agent sound like your company rather than a generic helper. They are also why outdated notes cause confident wrong answers. See [AI agent memory](/blog/ai-agent-memory) and the [company brief](/blog/ai-agent-company-brief).

## What does review mean?

Review is a check before the result leaves the agent. It can be done by the agent itself (does my draft answer every question?), by another agent (a reviewer checks against policy) or by a person (you approve). In business use, the last one matters most for anything involving money, commitments or sensitive customers.

This is the idea behind [human-in-the-loop AI](/blog/human-in-the-loop-ai): the agent does the work, the person owns the decision.

## What does one full loop look like?

Combine the parts and the loop is:

```
Think   -> What is the next step toward the goal?
Act     -> Use a tool to do it.
Observe -> What happened? Did it work?
Decide  -> Continue, change the plan, or stop and ask.
```

The loop repeats until the goal is met or a limit is hit. Limits are important: a maximum number of steps, a spending cap and a list of actions that always need approval. Without limits, an agent that is stuck can keep trying.

## Where do multiple agents come in?

Complex work is often split among specialists, with a lead agent routing tasks, as in a small team. One agent triages, another answers and a third reviews. That arrangement is explained in [AI agent orchestration](/blog/ai-agent-orchestration) and [multi-agent systems](/blog/multi-agent-system-explained).

Beereau's Support team is built this way: a Head of Support routes every task, a Triage agent sorts incoming messages and four support agents answer, follow up and prepare refunds for the owner's OK. Every task shows who handled it, what they did and what it cost, so you can see the loop for yourself.

## Why do agents fail, and how do you prevent it?

| Failure | Cause | Prevention |
|---|---|---|
| Wrong fact | Missing or outdated information | Keep policies current and dated |
| Off-tone reply | No tone guide | Write tone with examples |
| Overstepping | Too many permissions | Limit tools; approve risky steps |
| Going in circles | No stop rule | Cap steps and spending |
| Missing context | Memory not updated | Review notes monthly |

None of these needs technical skill to fix. They need clear writing, clear limits and a habit of reading what the agent did.

## Next step

Pick one task and write its goal, rules and limits in five lines, as if briefing a new hire. Decide which tools it needs and which step must always be approved by you. Run it for two weeks and read each result. The gaps you find are what to fix in the instructions, not in the agent. If you want to see a ready-made version, visit the AI agents for small business page.

## Frequently asked questions

### How do AI agents work?

An agent takes a goal, breaks it into steps, uses tools to do each step, keeps notes about what it learned and checks the result before finishing or asking a person. This repeats until the task is done or it needs help.

### What is the agent loop?

It is the cycle of think, act and check. The agent decides the next step, does it with a tool, looks at what happened and decides again. It stops when the goal is met or a limit or approval is reached.

### Do AI agents learn from their mistakes?

Within a task, they can adjust after a failed step. Across tasks, they only improve if the system saves notes or you update their instructions. Do not assume they remember a correction unless it was stored.

### What tools can an AI agent use?

Typical tools include reading and sending email drafts, searching documents or the web, looking up records and writing files. What an agent may use is set by permissions you control.

### Why do AI agents make mistakes?

They work from patterns in language and from the information they are given. If instructions are vague, information is missing or the situation is unusual, they can produce a confident but wrong result. Review steps catch most of these.

### Can an agent work on its own for hours?

Some can run long tasks, but for business use it is safer to set limits on time, cost and actions, and require approval for important steps. Long unsupervised runs raise the cost of any error.

### Is an AI agent just a prompt?

A prompt is the instruction. An agent is the whole setup around it: the loop, the tools, the memory, the permissions and the review. A good prompt helps, but it is only one part.
