AI

AI Agents Explained: What They Are, When to Build One, and Why So Many Projects Fail

August 11, 2026
10 min read

"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
0:00
10:43

Cover: AI agents explained - what they are, when to build one and why many projects fail

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.

62% of organisations are at least experimenting with AI agents (McKinsey, The State of AI, 2025)
40%+ of agentic AI projects predicted to be cancelled by end-2027 (Gartner, June 2025)
โ‰ค10% of organisations report scaling agents in any single function (McKinsey, 2025)

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.

Who decides the steps: chatbot, workflow, agentA chatbot is steered by the user one message at a time, a workflow follows steps the developer wrote in code, and an agent lets the model decide the steps at run time.Chatbot or assistant: the user decidesOne message at a time. Best for questions and drafting.Workflow: the developer decides, in codePredefined code paths, tools in a fixed order. Best for well-defined, repeatable tasks.Agent: the model decides, at run timeChooses its own tools and path, so it costs more and varies more. Use it only when you cannot write the stepsdown in advance.
The only real difference between the three: who decides the path.
Chatbot / assistantWorkflowAgent
Who decides the steps?The user, one message at a timeThe developer, in codeThe model, at run time
Uses tools?SometimesYes, in a fixed orderYes, chosen as it goes
PredictabilityHighHighLower - paths vary
Cost and latencyLowLow to mediumHigher - many model calls
Best forQuestions, draftingWell-defined, repeatable tasksOpen-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 agent loopGoal, plan, act, observe, then repeat or stop. The loop returns to plan until the goal is met, a human is needed, or a limit is hit.1. GoalA task is given2. PlanDecide thenext step3. ActCall a tool4. ObserveRead theresult5. Repeator stopGoal met,needs ahuman, or limithitNot done and within limits: back to Plan
Almost every agent is this loop. The guardrail is the stop condition: a limit on steps, time or cost.
1. Goal

The user (or a system) gives a task: "Find why this customer's refund failed and draft a reply."

2. Plan

The model decides the next step - for example, "look up the transaction".

3. Act

It calls a tool: a database query, an API, a search, a calculator.

4. Observe

It reads the result and updates what it knows.

5. Repeat or stop

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:

1

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.

2

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?"

3

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.

4

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 caseWhy it fitsHuman checkpoint
Support ticket investigationPath depends on the issue; many lookupsAgent drafts, human sends
Research and competitive analysisOpen-ended; reversible outputHuman reviews conclusions
Internal analytics questionsAgent writes and runs queries, explains resultsHuman checks before decisions
Code changes in a test environmentTests show success or failure clearlyHuman reviews before merging
Fraud or dispute triageVaried evidence to gatherHuman 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:

MetricWhat it tells you
Task success rateDid it actually complete the goal correctly?
Steps and cost per taskWhether it's economically viable at scale
Escalation rateHow often it hands over to a human - too high means little value, too low may mean overconfidence
Harmful or wrong actionsThe guardrail metric. Should be close to zero for anything irreversible
User override rateHow 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.

Refund-investigation agent, step by stepFive steps from reading the ticket to a drafted reply, each with its tool and guardrail; a human approves before anything is sent.1. Read ticketTicket system (read). Asks ahuman if no order is found.2. Check refund statusPayments database,read-only. Never writes.3. Check gatewayGateway status API. Retriesat most twice.4. Compare with policyPolicy knowledge base.Quotes approved text only.5. Draft replyResponse template. A humanapproves before sending.
The refund agent reads and drafts. It never issues the refund; a person approves every reply.
StepWhat the agent doesTool it usesGuardrail
1Reads the ticket and identifies the order and paymentTicket system (read)Stops and asks a human if no order is found
2Looks up the refund status and timestampsPayments database (read-only)Never writes to payment records
3Checks the bank or gateway response for the refundGateway status APIRetries at most twice
4Compares the timeline with the policy and regulatory turnaround timesPolicy knowledge baseQuotes only approved policy text
5Drafts a reply with the status, reference number and next stepResponse templateA 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

PatternHow it worksWhen to use it
Draft and approveThe agent prepares; a person approves every outputEarly launches, customer-facing messages
Approve by exceptionThe agent acts alone on low-risk cases and routes uncertain or high-value ones to peopleOnce accuracy is proven on a category
Confirm before actingThe agent asks the user to confirm before any write actionConsumer products, anything involving money or personal data
Audit after the factPeople review a sample of completed tasksMature, 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.

AM

Adarsh Mohan

Director of Product Management. 11+ years building products from 0 to scale across fintech, payments, risk, and consumer tech in India.