← Insights

AI agent KPIs: how to measure and run an agentic workflow

A firsthand guide to AI agent performance metrics, from backlog and service quality to tool failures, cost and a scorecard your team can use.

Bernhard Huber ·

Why we built the dashboard

We built a KPI dashboard for an operation where AI agents already had defined jobs. They moved delivery work forward, helped handle customer requests, ran quality checks and monitored the agent fleet. We could see how much work they completed. Then we reviewed their run logs and found repeated runs that did no work, slow updates to the work board, a broken connector and agents running old releases. Our monitoring focused on volume, which gave the team little visibility into those problems.

In one snapshot, the operation completed more than 600 items in a week while its backlog grew by more than 170. The delivery agent was also shipping well above its own target. The agent and organisation figures covered different queues. Read together, they showed that strong output in one role could coexist with growing work across the operation. Figures from the internal example are rounded.

What are AI agent KPIs?

AI agent KPIs measure whether an agent-supported workflow is delivering its intended business outcome and where its owner should intervene. We work at three levels. Business outcomes show whether the operation is keeping up. Role metrics show how an agent is handling its assigned work. Operating metrics expose failures, delay and cost that can accumulate even as work gets done.

A growing backlog is a reason to investigate. Rising arrivals point to demand or intake. Aging cases clustered at a handoff point to a bottleneck. Errors concentrated in one tool give the technical owner somewhere to start. Put those measures together so a review ends with a decision.

1. Measure the workflow before scoring each agent

Count arrivals, completions and open work for the same queue and time window. Decide how you handle reopened, cancelled and transferred work. If the delivery agent owns a priority queue and the organisation tracks all open work, state both scopes on the dashboard.

Suppose 160 items enter a queue and 120 leave it. That can be a record week for completions and still add 40 open items. Our dashboard withholds a projected finish when the backlog is growing. A forecast for a fixed batch is a different calculation because the scope stays fixed.

Track the age of unfinished work alongside throughput. A steady completion count can hide a group of items that have stopped moving. The Kanban Guide also distinguishes work in progress, which has started, from a wider backlog that can include work nobody has picked up. Define started and finished before trying to compare teams. The Kanban Guide

The queue grew during a strong week

Work received160
Work completed120
Net backlog change+40
Illustrative week. The queue ends 40 items larger, even with 120 completions. Assumes no other changes to the queue.

2. Give each role measures that fit its job

RoleMeasures
DeliveryItems shipped per day and open priority work
Customer operationsMedian and p90 for first response and resolution
Quality assuranceVerdicts per day and tool error rate
Work coordinationStuck holds and total time spent stuck
Technical operationsVariable operating cost and CI failure rate
Fleet operationsAgent availability and maximum release staleness

For customer operations, we measure first response in working hours and resolution in working days. A median of two working hours and a 90th percentile (p90) of twelve tells two stories about the same queue. A typical response is quick, while the slow end of the distribution deserves attention.

The median uses cases that received a reply or reached resolution. The p90 also includes the elapsed wait for cases still unanswered or open, so long waits can show up before a case closes.

Google’s SRE guidance uses latency distributions to make slow requests visible and recommends alerting on conditions that warrant a human response. The same reasoning applies to a queue of customer cases. With small samples, show the count and inspect the oldest cases directly. Google SRE

The median looks healthy. The slower cases breach the limit.

Median first response · working hours2
p90 first response · working hours12
Illustrative first-response distribution. The median is two hours against a four-hour target. The p90 is twelve hours against an eight-hour limit.

3. Diagnose failures and verify quality

Start by distinguishing an expected idle check from a run that did nothing while actionable work was waiting. Show failed tool calls alongside total calls and inspect which tools and work items were affected. For blocked work, track both how many items are stuck and their accumulated wait. For deployments, track availability alongside how long agents have been behind. An agent can be available and still be missing the release that fixes a recurring problem.

A dashboard spike should lead to a run you can inspect. Record a case identifier, agent version and tool outcome so you can connect the affected business item to the failed step. OpenTelemetry shows how an agent invocation can be traced alongside the model and tool calls inside it. A trace helps explain the execution. Check the business system to verify the result. OpenTelemetry

QA verdict volume tells you how many checks ran. To learn whether the verdicts were right, sample them and verify the underlying outcome. For a support agent, a test could check that an eligible request was correctly resolved in the case system and that an ineligible request was escalated. Include real failure cases in a regression suite and run it when the model, prompt or tools change. Anthropic’s evaluation guide covers this distinction between checking what happened during a run and checking the final outcome, alongside the separate role of production monitoring. Anthropic

Choose the denominator before comparing releases. Say tool errors rise from 2 out of 100 calls to 8 out of 1,000. The error rate fell from 2% to 0.8%, but more calls failed. Check how many distinct cases were affected and whether retries absorbed the failures or left work unfinished. For an idle-run metric, count eligible scheduled runs. Keep intentional checks on empty queues visible separately from runs that missed work.

4. Set a baseline and attach an action to each threshold

