Skip to content

Lesson 1 of 4

Free preview

What makes something an agent

Workflows versus agents, and when each fits.

12 min 3-question quiz 3 guides to read next

A plain LLM call takes text and returns text. An agent is given tools — functions it can ask your code to run — and works in a loop: decide on an action, see the result, decide what to do next, until the task is done.

It helps to separate two designs:

  • Workflows: your code decides the steps. "Classify the email, then look up the customer, then draft a reply." The LLM fills in each step. Predictable, testable, cheaper.
  • Agents: the model decides the steps and how many to take. "Resolve this support ticket." Flexible, able to handle situations you didn't anticipate — but less predictable, and each step costs time and money.

Start with the simplest design that works. Many problems described as "we need an agent" are solved better by a single well-prompted call or a fixed workflow. Reach for an agent when the path genuinely can't be known in advance: open-ended research, debugging, tasks with many possible branches.

Agents are also only as good as the feedback they get. Tasks where the agent can check its own progress — tests that pass or fail, a search that returns results or doesn't — suit agents far better than tasks where nothing tells it when it is wrong.

Check your understanding

3 questions · pass with 2 correct

1. What distinguishes an agent from a plain LLM call?
2. When should you prefer a fixed workflow over an agent?
3. Which tasks suit agents best?

You'll see your score; enrol to have it count towards your certificate.

Enrol for free to save your progress, unlock every lesson and earn a certificate.

Sign in to enrol

Further reading

Guides that go deeper on this lesson.

  • AI Agents and Tool Use

    What makes an LLM an agent, how the tool-use loop works, and when an agent is the right design.

    2 min read

  • What Is an Agent Harness?

    The software around a language model that turns it into an agent: the loop, tools, context, permissions and memory.

    2 min read

  • Chatbots Versus AI Agents in Business

    The difference between conversational assistants and agents that take actions, and how to decide which a use case needs.

    1 min read