When the model stops just answering and starts doing things. And how you keep it safe.
A chatbot is a knowledgeable receptionist who answers questions. An agent is a capable assistant you hand a goal ('book my trip') who makes the calls and fills the forms — but who can also confidently book the wrong hotel, so you keep approval rights on anything irreversible.
That 'more autonomous = better'. In production, unbounded autonomy is a liability: outputs are non-deterministic, so blindly retrying a failed step often worsens a cascading error. The best agent products are tightly scoped with guardrails and human-in-the-loop gates.
The lesson, in five answers
An agent is an LLM that takes actions to reach a goal. It plans steps, calls tools and APIs, looks at the results, and adjusts. It doesn't just reply with text. Tool calling (also called function calling) lets the model send a structured request, like 'call refund_order with id=123'. Your code then runs it. MCP (Model Context Protocol) is the up-and-coming shared standard for how agents plug into those tools and data sources. A chatbot talks. An agent does.
Agents are the 2026 frontier. That's where both the value and the risk pile up. As PM, you decide a few things. Which tools it's allowed to use. Where a human must sign off before it acts (refunds, deletes, messages to outsiders). What guardrails hold it back. And how you score the whole run of steps, not just the final answer. Bigger goals more and more use several agents working together. One agent leads and hands sub-tasks to worker agents. They also keep memory that carries across steps.
Use an agent when a goal really needs several steps and tool calls, and the payoff is worth the extra risk and cost. For simple questions or a single lookup, a chatbot or plain RAG is safer and cheaper.
Agents fail in their own way. One wrong step snowballs into the next. Common failures: the agent sends broken arguments to a tool, gets stuck in retry loops that burn money, passes errors down the line, picks the wrong tool, or wanders off-task. You hold these back with step limits, spend and time budgets, input checks, and human sign-off gates. The sharpest risk is the 'lethal trifecta'. That's when one agent can reach private data, can read untrusted content, and can send data out. Combine all three and hidden instructions in a fetched web page or document can hijack it. This is called indirect prompt injection. Guardrails cut this risk but never remove it. The real defence is in how you build it. Give each tool the least access it needs. And don't let one agent hold all three powers at once.
"For a refund agent, I'd let it look up the order and draft the action on its own. But I'd require a human to approve before any money moves. I'd give its tools the least access they need. I'd treat anything it fetches as untrusted, because of the lethal-trifecta risk. And I'd score the full run of steps: did it pick the right tool, were its arguments valid, did it follow policy? Not just the final message."
The canonical explainers for this topic. Open them alongside the lesson, not after it.
External links open in a new tab. Content and prices change — verify before relying on any of them.
Tool / function calling
The model sends a structured call, and your code runs it. This is how an agent acts on the world.
MCP (Model Context Protocol)
The emerging universal standard for connecting agents to tools and data. Knowing it signals you keep up.
Human-in-the-loop (HITL)
A required human approval gate before high-stakes or irreversible actions.
Lethal trifecta
One agent that can reach private data, read untrusted content, and send data out. Put all three together and hidden instructions can hijack it (indirect prompt injection). Defend by how you build it, not just by adding rules.
Multi-agent orchestration
A lead agent that hands sub-tasks to worker agents. It's how big goals grow past what one agent can do.
Trajectory evaluation
Scoring every step the agent took, like tool choice, arguments, cost, and policy, not just the final answer.
You don't need to use or master these. Recognising the names — and which box each sits in — is the tech-stack awareness a PM needs. No deep dive.
Try it
Plan → act → observe → repeat, with a human-in-the-loop gate before money moves.
An agent pursues a goal through a loop — Plan → Act → Observe → repeat — calling tools to change the world until it's done. Step through a refund agent below.
Plan — It reasons about the next move given the goal and everything observed so far.
You decide which tools it may call, where a human must approve, and the guardrails — spend caps, step limits — that box in its autonomy. And you evaluate the whole trajectory, not just the final answer.
Recall beats re-reading. Answer before you flip.
Take a multi-step task (e.g. 'cancel my unused subscriptions'). List the tools an agent would need, mark which steps are irreversible, and draw where you'd put the human-approval gate. That's the core of an agent PRD.
This is where the hours go — reading is the warm-up, doing is the learning.
External resources open in a new tab. Course prices and links change — verify before paying.
Marked this one off? Your progress saves on this device.