Barcelona Code School

Since 2015 / 500+ graduates

What Is Agentic AI? Agentic AI vs Generative AI

AI agents explained

What Is Agentic AI? How It Differs from Generative AI

Generative AI produces an answer. Agentic AI manages a goal: it chooses steps, uses tools, checks results and adapts within defined boundaries.

Published and reviewed 26 August 2026 · Barcelona Code School

Agentic AI is an AI system that can pursue a goal through a sequence of decisions and actions. Instead of producing one response and stopping, it can plan the next step, select an approved tool, observe what happened, update its state and continue until the task is complete or human judgement is required. Generative AI is usually one component inside that system: it supplies language understanding and generation, while the agentic layer manages the work.

Key takeaways

  • Generative AI creates content; agentic AI coordinates actions toward a goal.
  • An agent normally combines a model with instructions, tools, memory or state, an execution loop and guardrails.
  • Not every automation needs an agent. Fixed processes are often safer and cheaper as deterministic workflows.
  • Useful autonomy is bounded autonomy: permissions, validation, logs and human approval remain part of the system.
  • The important skill is not merely prompting a model, but designing and testing the complete process around it.

Generative AI creates. Agentic AI acts.

Generative AI refers to models that create new content from patterns learned during training. Given a prompt, a model can produce text, code, images, audio or another output. A familiar example is asking a language model to draft a reply to a customer.

Agentic AI starts with a different question: what must happen for the customer's problem to be resolved? The system may need to identify the customer, check an order, read a policy, decide whether a refund is allowed, update a record and prepare a response. If the amount exceeds a threshold, it may have to stop and request approval.

The model still generates language and makes bounded decisions, but generation is no longer the end of the process. It becomes one capability inside a system that can interact with external data and software.

DimensionGenerative AIAgentic AI
Primary jobCreate an outputMove a task toward a defined goal
Typical interactionPrompt → responseGoal → plan → actions → observations → adjustment
Tool useOptionalUsually central to reading data or taking action
StateOften limited to the current contextTracks progress, intermediate results and task status
Control flowMainly directed by the user or applicationThe model can choose the next step within boundaries
RiskAn inaccurate outputAn inaccurate output plus a wrong or unintended action
ExampleDraft a follow-up emailFind stalled leads, choose who needs a follow-up, draft messages and request approval before sending

The boundary is architectural, not a competition between two model types. The same language model can power a simple generator, a fixed AI workflow or an agentic system.

How does an agentic AI system work?

An agent begins with a goal and a set of permitted capabilities. It decides which action is useful, calls a tool, receives information from the environment and uses that observation to decide what to do next.

The agent loop

An agent repeats the plan–act–observe cycle until it reaches an exit condition. Guardrails, permissions and human checkpoints limit what it may do.

The minimum useful architecture normally includes:

  • A goal and instructions: what the system is responsible for, what success means and what remains outside scope.
  • A model: the reasoning and language component that interprets context and selects among allowed actions.
  • Tools: controlled interfaces for retrieving data or changing an external system, such as reading documents, querying a CRM or creating a task.
  • State or memory: the facts and intermediate results required to continue a multi-step task.
  • Guardrails: validation, access controls, risk rules, iteration limits and conditions for stopping.
  • Evaluation and logs: evidence of what the agent attempted, what happened and whether the result met the acceptance criteria.

A practical example: handling an incoming sales lead

Generative AI version

A salesperson pastes a new enquiry into a chat and asks for a reply. The model drafts the text. The person still checks the CRM, verifies the details, creates the task and sends the message.

Agentic AI version

A form submission triggers the system. The agent validates the contact details, checks for an existing CRM record, reads the enquiry, retrieves the relevant service information and proposes the next step. It updates the record and creates a task. Before any external message is sent, a person reviews the draft and approves or rejects it.

Both versions use generative AI. Only the second one owns part of the workflow, interacts with business systems, keeps task state and responds to intermediate results.

Agentic AI is not the same as automation

A deterministic workflow follows paths defined in advance: when event A happens, perform steps B and C. It is usually the right choice when inputs are structured, rules are stable and exceptions are known.

An agent is useful when the correct path cannot be fully specified beforehand. It can interpret an ambiguous request, search different sources, select a tool and change its approach when the first attempt fails.

