AI & Automation

AI Agents Are Leaving the Demo Stage: What Businesses Should Actually Build

Everyone is talking about “agentic AI”. Here is a plain-English guide to what an agent really is, where it earns its keep, where it quietly burns money, and a 30-day pilot plan.

By · Published · Updated · 7 min read

A friendly white humanoid robot looking up at the camera

If you've opened LinkedIn in the last year, you've been told that “AI agents” will replace your support team, your analysts and possibly your coffee machine. The reality is more interesting, and far more useful, if you're willing to look past the marketing.

I build automation for businesses for a living, so this post is the version I'd give a founder over coffee: what an agent is, where it pays for itself, where it doesn't, and how to run a pilot that won't embarrass you in front of your customers.

First, what is an AI agent?

The cleanest definition comes from Anthropic's engineering team. They separate workflows, where an LLM and tools are orchestrated through predefined code paths, from agents, where the LLM dynamically directs its own process and tool use to get a task done.[1] In other words: a workflow follows a script you wrote; an agent decides the next step itself.

That distinction matters because most business problems do not need an agent. A fixed sequence like “read the invoice, extract the fields, check against the purchase order, post to the ledger” is a workflow. It is cheaper, faster and far easier to test. You reach for a true agent only when the path cannot be known in advance, such as “investigate why this customer’s payment failed and fix it”.

A humanoid robot sitting on a bench reading a tablet
Agents are good at reading, deciding and acting. The hard part is making them reliable.

Why is everyone talking about it now?

Two things changed. Models got much better at following multi-step instructions and calling tools. And the plumbing got standardised. The Model Context Protocol (MCP), an open standard for connecting AI applications to external tools and data sources, means you no longer write a bespoke integration for every model-and-system pair.[2] Connect your CRM, database or ticketing system once, and any MCP-compatible client can use it.

But hype has outrun results. Gartner predicts that over 40% of agentic AI projects will be canceled by the end of 2027, citing escalating costs, unclear business value and inadequate risk controls. The same analysts warn of “agent washing”, where vendors rebrand chatbots and RPA as agents.[3] That is not a reason to avoid agents. It's a reason to be disciplined about which ones you build.

  • 40%+ of agentic AI projects forecast to be canceled by end of 2027 (Gartner)[3]
  • 2 patterns to choose between: fixed workflows or autonomous agents[1]
  • 1 open protocol (MCP) to connect models to your tools and data[2]

Where agents genuinely earn their keep

The best candidates share three traits: the work is repetitive but needs judgement, the cost of a mistake is low or reversible, and success is easy to verify. In practice, that points to:

  • Support triage and first response. Classify the ticket, pull the customer’s order history, draft a reply, and have a human approve it.
  • Reconciliation. Matching M-Pesa statements, bank feeds and invoices, then flagging only the exceptions for a person.
  • Lead qualification. Reading inbound enquiries, enriching them, and routing them with a summary to the right salesperson.
  • Reporting. Pulling numbers from several systems each Monday and writing the first draft of the weekly summary.
  • Internal knowledge search. Answering “what’s our refund policy for corporate clients?” from your own documents (more on this in our RAG guide).

Where agents quietly fail

  • Anything irreversible without a human gate. Sending money, deleting records, emailing every customer.
  • Vague goals. “Improve our marketing” is not a task; “draft three subject-line variants for Friday’s newsletter” is.
  • Unbounded loops. An agent that retries forever is a very expensive way to do nothing. Put hard limits on steps, time and spend.
  • Messy source data. The agent will confidently reason over your wrong spreadsheet.

The guardrails that separate pilots from production

Giving a model the ability to act on your systems creates a new attack surface. The OWASP Top 10 for LLM Applications lists prompt injection first: untrusted text such as an email, web page or uploaded PDF can contain instructions that hijack your agent.[4] If your agent reads customer emails and can also issue refunds, you have built something an attacker can talk into issuing refunds.

The practical defences are unglamorous, and they work:

  1. Least privilege. Give the agent read-only access by default, and the narrowest write access for each specific tool.
  2. Human approval for consequential actions. Money, deletions and external messages go through a person until the agent has earned trust.
  3. Treat all retrieved content as untrusted. Never let text from an email or webpage become instructions.
  4. Log everything. Every tool call, input and output, so you can answer “why did it do that?” in under a minute.
  5. Build an evaluation set. 30 to 50 real examples with known-good answers, re-run on every change. Without it, you are guessing.
// A tiny policy layer between the model and your real systems.
const TOOLS = {
  lookupOrder:  { risk: 'read',  run: (args) => db.orders.find(args.orderId) },
  draftReply:   { risk: 'read',  run: (args) => templates.render(args) },
  issueRefund:  { risk: 'money', run: (args) => payments.refund(args) },
};

