AI workflows and deliveryN-0728 Nov 202611 min read

Is this AI workflow worth building? A worked calculation of cost per accepted outcome

Suppose a prototype agent resolves nineteen of twenty supplier invoice exceptions in a demonstration. The steering group then asks two questions: what will the model cost per invoice, and is it true that most AI projects fail? Both have answers, and neither decides anything. The model costs a few cents per case, and the failure statistics describe other companies’ surveys. The question that decides is what one correctly resolved case costs once the wrong ones are paid for, compared with the same figure for the clerks who do the work today.

I call that number cost per accepted outcome and work one case through the whole calculation. In it the plan clears my bar by under three percentage points, which is the more useful finding.

The often-quoted failure rates are surveys of opinion and one forecast, each with its own definition of success. What they share is that projects stop when nobody can show a measured value, and the first cause on RAND’s list is a misunderstood problem. Both argue for writing the value down before the build.

What the commonly quoted failure rates actually measured
Source What was measured What it is used to claim What it supports
MIT NANDA, “The GenAI Divide”, July 2025 52 interviews, 153 survey responses, a review of more than 300 public initiatives. For task-specific tools: 60% of organizations investigated, 20% piloted, 5% “successfully implemented”, where success means users or executives remarked on a sustained productivity or profit-and-loss effect “95% of AI projects fail” Few respondents could point to a measured financial effect by mid-2025. The report calls its figures “directionally accurate”
RAND, root causes of AI project failure, August 2024 65 interviews about why projects fail. The “more than 80 percent” figure is quoted from a 2022 magazine article “RAND found that 80% fail” A ranked list of causes. The first is misunderstanding which problem needs solving
S&P Global Market Intelligence, as reported by CIO Dive, March 2025 More than 1,000 respondents. 42% of companies said they had abandoned most of their AI initiatives, up from 17% a year earlier “Failure is rising” Self-reported abandonment rose. Nothing about why, or about any one kind of project
Gartner, as reported by SD Times, June 2025 A forecast: over 40% of agentic AI projects cancelled by the end of 2027, citing cost, unclear value and weak risk controls A measured cancellation rate An analyst’s expectation, with three named reasons
McKinsey state of AI 2026, as reported by The Register, August 2026 1,719 respondents. 37% attribute any profit impact to AI, flat on 2025 “Two thirds get no return” A minority of respondents report a profit effect they attribute to AI

The case: 4,000 invoice exceptions a month

The case is constructed for this article. No figure in it comes from a real company.

About 4,000 supplier invoices a month fail the match against purchase order (PO) and goods receipt. A clerk resolves each exception: pay, short-pay and request a credit note, query the supplier, or route to the buyer. The proposal is an agent that does this in eight steps, from reading the invoice to posting and notifying. A second component, the flagger, scores each finished case and sends the risky ones to a person. Figure 1 shows a month’s cases through that design, with the counts the calculation produces.

flowchart TD
  Q["Exception queue<br/>4,000 a month"] --> A["Agent, 8 steps"]
  A --> F{"Flagger: risky?"}
  F -->|"flagged, 1,006"| R["Reviewer, 6 min"]
  F -->|"not flagged, 2,994"| P["Posted"]
  R -->|"error seen, 623"| H["Clerk redoes the case"]
  R -->|"passed, 383"| P
  P -->|"correct, 3,135"| OK["Accepted: 3,758"]
  H --> OK
  P -->|"wrong, 242"| X["Escaped error"]
Figure 1 Of 4,000 cases, the 242 that matter most are the wrong ones that reach posting, most of them without ever being flagged.

The inputs, with where a real project would measure each:

Id Input Value Source in a real project
N Exceptions per month 4,000 Queue statistics
M1 Clerk time per case 12 min at €36/h, so €7.20 Time study, payroll
M2 Share of manual resolutions that are wrong 3% Audit sample
E1 Cost of an ordinary escaped error €15 Rework time
E2 Share of escaped errors that are severe 1% Loss records, judgement
E3 Average loss of a severe error €2,000 Finance owner
K Steps in the workflow 8 The design
R Per-step reliability 97% Labelled evaluation
U Model cost per case €0.14 Token counts, price list
X Fixed cost per month €6,000 Build over 24 months, plus operations
FR Flagger recall 80% Labelled pilot cases
FP Flagger false-flag rate 10% Labelled pilot cases
V1 Review of a flagged case 6 min, so €3.60 Pilot time study
V2 Reviewer catch rate on flagged errors 90% Seeded errors

