A pilot can appear cheap if its budget counts only accepted outputs. Failed requests, unusable responses and repeated tool calls may still consume resources, while staff spend time reviewing and repairing them. The budget needs to account for that work without assuming how every provider bills a failure.
This article proposes a more complete pilot budget and attempt ledger. Its arithmetic is entirely fictional. The method separates observed evidence from estimates and keeps uncertain outcomes in the accounting, rather than declaring a fixed cost saving or price for a real deployment.
Define the accepted task and the unit of attempted work
Choose the business outcome counted as accepted: validated fields, a reviewed summary or another verified deliverable. A successful provider response may still be discarded because it used the wrong source. A failed workflow may have completed an external operation before its response was lost.
Track initial requests, model retries, tool retries and review activities separately. They are not necessarily the same billing unit. A workflow execution, API request and business task can each have different counts; the integration owner should explain the relationship for the selected environment.
Reconcile charges from actual provider reports or invoices where available. Usage records can support an estimate, but do not prove the billed amount when the relevant price, tier or failure treatment is unknown. Keep those gaps visible rather than assuming every failed attempt costs zero.
Preserve execution evidence without treating alerts as invoices
n8n's Error Trigger documentation describes linked error workflows for automatic failures, with execution details depending on the failure and saved execution context. It does not supply a complete billing ledger, and manual tests have different trigger behaviour. Use alerts to locate the affected operation, then reconcile the actual records. Source: n8n Error Trigger
Keep task and attempt references stable. Record whether a failure happened before submission, during provider processing, after a possible tool action or during validation. Those stages affect both retry risk and the evidence available for costing.
Do not assume a missing execution reference means no work occurred. A trigger-stage failure or unsaved execution may provide limited evidence. Mark the cost or outcome unresolved and assign a reconciliation owner.
Complete pilot budget and attempt ledger
Use this complete hypothetical budget for one hundred input tasks. Seventy are accepted on the first attempt, twenty are accepted after one retry and ten remain unresolved. The fixture assumes a stated R0.50 model charge for each of its 120 attempts solely for arithmetic; it is not a provider price or general failure-billing rule.
| Cost category | Fictional evidence and count | Fixture amount | Accounting check |
|---|---|---|---|
| First attempts accepted | 70 × R0.50 | R35 | Part of the initial 100 calls |
| First attempts unusable or unresolved | 30 × R0.50 | R15 | Includes twenty later repaired and ten still unresolved; not added again as a separate failure surcharge |
| Model retries | 20 × R0.50 | R10 | Additional calls associated with the original task references |
| Ordinary tool work | Approved fixture ledger subtotal | R9 | Separate from model charges |
| Retried tool work | Approved repeated-operation subtotal | R3 | Identify why each retry was permitted |
| Extraction and storage | Fixture component subtotal | R8 | No claim that these are included in model price |
| Human review and repair | Owner-approved fictional cost treatment | R25 | Include discarded-output review and unresolved handling |
| Total | R35 + R15 + R10 + R9 + R3 + R8 + R25 | R105 | Accounts for all fixture attempted work |
Accepted tasks total 70 + 20 = 90. Allocating the full fixture cost across those accepted tasks gives R105 ÷ 90, approximately R1.17 per accepted task. The ten unresolved inputs remain visible; this calculation does not claim they were completed or that their future repair will cost nothing.
The attempt ledger stores task reference, attempt reference, stage, operation, outcome, accepted or discarded status, observable usage, charge source, estimated or confirmed cost, retry reason, prior-outcome check and reviewer. Link repeated work to the original task so it cannot disappear from the budget or be counted twice.
Scenario range: hold initial model calls at R50, ordinary tools at R9 and extraction/storage at R8. Let model retries vary from ten to forty calls at the fictional R0.50 rate, repeated tools from R3 to R9 and review from R20 to R40. The resulting planning totals are R95 to R136. These are explicit scenarios, not a statistical forecast or current quote. Accepted-task counts in those scenarios need their own evidence before calculating unit cost.
Acceptance fixtures: normal first-pass success; unusable model output; provider failure with unknown billing treatment; permitted retry; uncertain external action; duplicate job submission; and incomplete usage records. Verify that the ledger preserves all attempted work and does not assume a failed response means no action occurred.
The budget is ready when cost categories, evidence gaps, scenario assumptions and stop conditions have owners. A final pilot result requires actual readback and reconciliation, not the fictional totals above.
Include orchestration capacity and recovery work
n8n's queue-mode documentation describes workers executing queued workflows and writing results to the database. That supports locating execution state and understanding resource use, but does not establish the billing unit or cost of every worker failure. Review the selected hosting and platform arrangement separately. Source: n8n queue mode
A retry can consume worker time, provider capacity and review effort even where one component has no extra charge. Record those resource effects for the capacity plan as well as the money budget. A pilot can stay within a processing-price estimate while creating an unmanageable review backlog.
Set a permitted retry cap and a reconciliation route. Repeating an uncertain write can create a second business effect, so the owner must establish the first outcome before another attempt. A budget allowance is not action authority.
Compare processing discounts with whole-task cost
OpenAI's Batch guide documents asynchronous processing with a 50% processing-price discount compared with synchronous APIs. That concerns a component and selected path; it does not determine retry, review or accepted-task cost for the complete pilot. Source: OpenAI Batch API
If Batch is used, reconcile individual successful, failed and missing results with the input inventory. Do not count a batch status as proof every business task was accepted. Discarded outputs and later repair belong in the same attempt ledger.
Use the applicable current price and actual usage when estimating model charges. Different tiers, inputs and storage features may have different treatment. If that evidence is unavailable, label the estimate and its owner instead of presenting a remembered rate as confirmed billing.
Work through normal, missing and duplicate costs
In a hypothetical normal case, the attempt returns a usable output and the review accepts it. The ledger records its usage and charge evidence under the task reference. The budget includes the relevant tool and review components, not only the model call.
In a missing-billing case, an operation fails and its charge cannot yet be reconciled. The ledger marks estimated or unknown cost and identifies the evidence needed. It does not classify the attempt as free simply because the final answer was absent.
In a duplicate case, two job submissions refer to one verified task. The application reconciles the existing result before retry, while the ledger preserves any resources actually consumed by both submissions. Duplicate protection can prevent further work; it cannot erase costs already incurred.
FAQ about retries and failed-run budgets
Are failed AI requests always billed?
Do not assume a universal rule. Check the selected provider, endpoint, failure stage and actual billing evidence. Preserve unknown treatment until it is reconciled.
Should discarded outputs be excluded from cost per accepted task?
Include their incurred work in the full pilot cost under the approved accounting rule. Show accepted and unresolved outcomes separately so the denominator does not hide failed work.
Can a retry budget authorise repeated tool actions?
No. The operation still needs authority, prior-outcome checks and duplicate controls. A cost ceiling does not make an uncertain external action safe to repeat.
If your business needs help defining this process, explore Workflow automation, the wider AI automation services, and our custom-agent workflow guide. The agents and automation comparison and custom AI agent glossary explain the terms. To discuss your records and approval rules, get in touch.

