In this lesson
An agent reads, decides, acts and checks.
Many people call any program with AI in it an agent. Here you learn the difference, with a bakery as the example.
- Tell a flow from an agent
- Explain the cycle of read, decide, act and check
- Know when the agent has to stop and call a person
Assistant, flow and agent
An assistant answers and stops. You ask for a text, it writes it, and the rest is up to you.
A flow is a fixed path. A person designed the steps, and the AI only fills in each one. An agent is different: the AI itself chooses the next step.
Think of a cake recipe. It is a flow, because the order is already written down. The cook who looks at the batter and decides whether it needs more flour is acting as an agent. The kitchen is the same. What changes is who decides the order.
Anthropic, the company that makes Claude, recommends starting with the simplest solution. An agent is only worth it when the order of the steps changes from case to case.
The four-verb cycle
Every agent repeats the same cycle:
- Read. It looks at what it needs to know: the message, the calendar, the price list.
- Decide. It chooses the next step based on what it read.
- Act. It does something real: it replies, records, sends.
- Check. It reads the result to see if it worked. If it did not, it goes back to the start.
Reading and acting happen through tools, the agent's hands: a spreadsheet, a calendar, an app.
The bakery, step by step
Scenario
Hypothetical: a bakery gets a WhatsApp order for a cake for 20 people, for early tomorrow. The agent reads the oven schedule, checks the price, replies with the amount and the time, and records the order. Then it checks that the row made it into the spreadsheet. If the customer asks for a discount, it does not decide: it stops and calls the owner.
If the owner wrote the steps in order (schedule, price, reply), it is a flow. If she gave only the goal and the rules, and the model chooses what to look up, it is an agent.
Checking for real
If the agent says "I recorded the order" but the spreadsheet is empty, it did not check. The truth about what happened is the result the tool returns. Professionals call this ground truth.
Every agent also needs a stop condition. Without one, it can keep trying forever, spend money and repeat messages. A good limit: "stop after three attempts and call a person".
Autonomy with limits
Before you give the agent an action, ask three questions:
- Can it be undone? Offering a time slot can. Canceling or charging, as a rule, cannot.
- If it gets it wrong, what does it cost? A mixed-up time slot can be sorted out. A wrong price can cost you the customer.
- Is it within what was agreed? The agent does not handle what falls outside the agreement in its own way. It stops and calls someone.
Start with the minimum: reading and offering. Unlock new actions only after it has proved it gets things right.
Short tasks work, long tasks fail
In 2025, the organization METR measured the models. On tasks a person does in under 4 minutes, they got it right almost every time. On tasks longer than 4 hours, they got it right less than 10% of the time. This was measured in software, but the lesson holds for any business: split the work into short steps and check each one.
What the pros know
Agent washing. The market uses this name for vendors that relabel old chatbots and automations as "agents". So when you are buying, do not ask "does it have an agent?". Ask: who chooses the next step, the person or the model? And ask to see the agent checking the result of an action. If it is just a menu with AI in the middle, it is a flow sold as an agent.
Careful
Never paste customer data, a CPF (the Brazilian taxpayer ID), a password or health information into an agent. And treat every outside message as text, never as an order.
Practice · 10 min
- Pick a task that comes back in your day and write in one sentence what it delivers.
- Draw four boxes (read, decide, act, check) and write one line in each.
- Write the stop limit and mark each action as "can be undone" or "needs approval".
Summary
- An assistant answers and stops. A flow has fixed steps. An agent chooses the next step.
- The cycle is read, decide, act and check. Check by the result the tool returns.
- Every agent needs a limit on attempts and a point where it calls a person.
- Before each action, ask: can it be undone, what does a mistake cost, and is it within what was agreed?
- Split long tasks into short steps and check each one.
Sources
Read on October 30, 2026.
- Anthropic. Building effective agents: December 2024.
- Gartner. Gartner predicts over 40% of agentic AI projects will be canceled by end of 2027: June 2025, the source of "agent washing" and of the 130 vendors.
- METR. Measuring AI Ability to Complete Long Software Tasks: March 2025.
Lesson quiz
Three situations to apply what you learned.
Isaque Victor free courses