Most people first met modern AI through a chat window: you type a message, the model replies, and the exchange ends there. Agentic AI changes the unit of work. Instead of producing one reply, an agent is given a goal and works toward it over several steps — deciding what to do, using tools, checking what happened and adjusting its plan.

How does an AI agent work?

Under the hood, nearly every agent runs the same loop. A language model acts as the reasoning engine, and the surrounding software lets it act in the world.

  1. Receive a goal. For example: “Find last week’s failed payments and summarise them by region.”
  2. Plan. The agent decides on a next step, such as querying the payments database.
  3. Act. It calls a tool — an API, a database query, a search, a calculator, a code runner.
  4. Observe. It reads the tool’s result and checks whether it is complete and plausible.
  5. Adjust. It updates its plan: continue, retry, try another tool or ask for help.
  6. Stop. It ends when the goal is met, a limit is reached, or a person needs to decide.

The loop is simple to describe. Making it reliable — so the agent stops at the right time and never acts on bad information — is where the real engineering lies.

Agentic AI vs chatbots: what is the difference?

How chatbots and AI agents differ
AspectChatbotAI agent
Unit of workOne reply to one messageA goal completed over many steps
ToolsUsually none, or a fixed lookupChooses and calls tools as needed
Control flowThe user drives every turnThe agent decides the next step
Typical failureA wrong or vague answerA wrong action, or a loop that never ends
Measured byQuality of the responseWhether the task was completed correctly

A useful shorthand: a chatbot answers; an agent acts, observes and adjusts. The two can share the same underlying model — what differs is the system built around it.

What are the building blocks of an agent?

  • A model that can reason about the goal and decide which tool to use next.
  • Tools with clear descriptions, typed inputs and explicit error states.
  • State and memory so the agent knows what it has already tried and learned.
  • Instructions and guardrails that define scope, limits on steps and cost, and actions that need approval.
  • Evaluation that checks, on realistic tasks, whether the agent actually completes the goal.

Where are agents useful — and where are they not?

Agents shine on multi-step tasks that span several systems and have outcomes you can check: researching and compiling information, triaging requests, reconciling records, or preparing a first draft of an analysis from live data.

They are a poor fit when a single prompt or a plain script would do the job, or when actions are high-stakes and irreversible without human review. A good rule: use the simplest system that reliably solves the problem, and add autonomy only where it clearly pays for itself.

What skills do you need to build agents?

Building dependable agents draws on several connected skills:

  • A solid understanding of how language models behave — covered in Generative AI.
  • Engineering practice for prompts, retrieval, structured output and evaluation — covered in LLM Engineering.
  • Tool design, reasoning structure and failure recovery — the heart of Agentic AI.

Recovery deserves special attention. Our worked example, how AI agents recover when a tool returns a bad result, walks through it step by step.

Key takeaways

  • Agentic AI works toward goals through a loop of planning, acting with tools, observing and adjusting.
  • Chatbots answer messages; agents complete tasks and must be judged on whether the task was done correctly.
  • Reliability — clear tools, explicit checks, limits and escalation — is what separates a demo from a dependable agent.