Agentic AI

Agentic AI explained: how an agent breaks a goal into steps, uses tools, and where control has to stay with a human.

What agentic AI means

An agent doesn't get a command for every single step, it gets a goal. "Book me the cheapest flight to London" is enough as input. How many intermediate steps that takes is up to the system.

A classic language model answers an input with text and is done. An agent plans, calls external tools, checks its own result and corrects itself when a step didn't work. Technically there's usually a large language model behind it in a different role: it no longer produces answer text for a person, it produces function calls for a system behind it.

How it differs from an assistant

An assistant like Siri or a standard chat is reactive. You ask, it answers, and nothing happens without your next prompt. An agent flips that around: you set the goal, it decides how to get there.

Ask an assistant for the cheapest flight and it lists options, then you book. An agent opens the booking site, compares prices and completes the purchase, as long as you've allowed it to. If it hits an obstacle, it looks for an alternative instead of giving up.

That changes your role too. With an assistant you're human-in-the-loop: without your feedback, nothing moves. With an agent you become human-on-the-loop and only step in when something goes off course. Where exactly that line runs is covered in the comparison of AI assistants and AI agents.

The loop behind it

Under the hood, the agent repeats four steps. It perceives its environment, plans through a chain of intermediate steps, acts through a tool like a browser or database, and then observes the result. If the action worked, it moves on. If not, it plans again.

This ability to react to unexpected obstacles is what separates an agent from a rigid script. How often the loop runs before it gives up is a configuration question, and that's where the cost risk comes from later.

In practice the effort pays off mainly in three areas: backend processes with unstructured data, say an invoice in an email attachment that needs to end up in the ERP system; customer service with real system access, meaning checking a warranty and creating a return label instead of pointing to a knowledge base; and research, where an agent pulls data together from several subpages. How precisely the goal has to be stated for that to hold up is covered under context engineering.

Where it gets expensive or dangerous

The most obvious problem is the endless loop. Every attempt costs tokens, and an agent with no limit on steps and runtime burns through a budget without delivering anything useful.

Then there's security. An agent with access to email, databases or a shell becomes a way in for manipulated input. If an incoming message contains hidden instructions, the agent can read them as its own command. That's why an agent with shell access is safer in an isolated container. The OWASP project on LLM security lists prompt injection as one of the biggest risks.

The worst part is hallucination combined with the ability to act. In a chat, a wrong answer is annoying. With access to a bank account, it gets expensive. So if you build agents, you can't get around hard limits and human checkpoints, or around connecting the tools through the Model Context Protocol.

Back to the AI and Automation Glossary.

FAQ

Does every workflow need an agent, or is an assistant enough?
Usually an assistant is enough. If you need text that a person reads and sends afterwards, say an email draft or a summary, a simple prompt to a language model is the faster and cheaper option. An agent only pays off when a task has several steps, follows clear rules and should run without constant supervision, like checking an invoice and booking it in the ERP system.
What does running an agent cost compared to a chat assistant?
A lot more, because every intermediate step costs tokens, not just the final answer. An agent that makes a plan, carries it out, checks the result and tries again when needed can burn ten times as many tokens on a single task as a direct chat answer. Without a cap on the number of steps or a time budget, a stuck agent can get out of hand fast.
How do you stay in control of an agent that acts on its own?
With clear limits set before the agent even starts: which tools it may use, which actions need confirmation, and when it has to stop instead of trying again and again. For actions with real consequences, like a payment or deleting data, a human sign-off still makes sense, even if the rest of the workflow runs autonomously.
Portrait of Eric Hinzpeter

Eric Hinzpeter

Eric Hinzpeter, Senior B2B Content Strategist. He builds AI agents and marketing automation for production use and writes up what comes out of it here.

About meLinkedIn (new tab)