U assumes 50,000 input and 4,000 output tokens per case at $2 and $10 per million (Claude Sonnet 5.5), with a dollar treated as a euro. X is €96,000 of build over 24 months plus €2,000 a month of operations.

Cost the process you already have

The current process must be costed the same way, errors included. The clerks cost 4,000 × €7.20 = €28,800 a month. At 3%, 120 resolutions are wrong. An escaped error costs on average 0.99 × €15 + 0.01 × €2,000 = €34.85, of which €20 is the tail, so errors add €4,182. That is €32,982 for 3,880 accepted outcomes: €8.50 each, against the €7.20 a cost-per-case view reports.

Compound the reliability, then price what escapes

A workflow needs every step to work on the same case. If steps fail independently, end-to-end success is per-step reliability raised to the number of steps.

Per-step reliability 5 steps 8 steps 12 steps
90% 59.0% 43.0% 28.2%
95% 77.4% 66.3% 54.0%
97% 85.9% 78.4% 69.4%
99% 95.1% 92.3% 88.6%

At 97% over eight steps the agent gets 78.4% of cases right, so 865 of 4,000 contain an error. A twenty-case demonstration would show about sixteen correct; nineteen turns up about one time in twenty by chance. The τ-bench paper (June 2024) measured the same multiplication as pass^k, and Anthropic’s guide to agent evaluations puts it in one line: “If your agent has a 75% per-trial success rate and you run 3 trials, the probability of passing all three is (0.75)³ ≈ 42%.” No benchmark is the invoice workflow, so per-step reliability has to be measured on real cases.

What published agent benchmarks report

The τ-bench leaderboard shows a best single-pass score of 87.9% on the retail, airline and telecom set and 55.2% on the newer banking set. Stanford’s AI Index 2026 reports agents going from 12% to about 66% on OSWorld and still failing roughly one attempt in three on structured benchmarks. METR’s Frontier Risk Report (19 May 2026) put the public frontier’s 50% time horizon near 12 hours and its 80% horizon near 1.5 hours, the same gap between “usually” and “reliably” in another unit. On business tasks, CRMArena-Pro (May 2025) found about 58% success in single-turn tasks and 35% in multi-turn ones, and TheAgentCompany (revised September 2025) found its best agent finishing 30% of tasks alone.

A caught error costs a manual redo, €7.20. An escaped error, wrong and posted, I price at the clerks’ €34.85, an assumption I test below. Without the tail, an agent with no review looks 21% cheaper than the clerks. With it, it is 38% dearer, because 865 escaped errors include 8.7 severe ones. The 1% severe share is the most consequential input and the one with the least evidence behind it.

Review is a measured input, not a remedy

Review has a cost per case and a catch rate, the share of wrong cases the reviewer recognizes, and published catch rates are low. A systematic review of automation bias found wrong advice from decision support made a wrong decision 26% more likely. The closest study to a reviewer of mostly correct output is a 2026 working paper by Fang and colleagues, summarized by the HBS AI Institute: seventeen pharmacy students checking AI-written summaries against sources for 12 weeks detected about 24% of naturally occurring errors. Planting three errors per summary raised that to about 31%; planting one in every three summaries lowered it to about 20%. It is one small study in another field, and the only one that measures what V2 needs.

So the flagger picks cases, described by two rates measured against labelled cases: recall (FR), the share of wrong cases it flags, and the false-flag rate (FP), the share of correct cases it flags anyway. Husain and Shankar use the same pair for any automated evaluator. The flagger sends 1,006 cases to review, and the reviewer, told why each was flagged, catches 90% of the wrong ones. That 90% is my assumption, far above what Fang measured for unprompted review.

One function, three designs

The method fits in one runnable function.

Cost per accepted outcome, one month
def cost_per_accepted(n, steps, r, unit, fixed, recall, fpr,
                      review, catch, redo, escape):
    errors = n * (1 - r ** steps)        # cases with at least one failed step
    flagged = recall * errors + fpr * (n - errors)
    caught = recall * catch * errors     # flagged, and the reviewer saw it
    escaped = errors - caught
    total = (n * unit + fixed            # running the agent
             + flagged * review          # review time
             + caught * redo             # caught cases redone by hand
             + escaped * escape)         # rework and losses found later
    return total / (n - escaped)

escape = 0.99 * 15 + 0.01 * 2000         # 34.85 per escaped error

