AI Agents Explained: What They Are, When to Build One, and Why So Many Projects Fail
"Agentic AI" is the most overused phrase in product today. An AI agent is a system where a language model decides its own next step to reach a goal - powerful for open-ended work, wasteful for everything else. Here's what agents really are, when to build one, how to evaluate it, and why so many projects fail.
Listen to this blog
AI voice, 11 min
An AI agent is a system in which a language model decides, step by step, what to do next - which tool to call, what to look up, when to ask for help and when it's done - to complete a goal you've given it. That's different from a chatbot, which answers one message at a time, and from an automated workflow, where the steps are fixed in advance and the model only fills in parts.
"Agentic AI" is now the most overused phrase in product. Gartner expects more than 40% of agentic AI projects to be cancelled by the end of 2027, largely because of rising costs and unclear business value. That doesn't mean agents don't work - it means most teams build them for the wrong problems. This guide explains what agents actually are, when to use one (and when a simple workflow is better), how to design and evaluate them, and the product questions that decide whether they survive.
Part 1: Agents vs Workflows vs Chatbots
The clearest definition comes from Anthropic's guide "Building effective agents" (December 2024). It separates workflows, where language models and tools follow predefined code paths, from agents, where the model dynamically directs its own process and tool use. Both are "agentic systems"; the difference is who decides the path.
Swipe sideways to see the whole diagram.
| Chatbot / assistant | Workflow | Agent | |
|---|---|---|---|
| Who decides the steps? | The user, one message at a time | The developer, in code | The model, at run time |
| Uses tools? | Sometimes | Yes, in a fixed order | Yes, chosen as it goes |
| Predictability | High | High | Lower - paths vary |
| Cost and latency | Low | Low to medium | Higher - many model calls |
| Best for | Questions, drafting | Well-defined, repeatable tasks | Open-ended tasks where steps can't be known in advance |
Most "agent" products should be workflows. Use an agent only when you genuinely can't write down the steps in advance.
Part 2: How an Agent Actually Works
Under the hood, almost every agent is the same loop:
Swipe sideways to see the whole diagram.
The user (or a system) gives a task: "Find why this customer's refund failed and draft a reply."
The model decides the next step - for example, "look up the transaction".
It calls a tool: a database query, an API, a search, a calculator.
It reads the result and updates what it knows.
It loops until the goal is met, it needs a human, or it hits a limit on steps, time or cost.
The building blocks are a capable model, tools with clear descriptions, memory (what it has done so far), and guardrails (what it may never do). Standards like the Model Context Protocol (MCP), which Anthropic introduced in November 2024, make it easier to connect models to tools and data in a consistent way - but the hard product work is still deciding which tools to expose and what the agent is allowed to do with them.
Part 3: When an Agent Is the Right Answer
Use this test before building anything:
Are the steps genuinely unpredictable?
If you can draw the flowchart, build a workflow. Agents earn their cost when the path depends on what's discovered along the way - debugging, research, investigating a complaint.
Is the task valuable enough to pay for many model calls?
An agent might make 10-50 calls per task. That's fine for a fraud investigation; it's wasteful for answering "what's my balance?"
Can a mistake be caught or undone?
Agents make errors. Start where errors are cheap and reversible - drafting, research, internal triage - before letting an agent take irreversible actions like moving money.
Can you tell if it succeeded?
If you can't define success clearly enough to test it, you can't improve it. That's the most common reason agent projects stall.
Good first use cases
| Use case | Why it fits | Human checkpoint |
|---|---|---|
| Support ticket investigation | Path depends on the issue; many lookups | Agent drafts, human sends |
| Research and competitive analysis | Open-ended; reversible output | Human reviews conclusions |
| Internal analytics questions | Agent writes and runs queries, explains results | Human checks before decisions |
| Code changes in a test environment | Tests show success or failure clearly | Human reviews before merging |
| Fraud or dispute triage | Varied evidence to gather | Human makes the final call |
Part 4: Designing the Agent - Decisions Only a PM Can Make
- Scope. Narrow beats general. "Resolve failed-refund tickets" will work far sooner than "handle customer support".
- Tools and permissions. Give the minimum set of tools, each with a clear name and description. Read-only first; write actions later, behind confirmation.
- Stopping rules. Limits on steps, time and spend, plus clear triggers for handing over to a human.
- Transparency. Show users what the agent did and why - the steps it took, the data it used. People trust an agent they can audit. (The same "show the work" principle from the psychology of waiting applies.)
- Fallbacks. What happens when a tool is down, data is missing or the model is unsure? Design that path first.
Planning an AI Agent for Your Product?
I help product teams pick the right AI use cases, define success, and avoid the expensive mistakes. Book a 1-on-1 session.
Book a Session โPart 5: Evaluating Agents - The Part Most Teams Skip
Agents fail in ways that are hard to see from a demo. Before launch, build an evaluation set: dozens to hundreds of realistic tasks with known good outcomes, including messy and adversarial ones. Measure:
| Metric | What it tells you |
|---|---|
| Task success rate | Did it actually complete the goal correctly? |
| Steps and cost per task | Whether it's economically viable at scale |
| Escalation rate | How often it hands over to a human - too high means little value, too low may mean overconfidence |
| Harmful or wrong actions | The guardrail metric. Should be close to zero for anything irreversible |
| User override rate | How often people redo the agent's work - the clearest sign of trust |
I've written more about why evaluation decides whether AI features survive in why most AI features fail within six months.
Part 6: Why So Many Agent Projects Get Cancelled
Gartner's prediction points to three causes: escalating costs, unclear business value and inadequate risk controls. It also warns about "agent washing" - existing chatbots and automation tools rebranded as agents. In practice, the failures look like this:
- A solution looking for a problem. "We need an agent" instead of "this task costs us X hours a week".
- No baseline. Nobody measured the current process, so nobody can prove the agent helps.
- Too broad, too soon. General-purpose agents that do many things badly instead of one thing well.
- Unpriced costs. Many model calls per task, plus monitoring and human review, quietly exceed the value created.
- Trust failures. One visible, confident mistake - especially with money or customers - and adoption stops.
Part 7: Agents in Indian Fintech
Regulated industries are where agents need the most care. In lending and payments, the most promising near-term uses are internal: investigating disputes and failed transactions, assembling evidence for fraud reviews, preparing credit memos for human underwriters, and helping operations teams search policies. Customer-facing agents that move money or make credit decisions need strong human oversight, clear audit trails and explainability - themes regulators increasingly emphasise for AI in financial services.
Part 8: A Worked Example - A Refund-Investigation Agent
To make this concrete, here is how a well-scoped agent might handle one common support problem: "My refund hasn't arrived." The example is illustrative, but the structure applies to most first agents.
Swipe sideways to see the whole diagram.
| Step | What the agent does | Tool it uses | Guardrail |
|---|---|---|---|
| 1 | Reads the ticket and identifies the order and payment | Ticket system (read) | Stops and asks a human if no order is found |
| 2 | Looks up the refund status and timestamps | Payments database (read-only) | Never writes to payment records |
| 3 | Checks the bank or gateway response for the refund | Gateway status API | Retries at most twice |
| 4 | Compares the timeline with the policy and regulatory turnaround times | Policy knowledge base | Quotes only approved policy text |
| 5 | Drafts a reply with the status, reference number and next step | Response template | A human agent approves before sending |
Notice what the agent does not do: it doesn't issue a refund, change records or promise compensation. Those stay with people until the agent has proven reliable on hundreds of real cases. This is how trust gets built - one permission at a time.
Human-in-the-loop patterns
| Pattern | How it works | When to use it |
|---|---|---|
| Draft and approve | The agent prepares; a person approves every output | Early launches, customer-facing messages |
| Approve by exception | The agent acts alone on low-risk cases and routes uncertain or high-value ones to people | Once accuracy is proven on a category |
| Confirm before acting | The agent asks the user to confirm before any write action | Consumer products, anything involving money or personal data |
| Audit after the fact | People review a sample of completed tasks | Mature, low-risk, high-volume tasks |
Part 9: The Cost Question Nobody Asks Early Enough
Agents are expensive in a way that demos hide. A single task can involve many model calls, each reading the growing history of what the agent has done so far. Before building, estimate the cost per task and compare it with the value of the task.
- Count the calls. How many steps does a typical task take, and how much text does each step read and write?
- Price the humans too. Review time, escalations and monitoring are part of the cost.
- Compare with the alternative. If a simple workflow or a better form solves 80% of cases, the agent only needs to handle the rest.
- Watch latency. Users will wait for an agent that saves them an hour of work - not one that takes a minute to answer a simple question.
The teams that succeed treat cost per successful task as a product metric from day one, alongside quality. It's one of the clearest lessons from data-driven product management: measure what decides whether the product is worth running.
The Bottom Line
An agent is a model that chooses its own next step. That flexibility is powerful for genuinely open-ended work and wasteful for everything else. Start with a workflow, move to an agent only when the steps can't be known in advance, keep the scope narrow, measure success before launch, and keep humans in the loop for anything you can't undo. The teams that do this will be in the 60% of projects that survive.
๐ Key Takeaways
- An AI agent is a model that chooses its own next step; a workflow follows steps defined in code.
- Most 'agent' products should be workflows - use agents only when steps can't be known in advance.
- Start where mistakes are cheap and reversible, with narrow scope and minimal tool permissions.
- Define success and build an evaluation set before launch; measure task success, cost, escalations and harmful actions.
- Gartner expects 40%+ of agentic AI projects to be cancelled by 2027 - mostly for cost, unclear value and weak risk controls.
- In regulated industries, keep humans in the loop for anything that moves money or makes binding decisions.
Frequently Asked Questions
What is an AI agent?
An AI agent is a system where a language model decides, step by step, what to do next to reach a goal - which tool to call, what to look up and when to stop. Unlike a fixed workflow, the path isn't written in advance; the model chooses it at run time.
What is the difference between an AI agent and a workflow?
In a workflow, developers define the steps in code and the model fills in parts. In an agent, the model directs its own process and tool use. Anthropic's guide on building effective agents recommends workflows for well-defined tasks and agents only when steps can't be predicted.
Why do AI agent projects fail?
Gartner predicts more than 40% of agentic AI projects will be cancelled by the end of 2027, citing rising costs, unclear business value and weak risk controls. Common causes are building agents for problems that don't need them, no baseline to prove value, and trust-breaking mistakes.
How do you evaluate an AI agent?
Build a set of realistic tasks with known good outcomes and measure task success rate, cost and steps per task, escalation rate to humans, harmful or wrong actions, and how often users redo the agent's work.
Are AI agents safe to use with money or customer data?
They can be, with strict controls: minimal tool permissions, read-only access first, confirmation before any write action, limits on steps and spend, full audit logs and human approval for irreversible or high-value actions. In regulated industries, keep people in the loop for decisions that move money.
Sources
- Anthropic (2024). Building effective agents.
- Gartner (2025). Gartner predicts over 40% of agentic AI projects will be canceled by end of 2027.
- McKinsey (2025). The state of AI: Agents, innovation, and transformation.