async function callTool(name, args, ctx) {
  const tool = TOOLS[name];
  if (!tool) throw new Error('Unknown tool: ' + name);

  // Hard budget so a confused agent can't loop forever.
  if (++ctx.steps > 12) throw new Error('Step budget exceeded');

  // Anything touching money waits for a human.
  if (tool.risk === 'money') {
    return queueForApproval({ name, args, requestedBy: ctx.runId });
  }

  const result = await tool.run(args);
  audit.log({ runId: ctx.runId, tool: name, args, result }); // always log
  return result;
}

A 30-day pilot plan

WeekFocusOutput
1Pick one process; measure today’s time and error rateA written baseline and 30–50 real examples
2Build the simplest version (usually a workflow, not an agent)Working prototype in a sandbox, read-only
3Run it in “shadow mode” beside your team and compare answersAccuracy report and a list of failure patterns
4Add approvals and logging, then go live for a small slice of trafficGo / no-go decision backed by numbers

The shadow-mode week is the one teams skip, and it's the one that saves you. Running the AI silently next to your humans shows you exactly where it's wrong before a customer ever sees it.

How to pick the first process to automate

Most failed agent projects fail at selection, not at engineering. Teams pick the most impressive-sounding workflow instead of the most automatable one. A good first candidate has four properties: the steps are repeated daily, the inputs are mostly digital (emails, forms, spreadsheets, tickets), a human can verify the result in seconds, and a wrong answer is cheap to undo.

Run each candidate through a simple filter before you write any code. Ask who does this today, how many times a week, how long it takes, and what happens when they get it wrong. If nobody can answer those four questions, the process is not understood well enough to automate, and an agent will only automate the confusion.

Candidate processVolumeCost of a mistakeGood first agent?
Triage incoming support emails into categoriesHighLow: a human still repliesYes
Draft replies to common customer questionsHighLow if a human approvesYes
Reconcile supplier invoices against purchase ordersMediumMedium: flag, don’t auto-payYes, with review
Approve loans or large refunds automaticallyMediumHighNot yet
Negotiate contracts with suppliersLowHighNo

Measuring whether an agent is actually working

An agent that “feels helpful” is not a result. Before the pilot starts, write down the baseline: how long the task takes now, how many are completed per person per day, and the current error rate. After launch, track the same numbers, plus three that are specific to agents.

  • Task success rate: the share of runs that finish correctly without a human fixing the output. Sample real runs weekly and grade them by hand; do not rely on the model grading itself.
  • Escalation rate: how often the agent correctly hands off to a person. A rate near zero usually means it is guessing when it should ask.
  • Cost per completed task: model calls, tool calls and the human review time together. An agent that saves 10 minutes but needs 8 minutes of checking is barely an improvement.

Keep a small evaluation set of 30 to 50 real cases, including awkward ones such as misspelled names, missing attachments and conflicting instructions. Re-run it every time you change a prompt, a tool or a model. This is the single cheapest habit that prevents silent regressions.

Frequently asked questions

Do we need our own data scientists to run an agent?

No. A useful first agent is mostly ordinary software engineering: connecting to your systems, validating inputs and logging every step. The model is one component. What you do need is someone who owns the process being automated and can say what “correct” looks like.

What does an agent cost to run?

Cost is driven by how many model calls each task needs and how much text goes into them. A simple triage agent can cost a fraction of a shilling per task; a research agent that reads many documents costs far more. Estimate this on a sample of real tasks during the pilot, and add a hard monthly spending cap so a loop bug cannot run up a bill.

Is it safe to give an agent access to customer data?

Only with the same discipline you would apply to a new employee. Give it the minimum permissions for the task, keep an audit log of everything it reads or changes, and make sure personal data handling meets Kenya’s Data Protection Act. If a provider processes data outside Kenya, check that your contract and notices cover it.

The bottom line

AI agents are real, and they're useful. They are also software, which means they need requirements, tests, monitoring and a rollback plan. Pick a narrow, boring, high-volume process, build the simplest thing that works, keep a human in the loop for anything that matters, and measure the result. That is how you end up on the right side of Gartner's forecast.

References & further reading

  1. Anthropic Engineering, “Building effective agents”. https://www.anthropic.com/engineering/building-effective-agents
  2. Model Context Protocol, official documentation and specification. https://modelcontextprotocol.io
  3. Gartner, “Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027” (press release, June 2025). https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027
  4. OWASP GenAI Security Project, “OWASP Top 10 for LLM Applications”. https://genai.owasp.org/llm-top-10/