Chatbot, fixed steps or AI agent: which one your job actually needs (agent vs workflow)

4 min read

A chatbot, a program you chat with one message at a time, answers one question. A workflow, a fixed list of steps a person wrote in advance, runs those steps in order. An agent, a program that plans and uses tools until a goal is done, decides its own steps as it goes. Pick the wrong one and you either pay too much or get the wrong answer. Pick the right one and the job is easy.

New to these terms? Every word is explained in the series glossary.

Think of it like getting dinner. A chatbot is asking a friend for a recipe. A workflow is a meal kit, every step printed on a card, same order every time. An agent is hiring a cook, who checks what is in the fridge, picks a dish, and adjusts as they go.

Animation: One model call, a few calls in a fixed order, or a loop that decides its own steps.

Here is the decision table.

ChatbotWorkflowAgent
What it doesAnswersRuns fixed stepsFigures out the steps
CostCheapestCheapMost expensive
ControlYou driveYou wrote the stepsThe agent decides
Best forQuestionsRepeatable jobsMessy, open jobs
Fails whenYou need actionThe steps changeThe goal is unclear

Cost matters. A chatbot is one model call, meaning one request sent to the AI model and one reply back, which is what you are billed for. A workflow is a few calls in a fixed order. An agent is many calls, because every loop is a new call, and it might loop ten times. If the job is simple, an agent is a waste of money.

Here are three jobs where a chatbot is enough and an agent is overkill. First, answering "what is your refund policy". The answer is in one document. One question, one answer, done. Second, summarising a document you just pasted in. The input is fixed, the output is fixed, no tools, meaning actions like search or running code that the model can ask for, are needed. Third, translating a sentence. There is nothing to look up and nothing to decide.

And three jobs where an agent earns its keep. First, booking a trip where prices change while you search. The agent has to check, compare, and re-check. Second, debugging a failing build, meaning finding why the code will not build or pass its checks. Nobody knows the steps in advance, and the agent has to read errors and try fixes. Third, researching a topic across ten sources and writing a summary with citations. The agent has to search, read, compare, and correct itself.

The rule is simple. If you can write down the steps before you start, use a workflow. If the answer is one thing and you just need it said well, use a chatbot. If you cannot write down the steps because they depend on what you find, use an agent.

flowchart TD
    Q1{"Is the answer one thing<br/>you just need said well?"}
    Q1 -->|yes| C["Chatbot<br/>one model call"]
    Q1 -->|no| Q2{"Can you write down<br/>the steps before you start?"}
    Q2 -->|yes| W["Workflow<br/>a few calls, fixed order"]
    Q2 -->|"no, they depend<br/>on what you find"| AG["Agent<br/>many calls, one per loop"]

Diagram: The rule as a decision: one answer means chatbot, known steps mean workflow, otherwise agent.

The code below is a small function, a named block of code that takes inputs and returns an answer.

python
# Pick the pattern in three questions.
def pick(steps_known, needs_tools, answer_only):
    if answer_only:
        return "chatbot"
    if steps_known and not needs_tools:
        return "workflow"
    if steps_known:
        return "workflow"
    return "agent"

print(pick(True, False, True))    # chatbot
print(pick(True, False, False))   # workflow
print(pick(False, True, False))   # agent

Try this

bash
python3 -c "
def pick(steps_known, needs_tools, answer_only):
    if answer_only: return 'chatbot'
    if steps_known: return 'workflow'
    return 'agent'
print('FAQ:', pick(True, False, True))
print('weekly report:', pick(True, False, False))
print('debug a build:', pick(False, True, False))
"

Pick the right pattern, then build it with Parts 2 and 4. Part 2 shows what an agent is, and Part 4 breaks its loop into five steps you can copy.

Sources

  • Agent, chatbot and workflow distinction: standard in LangChain, Hugging Face and Anthropic agent docs, 2025-2026.
  • Cost comparison: per-call pricing from OpenAI, Anthropic and Google pricing pages, November 2026.