Lessons
1 · Understanding Modern AI
2 · Talking to AI Effectively
3 · AI for Learning
4 · AI for Work and Productivity
5 · AI for Developers
- 17AI Coding Assistants: Modes, Strengths and Your Responsibility
- 18Use AI to Understand Code, Codebases, APIs and Documentation
- 19How to Use AI to Debug Code Safely
- 20Testing, Reviewing and Refactoring AI-Generated Code
- 21Security and Licensing Risks of AI-Generated Code
- 22Vibe Coding vs Responsible AI-Assisted Building
6 · AI for Career Growth
7 · Research, Verification and Responsible AI
8 · Automation and AI Agents
Lesson 30 · Automation and AI Agents
Chatbots, Workflows, Automation and Agents: Choose the Simplest System
Chatbot, workflow, automation, AI-assisted workflow and agent are often used as if they mean the same thing. They differ in who decides the next step, and that difference drives reliability, cost and risk. This article defines each, compares them on one task and gives a decision method built on one rule: use the simplest system that reliably works.
For
Professionals, students and developers who hear about AI agents and automation and want to know what they are, when they help and when a simpler approach is better.
Level
Before you start
Read Examples, Output Formats and Structured Output (article 8) and Iterate, Break Tasks Apart and Reuse What Works (article 9).
On this page
Key takeaways
- The key difference is who decides the next step. In a chatbot you do, in a workflow the code does, in an automation the software repeats fixed actions, and in an agent the AI chooses actions and tools toward a goal.
- An AI-assisted workflow uses AI for selected steps, such as drafting or classifying, inside a fixed process. It is often the best balance of flexibility and control.
- Agentic systems trade latency and cost for flexibility, and errors can compound over many steps. Add autonomy only when simpler solutions fall short.
- If a precise rule exists, use ordinary code. If language understanding is needed in one step, use AI for that step and validate it. Reach for an agent only when the path cannot be known in advance.
- Use the simplest system that reliably solves the problem, and keep a human approval step where mistakes are costly.
Open any technology news site and you will find the claim that "agents" will soon do your job, your shopping and your homework. Underneath the excitement lies a real engineering question: for a given task, how much should you let the AI decide?
If you let it decide everything, you may get flexibility and also unpredictability. If you let it decide nothing, you get reliability and also rigidity. Most good designs sit in between. This article gives you the vocabulary and a method for picking the right point.
What you will learn
#- Clear definitions of five kinds of system.
- One task solved five ways, with the trade-offs.
- A decision method and when ordinary automation wins.
- Why reliability falls as steps and autonomy rise.
- How to apply the rule "simplest system that works".
The five kinds, in plain words
#Kind | Who or what decides the next step? | In one line |
|---|---|---|
Chatbot | You, turn by turn | It responds to a request |
Workflow | A fixed series of steps defined in advance | Multiple predefined steps in a set order |
Automation | Software executing repeatable actions | A program that does the same thing whenever triggered |
AI-assisted workflow | The fixed process, with AI doing selected reasoning or generation inside some steps | A fixed pipeline where certain steps use AI |
Agent | The AI, which selects actions and tools dynamically toward a goal | It decides what to do next |
The categories overlap in practice, and products blur them. But the question "who decides what happens next?" cuts through the marketing.
Anthropic's engineering article on building effective agents draws a similar line. It describes workflows as systems where language models and tools are orchestrated through predefined code paths, and agents as systems where models dynamically direct their own processes and tool usage, keeping control over how they accomplish tasks. It adds that for many applications, optimising single model calls with retrieval and in-context examples is usually enough, a point we will return to.
A ladder of autonomy
#Think of it as a ladder. Each step up gives the AI more say, and gives you less predictability and more to check.
Chatbot you decide each step, AI answers |Workflow code decides the steps, fixed order |Automation software runs the steps on a trigger, no AI needed |AI-assisted code decides the steps; AI handles some of themworkflow (summarise, classify, extract, draft) |Agent AI decides the steps and picks tools toward a goal(Automation and workflow are not strictly "above" or "below" each other. A workflow can be run by hand or by a trigger. The ladder shows autonomy of the AI, and the box for plain automation sits at the "no AI decisions" end.)
One task, five ways
#Task: every Friday, send the team a short update on how many support tickets were opened and closed, and what the main themes were.
1. Chatbot. On Friday you export the tickets, paste them into an assistant, ask for a summary and counts, check them, and send the update yourself. Flexible, and entirely manual. The counts may be wrong, so you should check them.
2. Workflow (manual). You follow a written checklist: export the file, paste the counts into a template, write three sentences, send. Predictable and boring. Nothing here needs AI.
3. Automation. A script runs every Friday: it queries the ticket system, counts opened and closed tickets, fills a template and emails it. Reliable and cheap. It cannot summarise themes, because that needs judgment about language.
4. AI-assisted workflow. The same script does the counting (exactly, without AI). It then sends the ticket titles to a language model with a fixed prompt to propose three themes, validates that the output has the right shape, puts it in the template and holds the email for a human to approve. Counts are exact. Language work is done by AI. A person checks the text before it goes out.
5. Agent. You give an agent the goal "keep the team informed about support trends", plus access to the ticket system, the team chat and email. It decides what to query, whom to message and what to say. Powerful, flexible, open-ended. Also the hardest to predict and to test: it may choose different actions each week, misread a ticket, or send something to the wrong channel.
In this case, option 4 is likely the best fit: the task is repeated, the steps are known, only one step needs language skill, and the cost of an error (a wrong summary sent to the team) is moderate and can be caught with a review step. An agent adds flexibility the task does not need.
Why simpler is often better
#Anthropic's article puts it directly: start with simple prompts, optimise them with evaluation, and add multi-step agentic systems only when simpler solutions fall short. It also notes that agentic systems often trade latency and cost for better task performance, so you should consider whether that trade is worth it.
Four reasons simplicity wins:
1. Reliability compounds downward
#If a process has several steps and each step works with some probability, the chance that all of them work falls quickly. The figures below are illustrative assumptions, not measurements of any real system, but the arithmetic is real:
Chance each step is right | After 5 steps | After 10 steps | After 20 steps |
|---|---|---|---|
99% | 95.1% | 90.4% | 81.8% |
95% | 77.4% | 59.9% | 35.8% |
90% | 59.0% | 34.9% | 12.2% |
A system that makes ten decisions, each right 95 percent of the time, gets the whole job right only about 60 percent of the time, assuming errors are independent and that any one error ruins the result. Real systems can recover from some errors and not from others, but the lesson holds: every extra step and every extra decision by the AI is another place to fail.
2. Predictability and testing
#A fixed workflow does the same thing every time, so you can test it. An agent may take a different path on each run. You can still test and monitor it, but you need more evidence and more care to be confident.
3. Cost and speed
#Each model call takes time and money. An agent may make many calls in a loop. A script that counts rows costs almost nothing and finishes in a second.
4. Explainability and accountability
#When something goes wrong, you need to know why. With a fixed pipeline, you can look at the step where it failed. With an agent, you may have to read a long trace of its choices.
When ordinary automation is better
#Use a normal program, spreadsheet formula, scheduled task or rule-based tool when:
- A precise rule exists. GST on an invoice, a date difference, a sum, a lookup, a format check, a threshold. These need exactness, which code gives and models do not guarantee.
- The input is structured (a database, a form, a spreadsheet) and the output is too.
- The task is high-volume, where cost and speed matter.
- A wrong answer is costly and you need to be able to prove why the system did what it did.
- There are regulatory or audit demands for exact, repeatable behaviour.
Many "AI automation" proposals are actually problems for a spreadsheet and a scheduled script.
When AI belongs inside a workflow
#Add AI to one step when that step involves messy language or judgment that rules cannot express:
- Classifying free-text messages (complaint, query, praise).
- Extracting fields from unstructured documents (dates, amounts, names from emails).
- Summarising long text.
- Drafting replies or reports from structured facts.
- Translating or rephrasing.
- Routing a request to the right team.
Wrap those steps with the safeguards you learned: a precise prompt, a defined output format, validation in code (see article 8), a safe fallback ("send to a person") and a human check where a mistake matters.
When an agent can be justified
#An agent may be worth considering when all or most of the following hold:
- The path cannot be known in advance. The number and order of steps depend on what is found along the way.
- The task is valuable enough to justify cost and complexity.
- Results can be verified automatically (tests pass, a checklist is satisfied) or by a person before they matter.
- Actions are reversible or contained, such as working on a branch, in a sandbox, or on drafts.
- Permissions are narrow, with approval for risky actions.
- You can monitor and stop it.
Coding agents working in a repository with tests are a common example: the steps vary, results can be checked by tests and version control lets you undo changes. Even there, humans review the changes before they ship. Article 31 explains how agents work, and article 32 covers how to make them and workflows reliable.
A decision guide
#Ask these questions in order. Stop at the first "yes".
Question | If yes |
|---|---|
Is this a one-off task, or one where I want to stay in control of each step? | Use a chatbot, with good prompts and checking |
Is there a precise rule or formula that solves it? | Use ordinary automation or a spreadsheet |
Are the steps known and fixed, but one or two need language understanding? | Build an AI-assisted workflow with validation and human approval where needed |
Do the steps depend on what is found along the way, and can the results be verified and the actions contained? | Consider an agent, narrowly scoped, with approvals and monitoring |
None of the above clearly applies | Go back, clarify the task, and start with the simplest option |
And these cross-checks:
- What is the cost of an error? The higher it is, the more you want determinism and human review.
- How often will it run? High frequency favours automation. Low frequency may not justify building anything.
- Can I describe "correct" precisely? If not, you cannot test any of these, so define it first.
Common mistakes
#- Building an agent for a task a script could do.
- Calling a simple prompt template an "agent".
- Letting the AI do the arithmetic in a pipeline.
- Skipping validation between steps.
- Automating a process you do not yet understand. Do it by hand a few times first.
- Giving broad permissions because narrowing them takes effort.
- Assuming more autonomy means more value.
Exercises
#Exercise 1
Classify
#Classify each as chatbot, workflow, automation, AI-assisted workflow or agent: (a) a script that renames files by date every night, (b) you asking an assistant to explain a contract clause, (c) a pipeline that extracts invoice fields with a language model, validates them and sends exceptions to a person, (d) a system given the goal "find and book the cheapest suitable flight" that browses, compares and pays on its own.
Exercise 2: Choose
#For each task, pick the simplest suitable approach and justify it: (a) convert 500 temperatures from Celsius to Fahrenheit, (b) tag 2,000 customer comments as billing, delivery or product, (c) research a new topic and gather sources.
Exercise 3: Compound the errors
#A pipeline has 8 steps, each right 97 percent of the time. Estimate the chance that all eight are right, assuming independence. What does your answer suggest about adding a ninth step?
Exercise 4: Redesign
#A colleague proposes an agent that reads all incoming emails, decides what each needs, replies and updates the CRM. Redesign it as a simpler, safer system. Say what stays automated, what uses AI, and what needs a human.
Show solutionHide solution
(a) Automation. Fixed action on a schedule, no AI. (b) Chatbot. You ask, it answers. (c) AI-assisted workflow. A fixed pipeline with a language model for extraction, validation in code and escalation to a person. (d) Agent. The system chooses actions and tools toward a goal. It also has a dangerous capability, paying, which should require human approval.
Exercise 2
Show solutionHide solution
(a) Ordinary automation or a spreadsheet formula. F = C x 9/5 + 32 is a precise rule, and a language model could slip. (b) AI-assisted workflow. Classification of free text suits AI, and you can add a defined output format, a spot-check of a sample against your own labels and a fallback for uncertain cases. (c) Chatbot or a search-grounded tool with you in control, following the research workflow of article 27. A deep-research agent could help find leads, but you must verify the sources.
Exercise 3
Show solutionHide solution
0.97 to the power 8 is about 0.784, so roughly a 78 percent chance that all eight steps are right, which means about 1 in 5 runs contains at least one error. A ninth step at the same reliability would lower it to about 76 percent (0.97 to the power 9 is about 0.760). The lesson: each additional step costs reliability, so remove steps that are not needed, improve the weakest step, add validation between steps and put human review where an error matters.
Exercise 4
Show solutionHide solution
A safer design: (1) Automation: rules route emails by sender, subject keywords and known categories (for example invoices from known suppliers go to accounts). (2) AI-assisted steps: a language model classifies the remaining free-text emails into a small fixed set of categories, with a confidence threshold, and drafts a proposed reply from a template and approved facts. (3) Validation: outputs must match a defined format, and anything uncertain goes to a person. (4) Human approval: a person reads and sends replies, at least at first, and CRM updates for important accounts are reviewed. (5) Monitoring: log every decision, sample outputs weekly and track errors. You can relax approvals for low-risk categories once the data shows it is safe.
This keeps the useful part (sorting and drafting) and removes the open-ended autonomy that the task does not need.
Where to go next
#- Next: Tool Use, Function Calling and Agent Loops Explained opens the box on how agents actually work.
- Then: Where Agents Fail and How to Build Reliable AI Workflows shows how to make any of these systems dependable.
- For turning prompts into reusable templates, revisit Iterate, Break Tasks Apart and Reuse What Works.
Sources & further reading
- Technology
- AI
- #AI
- #AI agents
- #automation
- #generative AI
- #productivity
- #prompt engineering
- #responsible AI
- #workflows
Connected lessons
References
Linked from 3 guides
Other pages in the library that point here.
Keep reading
More in Technology →Guide · Technology
Writing Better AI Prompts: A Practical Guide
Guide · Technology
Using AI Tools at Work Without Getting Into Trouble
Course · Career
Off-Campus Placements With AI: From Zero to Offer

