Teardown: AI autofill for expense reports
How to measure and ship AI autofill for expenses: accuracy, adoption, trust and cost-per-task, with field-level instrumentation and a worked example.

For PMs who own data-entry automation across expenses, forms and CRM. Users spend minutes per receipt. AI can help. It can also add errors, doubt and cost. This teardown shows how to measure the trade-offs and ship with control. At the end, you will have a field-level metric plan, a staged gating strategy and a cost-per-task view you can take to finance.
- Treat four metrics as one surface: accuracy, adoption, trust, cost-per-task.
- Instrument at field level: merchant, amount, date, category.
- Use user overrides, edit distance, time-to-submit and sampled audits to estimate true error.
- Gate in stages: conservative by default, then suggestions, then aggressive where errors are cheap.
- Translate errors to dollars and compute break-even adoption.
The four-metric surface
Your system balances four forces. Accuracy: how often each field is correct. Adoption: the share of tasks where users rely on autofill. Trust: override and correction rates. Cost-per-task: API fees, human review and retries. Push one and others move. Your job is to map the surface and pick operating points, not chase a single top-line accuracy.
Measure precision and recall per field, link trust to overrides, and price each error. Optimize the surface, not a vanity metric.
Step 1 — Define fields and ground rules
List the fields
Start with merchant, amount, date and category. Add fields only when they affect payout, audit or user time. Name variants and formats you will accept for each field.
Tip Map “hard” receipts (crumpled, low light) vs “clean” to segment results later.
Define correctness
Write rules per field. For amount and date use exact match after normalizing currency and format. For merchant allow common aliases. For category, use your taxonomy only.
Step 2 — Instrument at field granularity
- Raw OCR/LLM outputs and per-field confidences.
- User actions: accept, edit, delete, override category, re-scan.
- Edit distance for amounts/dates vs final values.
- Time-to-first-suggestion and time-to-submit.
- Model version and prompts used.
- Receipt quality tags (auto or manual).
Run a small human audit sample to estimate true error rates. Use it to calibrate precision and recall, especially for category. Record which errors the sample catches.
Step 3 — Measure precision and recall per field
Do not stop at overall accuracy. Report precision and recall for merchant, amount, date and category. Segment by receipt quality. Track false positives (model is confident but wrong) and false negatives (model missed a field you could have filled).
Amount errors are costly and visible. Category errors create finance rework. Merchant and date affect search and policy checks. Different fields need different gates.
Step 4 — Turn behavior into trust and adoption
Trust shows up as user behavior. Use override rate per field, correction rate after submit, and time saved vs manual entry. Adoption is the share of tasks where suggestions are accepted without heavy edits.
| Signal | What it estimates | Notes |
|---|---|---|
| User override on a field | Low trust for that field in this context | High overrides on category often mean unclear taxonomy |
| Edit distance on amount/date | Magnitude of errors when wrong | Small edits suggest format issues; large edits suggest misread |
| Time-to-submit | Friction and cognitive load | Longer time even with correct fields hints at low trust |
| Sampled human audit outcome | Calibrated precision and recall | Use to adjust metrics when ground truth is missing |
Step 5 — Gate in stages, by field and cost
Do not flip a global switch. Choose an operating point per field, then graduate.
- Conservative default: show suggestions inline, never auto-commit high-cost fields (amount, date) without high confidence.
- Confidence-based suggestions: accept auto-fill for low-risk fields at high precision thresholds; ask for a click for medium confidence.
- Aggressive autofill for low-cost errors: commit merchant or category where a wrong value is cheap to fix and you monitor corrections.
- Backoffs and retries: on low confidence, fall back to OCR-only or ask for a clearer photo instead of repeated API calls.
- Version safeguards: ramp model updates behind flags; watch false positives closely on rollout.
Make the safest thing automatic and the costly thing confirmable.
Step 6 — Translate errors and calls into dollars
Build cost-per-task from four parts: model/API cost per call, retries, human audit cost and user time. Tie each error type to a dollar impact, including finance review time and reimbursement risk where policy matters. Compute cost-per-task at your current operating point and at the next stricter/looser gate.
Cost-per-saved-task compares your spend to the value of user time saved by autofill. Adoption matters: a great model that few trust will not pay back. Plot adoption on the same chart as precision and cost.
Worked example: expense autofill at scale
Setup: 100,000 receipts a month. The model’s per-field precision is 98% for amount and 85% for category. API cost is $0.03 per receipt. A 1% human audit sample catches 50% of category errors. With these inputs, the net cost-per-saved-task is $0.12. In this setup, you need adoption above about 20% to justify.
- Field lens: keep amount in the conservative bucket. Move category from suggest to autofill only in segments where audit shows high precision.
- Trust lens: track category override rate over time; if it drops, adoption should rise and cost-per-saved-task falls.
- Cost lens: retries and low-confidence loops raise spend; cap retries and ask for a better photo on the third failure.
Action: ship high-precision amount extraction with confirmation; run A/B on category thresholds in clean-receipt segments; review the audit every week and adjust gates.
Common mistakes to avoid
- Only reporting overall accuracy. Always show per-field precision and recall.
- Ignoring overrides. They are your live trust metric.
- Not segmenting by receipt quality. Hard receipts skew metrics and mask wins.
- Letting model updates spike false positives. Ramp slowly and watch costly fields.
- Optimizing raw accuracy without mapping errors to business cost.
Choosing your operating mode
Use this as a reference when you propose your next gate change.
| Mode | Pros | Risks | When to use |
|---|---|---|---|
| Conservative suggest | High precision, low error cost, builds trust | Lower adoption, more clicks | Early rollout, high-cost fields (amount/date) |
| Confidence-based suggest | Balanced precision/recall, rising adoption | Medium risk of false positives | Mid rollout, mixed field costs |
| Aggressive autofill | Max adoption and time saved | Higher corrections; must monitor | Low-cost errors (merchant/category) with audit |
Your next two weeks
- Ship event logging for per-field outputs, confidences and user edits.
- Launch a 1% weekly audit sample with a simple review rubric.
- Publish a dashboard: per-field precision/recall, overrides, adoption, cost-per-task.
- Set conservative gates on amount and date; run A/B on category by receipt quality.
- Agree with finance on dollar values for user time and review time.
- Write a rollback plan for model updates; monitor false positives first week.
Keep the loop tight. Measure at field level, tie behavior to trust, gate by cost, and price every error. When in doubt, make progress with small, safe steps and real numbers.