manual = cost_per_accepted(4000, 1, 0.97, 7.20, 0, 0, 0, 0, 0, 0, escape)
agent = cost_per_accepted(4000, 8, 0.97, 0.14, 6000, 0.80, 0.10,
                          3.60, 0.90, 7.20, escape)
print(round(manual, 2), round(agent, 2))  # 8.5 6.15

escaped is what review failed to remove: recall times catch rate, 0.72, is the share removed. The denominator is accepted outcomes; dividing by n would hide every escaped error. No review sets recall and false-flag rate to 0; reviewing everything sets both to 1, with a shorter 4-minute review.

Design Reviewed Escaped Severe Monthly total Per accepted outcome Against manual
Manual process today – 120 1.2 €32,982 €8.50 –
A. No review 0 865 8.7 €36,706 €11.71 +38%
B. Review all, catch 30% 4,000 606 6.1 €39,131 €11.53 +36%
B. Review all, catch 70% 4,000 260 2.6 €29,564 €7.90 −7%
C. Flagged, recall 60% 833 398 4.0 €26,788 €7.44 −13%
C. Flagged, recall 80% 1,006 242 2.4 €23,105 €6.15 −28%
C. Flagged, recall 95% 1,135 125 1.3 €20,343 €5.25 −38%

Design C at 80% recall is the plan: €560 for the model, €6,000 fixed, €3,620 of review, €4,484 of redo and €8,441 of escaped errors. The model is 2.4% of the total; escaped errors are 37%. The saving is 28%, but the plan has 2.4 severe errors a month where the clerks have 1.2, and its margin over a 25% target is under three points.

Review of everything costs €9,600 a month, more than the agent, and at the 24% catch rate Fang measured it costs more than no review. I would build the flagger first and use full review only to collect its labels.

Figure 2 shows how fast the margin goes when per-step reliability moves: design A above, design C below, the manual €8.50 flat.

xychart-beta
  title "Cost per accepted outcome by per-step reliability"
  x-axis "Per-step reliability over 8 steps" ["93%", "94%", "95%", "96%", "97%", "98%", "99%", "99.5%"]
  y-axis "EUR per accepted outcome" 0 --> 32
  line [30.36, 25.01, 20.15, 15.73, 11.71, 8.04, 4.70, 3.13]
  line [11.05, 9.90, 8.70, 7.45, 6.15, 4.81, 3.42, 2.72]
  line [8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50]
Figure 2 One point of per-step reliability is worth about 1.30 euros per accepted outcome with flagged review, and no review beats the clerks only above 97.9%.

The plan needs 96.8% per step for a 25% saving and 95.2% to match the clerks. A team that plans to remove review “once the agent is good enough” can read the figure off the chart: 98.5% per step, 88.5% end to end.

One escaped error, from cause to loss

The averages hide how an error escapes. Invoice INV-20418 bills 480 boxes at €21.50, €10,320. PO 4500017, line 10, orders 400. The correct resolution is to short-pay and request a credit note for €1,720.

At step 4 the agent searches goods receipts by supplier and material where it should search by PO line, finds 400 boxes against this PO and 80 received against another order, and adds them. The record it hands on (illustrative) looks like this.

Case record EX-2291, as the flagger receives it
{
  "case": "EX-2291",
  "invoice": { "number": "INV-20418", "quantity": 480, "total": 10320.00 },
  "po_line": { "po": "4500017", "line": 10, "quantity": 400 },
  "exception": "quantity_variance",
  "goods_receipts": [
    { "doc": "GR-88140", "po": "4500017", "line": 10, "quantity": 400 },
    { "doc": "GR-88163", "po": "4500021", "line": 20, "quantity": 80 }
  ],
  "received_total": 480,
  "resolution": "pay_as_invoiced",
  "reason": "Over-delivery received in full. Receipts total 480.",
  "confidence": 0.93
}

Every later step is correct given its input: step 6 chooses pay_as_invoiced because received equals invoiced, step 7 posts €10,320. The flagger, a second model call scoring the record, sees a consistent record with high confidence and does not flag. The €1,720 surfaces months later in a statement reconciliation, or never.

Three assumptions broke. One retrieval error made five later steps wrong together. The flagger judged the agent’s own record, so it shared its blind spot. And the error was severe because it was plausible: a garbled extraction gets flagged, a tidy wrong sum does not.

