Module 2: Uses · 3 min read
AI Agents: What an Agent Really Is, and When You Need One
The difference between a chatbot, an automated workflow and an agent, and why Anthropic recommends starting with the simple solution.
"AI agents" is one of the most common terms in AI marketing, and one of the most confused. Almost every product calls itself an "agent." It's worth knowing a precise definition.
The definition
An agent is a system in which a language model receives a goal and decides on its own which steps to take to achieve it. Three components turn a model into an agent:
- Tools: the ability to act in the world. Search the web, read email, update a table, run code.
- A loop: the model acts, sees the result, and decides on the next step. Again and again, until the task is done.
- Autonomy: nobody set the order of steps in advance.
That's the difference from automation, where the steps are fixed and the model performs only some of them.
Anthropic's advice: start simple
In the article "Building effective agents" from December 2024, Anthropic summarized its work with dozens of teams that built agents. The main conclusion was that the most successful implementations didn't use complex frameworks but simple patterns. The company distinguishes two types:
- Workflows: a path defined in advance in code, with models at certain points. Predictable, consistent and cheap.
- Agents: the model steers the process itself. More flexible, but more expensive and less predictable.
Their recommendation: start with the simplest solution that works, and add complexity only when it improves the result. Often a good prompt or a fixed process is enough.
When an agent is really needed
When you can't know in advance how many steps will be needed, or which. Examples:
- Fixing a bug in code: read files, run tests, try a fix, check again. That's what code agents do.
- Broad research: search, read, decide what to search next. That's how Deep Research tools work.
- Actions in a browser: in October 2024 Anthropic introduced a "computer use" capability, in which the model sees the screen, moves the mouse and types. Other companies have since launched agents that operate a browser too.
The risks
- Errors compound. If each step is 95% correct, a 20-step process will succeed in only some of the cases. That's simply the math of probabilities.
- Permissions. An agent with access to email and a credit card can do real damage by mistake. Give it only what it needs.
- Malicious influence. A website or email can contain hidden instructions for the agent. This is a prompt injection attack, covered in the lesson on security.
- Human approval. Irreversible actions, such as payment, deletion or sending to a customer, need a person's approval.
Bottom line: Agent = model + tools + a loop in which it decides what to do. It's a powerful tool for open-ended tasks, but most business problems are better solved with a simple, predictable process. What connects agents to your tools in a uniform way is MCP.