By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
The word gets used for three different systems, and the difference matters because they cost different amounts and fail in different ways.
| System | What it does | Cost per task | Fails by |
|---|---|---|---|
| Chatbot | One prompt in, one answer out | Lowest | Being confidently wrong |
| Workflow | Fixed steps, maybe with model calls inside | Predictable | A step being wrong and nobody noticing |
| Agent | Decides its own next step, in a loop, using tools | Highest and variable | Looping, drifting, taking wrong actions |
An agent is not a smarter chatbot. It is a system where the model chooses the next step. That single change is what makes agents powerful and what makes them expensive, slow and hard to test.
Every agent — every framework, every paper — runs some version of this loop:
The differences between agent products are all in the details: which tools exist, how many loops are allowed, how the result is checked, and what happens when a step fails. Those details are the whole course.
The running example is Atlas, a research assistant for a small analyst team. Ask it a question and it should research it and write a short report with sources.
In Module 1, Atlas is one prompt: send the question, get an answer, hope for the best. By Module 5 it critiques its own drafts, searches sources through tools, plans a multi-step investigation, and delegates to a researcher and a critic. Same product, four additions, each justified by a measurement.
Key takeaways
Chatbot = one answer. Workflow = fixed steps. Agent = the model chooses the next step.
Every agent is a loop of think → act → observe.
Agents trade predictability for flexibility; you pay in cost, latency and testability.
Atlas is the running example: a research assistant that grows across five modules.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.