The response is to give the flagger evidence the agent did not produce. Here a deterministic rule would do: every goods receipt must carry the invoice’s PO and line. More generally the flagger should re-fetch by key and recompute totals, and postings above a set amount should go to review regardless, with approval bound to the exact parameters. If severe errors are flagged at only 50%, the saving falls from 28% to 13%.

Which inputs move the answer

The table changes one input at a time from the plan (€6.15, a 28% saving) and gives where the saving falls to 25% and to nothing.

Input Plan Worse case Result Saving is 25% at Saving is zero at
Per-step reliability (R) 97% 96% €7.45, 12% 96.8% 95.2%
Reviewer catch rate (V2) 90% 70% €7.44, 12% 86.4% 54.7%
Flagger recall (FR) 80% 70% €6.78, 20% 76.4% 44.7%
Severe share (E2) 1% 2% €7.43, 13% 1.18% 2.84%
Volume (N) 4,000 2,000 €7.75, 9% 3,502 1,617
False-flag rate (FP) 10% 20% €6.45, 24% 17.6% 88%
Model cost per case (U) €0.14 €0.56 €6.60, 22% €0.35 €2.35

One point of reliability, twenty points of catch rate or one point of severe share each take away more than half the saving, and nobody has measured the severe share. Quadrupling the model price costs €1,680 a month, the same as losing nine points of recall, so the model should be chosen for its effect on R and FR and its price checked afterwards.

The pilot, and the thresholds that mean stop

Four weeks of shadow mode measure most inputs: the agent processes the same cases as the clerks and posts nothing, and a senior clerk adjudicates every disagreement. About 865 wrong agent cases fix recall within about 2.7 points at 95% confidence. The seeding rate used in the pilot should be the one kept in production, since Fang found it changes detection.

The stop thresholds are written before the pilot, from the sensitivity table. Figure 3 puts them in order.

flowchart TD
  S["Shadow pilot, 4 weeks"] --> C{"Under 10% of cases<br/>of unseen types?"}
  C -->|"no"| E["Extend evaluation set, rerun"]
  C -->|"yes"| R{"Per-step reliability<br/>at least 96.8%?"}
  R -->|"no"| X["Stop"]
  R -->|"yes"| F{"Recall x catch rate<br/>at least 0.69?"}
  F -->|"no"| X
  F -->|"yes"| G{"Flag rate<br/>at most 31%?"}
  G -->|"no"| X
  G -->|"yes"| M{"Cost at least 25%<br/>under manual?"}
  M -->|"no"| X
  M -->|"yes"| B["Build, with a loss cap"]
Figure 3 Four early exits use single measurements, and the last test recomputes the cost with every measured input before anything is built.

Each threshold assumes the other inputs at plan, so the last diamond reruns the function with everything measured. The first diamond is not a stop: if over one case in ten is of a type the evaluation never covered, the pilot measured a different population. The 25% margin absorbs errors sampling intervals omit: label errors, an untypical month, reviewers who behave differently when watched.

What the pilot cannot give is the tail. About nine severe errors are expected in the month; if nine are observed, the 95% interval for the severe share runs from 0.5% to 2.0%, around a bar at 1.18%. So the loss is capped by design, with a ceiling on any amount posted without review, which turns E3 from an estimate into a parameter the finance owner sets.

Where the method misleads

Most of its known errors flatter the plan.

Independence. EX-2291 shows a cascade; failures can also cluster in a few hard cases. The measured end-to-end rate replaces the product.

An average for the tail. Payables losses include a few very large items, such as a duplicate payment or a payment to a changed bank account, which a mean understates.

Catch rate drifts. Seeding known errors into the review queue permanently is the only way I know to keep V2 a measurement, and review hours are a capacity constraint to plan like any other.

“Accepted” means “not reversed”. If the agent’s errors are harder to find, the method flatters it; a random audit of unflagged cases is the only check.

Hours are not money until released. The plan uses about 225 clerk hours where the manual process uses 800. The saving exists only if the other 575 are redeployed or no longer paid for.

A number that can be argued with

Under the stated inputs, flagged review brings a correctly resolved exception from €8.50 to €6.15, provided per-step reliability stays above 96.8%, flagger and reviewer together remove at least 69% of errors, and no more than about one escaped error in 85 is severe. A pilot can test the first two; the third needs a loss cap. The costliest errors look right to the agent, to a flagger built from the same evidence and to a tired reviewer, so I would show the severe-share row to the finance owner first.

Sources

Work with me

Working on this problem? I’m glad to compare notes.

Tell me about the problem