Our initial baseline period was 14 days. The dashboard could show a measured value while collecting data or waiting for an owner to set a target. Choose a period based on case volume and demand patterns. A weekly campaign cycle or month-end peak can change what counts as normal. An existing customer service commitment can give you a threshold from day one.

Separate the target for typical performance from the point where the owner needs to intervene. A p90 breach might prompt the queue owner to inspect the oldest cases and reassign work. Sustained tool failures might prompt the technical owner to review traces and route affected cases for manual handling. Decide who receives the signal and what they can change before turning on alerts.

For the business case, compare cost per verified completion for comparable cases. Count the relevant software and model costs, reviewer time and rework. Track case mix and quality alongside the cost figure. A fall in cost per completion can reflect an easier batch or more work left for someone else.

Illustrative example. A workflow costs €100 in software and model usage, €360 in review and €40 in rework. For 100 verified completions, that comes to €5 per case. If review and rework add €200 while software and model costs fall by €50, the total rises to €6.50 per case at the same volume. This is the trade-off a model-spend dashboard alone would hide.

The cheaper model configuration raises cost per case

Before€5.00
After€6.50
Software and modelHuman review and rework
Illustrative costs per 100 verified completions. Software and model spend falls from €100 to €50; review and rework rise from €400 to €600.

5. From an alert to a decision

A worked example. On Monday, the first-response median is two working hours and the p90 is twelve. The weekly backlog is up by 40. The owner has three different questions: which customers are still waiting, whether the same issue explains the delay and the queue growth, and whether the agent can keep handling other work safely.

Start with the work item

Open the oldest unanswered cases and group them by status, queue and last successful transition. A cluster of cases waiting after the same tool call points to a shared dependency. Cases scattered across queues with no owner point to routing. A widespread rise in arrivals alongside stable completion times suggests a capacity or intake problem. Each explanation calls for a different intervention.

Name the intervention and the recovery check

Suppose the oldest cases are waiting for a failed sync. Route those cases to a person, correct the sync and replay only the affected work. Check the business records for duplicate or missing updates. Then follow the count of aging cases and the p90 over the next review window. A lower tool-error rate confirms that the sync is behaving better. The queue measures show whether customers actually got a reply.

Measure the cost of getting it wrong

If an agent closes easy cases and hands off hard ones, an agent-only resolution rate can rise while reviewer workload increases. Count one final outcome per case, including cases resolved by a reviewer. Track escalations, repeat contact and reopened cases alongside throughput. A higher escalation rate can be appropriate when the case mix changes, so compare like with like before changing the threshold.

6. Instrument the workflow before scaling it

Decide where each number comes from

Use the work system for case state and completion, the agent runtime for attempts and tool calls, and billing and labor records for cost. Link the signals with a case identifier and distinguish one case from its multiple runs or retries. A retry belongs in tool reliability and cost. The verified closure counts once in completed work.

Publish a timestamped snapshot so the queue, agent and cost views can be read together. If billing arrives a day later than workflow events, label its coverage instead of joining different periods silently. Keep enough history to compare equivalent windows, and retain the case-level evidence an owner needs for investigation.

Write a metric definition someone else can reproduce

For first response, specify the clock, working calendar, start event, qualifying reply, window, and treatment of open cases. State how you handle automated acknowledgments and transferred cases. Add sample size and data freshness. With no events or stale source data, mark the metric unavailable or stale so the owner can tell the difference between missing evidence and a measured zero.

Roll out in stages

During replay, use historical cases to verify the definitions and identify errors your scorecard should catch. In shadow mode, compare what the agent proposes with what operators actually do and count review time. In live use, assign an owner, check the oldest cases alongside the dashboard, and decide what would pause or expand the workflow. Keep the original baseline and record changes to the model, workflow or measurement rules so the next comparison can account for them.

A starter scorecard for customer operations

Example review rule. If the p90 first response exceeds eight working hours, the queue owner reviews the oldest unanswered cases and assigns any unowned ones. If the median exceeds four hours while the p90 stays within its limit, the owner checks whether the typical case is slowing down. Treat these numbers as illustrative and use your own service commitments.

KPIMethodFirst action when the threshold is breached
Weekly backlog changeSubtract resolutions from arrivals over seven days. Account for reopenings, cancellations and transfers.Group open cases by age and state to locate the bottleneck.
First responseWorking hours from receipt to first reply. Track median and p90.Review the oldest unanswered cases and check routing.
ResolutionWorking days from receipt to verified resolution. Track median and p90.Inspect dependencies in the oldest open cases.
Tool error rateFailed calls divided by all calls in the same window.Find the failing tool and identify the affected cases.

Assign a named owner to each measure and record its source, time window and trigger. Review a small sample of cases alongside the weekly numbers. In the first week the KPIs disagree, see whether the owner can find the affected work and decide what to do. That is the test of a KPI-driven agentic setup.

Sources and how we used them

  • Workflow throughput, work in progress, item age and cycle time. The Kanban Guide
  • Latency distributions and alerts tied to a human response. Google SRE
  • Connecting an agent run to model and tool calls in a trace. OpenTelemetry
  • Outcome-based evaluation, regression tests and production monitoring. Anthropic