Use the simplest architecture that reliably solves the problem. Adding an agent increases flexibility, but it can also increase latency, cost and the number of ways the process may fail.

Prefer a deterministic workflow when:

  • the sequence is stable and every important branch can be written as a rule;
  • the same input should always produce the same action;
  • speed, cost and predictability matter more than flexibility;
  • a wrong decision would be difficult to detect or reverse.

Consider an agent when:

  • the task requires interpreting natural language or unstructured documents;
  • the next step depends on information discovered during execution;
  • several tools may be valid and the system must select among them;
  • the work benefits from planning, iteration or recovery after a failed attempt;
  • you can define clear permissions, stopping conditions and acceptance tests.

Does agentic AI mean fully autonomous AI?

No. Agency is a spectrum. One system may only choose which document to retrieve. Another may complete a long sequence of tool calls before it returns to the user. The amount of autonomy should follow the risk of the task, not the ambition of the demo.

Low-risk, reversible actions can often run automatically. Actions involving money, contracts, deletion, publication, sensitive data or communication with customers should use explicit permissions and human checkpoints. A production system also needs records of every significant action and a clear way to stop.

What agentic AI is good at—and where it still fails

Agentic systems are useful for processes that combine judgement with action: researching across sources, classifying and routing requests, preparing documents, updating records, monitoring changing information and coordinating work across tools.

They can also fail in more complex ways than a chatbot. An agent may misunderstand the goal, choose the wrong tool, carry an early error into later steps, loop unnecessarily, use stale information or take a valid action at the wrong time. For that reason, a convincing prototype is not the same as a reliable production system.

Before deployment, teams should test normal cases, missing information, conflicting sources, tool failures, permission boundaries and handoff to a human. The system should know not only how to proceed, but when not to proceed.

What should you learn to build agentic AI?

Prompt writing is only one part of the work. Building an agentic system requires process mapping, data design, tool integration, structured outputs, memory, retrieval, human approval, failure handling, evaluation and production monitoring.

A useful learning project should finish with more than a chatbot demonstration. It should include a process map, acceptance criteria, test cases, an action log, failure scenarios and a runbook explaining how the system is operated safely.

Learn to build AI agents around real business processes

Barcelona Code School's AI Agent Engineer programme teaches agentic systems through complete business workflows. The current internal curriculum covers workflow design, tool-using agents, structured business data, human approval, RAG, evaluation and production readiness.

It is intended for people who want to design and build working AI automation systems—not only use a chat interface or collect prompts.

Explore the AI Agent Engineer programme

See the live course page for the current syllabus, format, dates and tuition.

Frequently asked questions

What is agentic AI in simple terms?

Agentic AI is an AI system that can pursue a goal through multiple steps. It decides what to do next, uses approved tools, observes the result, adjusts its plan and stops or asks for human input when necessary.

What is the difference between agentic AI and generative AI?

Generative AI primarily creates content in response to an input. Agentic AI uses a generative model inside a larger system that manages a task, chooses actions, calls tools, maintains state and reacts to results.

Is ChatGPT agentic AI?

A basic prompt-and-response chat is generative AI, not an agent. A ChatGPT-based system can become agentic when it is given tools, state, a goal, an execution loop and rules for acting or asking for approval.

Does agentic AI work without humans?

It can complete bounded low-risk steps autonomously, but consequential actions should use permissions, guardrails, logs, stopping conditions and human approval.

When should a business use agentic AI?

Agentic AI is useful when a task is multi-step, varies from case to case, requires interpretation of unstructured information and benefits from choosing among tools. A deterministic workflow is usually better for stable, predictable processes with fixed rules.

Sources

  1. OpenAI — A practical guide to building AI agents. Agent definition, tools, workflow control and guardrails.
  2. Anthropic — Building effective agents. Distinction between workflows and agents, agent loops and architectural trade-offs.
  3. Anthropic — Trustworthy agents in practice. Human control, permissions, transparency and security.
  4. Anthropic — Demystifying evals for AI agents. Evaluation of multi-turn tool-using systems.
  5. Barcelona Code School — internal AI Agent Engineer curriculum, reviewed 26 August 2026.

From generating answers to building systems that complete work

Learn how to map a business process, connect tools and data, add human approval, test failures and turn an AI model into a controlled agentic system.

See the AI Agent Engineer programme




Back to posts