AI Decision Model for Invoice and Expense Approvals: Rules First, Calibrated Auto-Approve, SOX Audit Trail
A working design for finance teams whose policies do not fit Ramp, Brex or Concur, with the measurement method that no vendor has published for false approvals and false flags.
An AI decision model for invoice and expense approvals should run only after fixed rules have done matching, duplicate checks and policy limits. It should then pick one outcome from a closed list, such as auto-approve, request documents, route to an approver or reject, and attach a confidence score and a logged reason code. It should auto-approve only above a threshold that you have tested on your own data, and it should send everything else to a human-in-the-loop queue. No vendor or researcher has published false-approve and false-flag rates for these systems on a disclosed dataset, so the error rates that matter must come from a shadow pilot on your own approval history.
The design has four layers, and the decision model sits third
Each layer handles the items that it can settle cheaply and passes the rest down. The order matters because rules are predictable and easy to audit, while a model is neither unless you make it so.
Invoice, receipt or expense line
|
1. Extraction: vendor, amount, tax, lines, GL code, PO number
|
2. Fixed rules: 2- and 3-way match within tolerance,
duplicate check, vendor-master check, policy limits,
merchant categories
|-- clear fail --> hold or reject (rule ID logged)
|
3. Decision model: ranks a closed action set
auto-approve | approve with noted exception |
request documents | route to approver | reject
|-- confidence below threshold --> defer
|
4. Human exception queues: approver, AP lead, controller
|
Immutable log: inputs, action, score, reason code,
model version, policy version, reviewer, override
The rules layer already exists in most ERPs. Oracle Payables, for example, places a matching hold on an invoice whose billed amount exceeds a tolerance against the purchase order, and the invoice cannot be paid until the hold is released. Tolerances can be set on ordered quantity, received quantity, price and amount, as percentages or fixed amounts, for each supplier site. Oracle's documentation also lists a trap that is easy to miss: an active tolerance with no value allows unlimited variance.
ApprovalMax describes the same split for invoices. Its guide, updated November 19, 2026, says that rule-based automation approves an invoice that matches its purchase order within tolerance and escalates one whose amount exceeds a threshold. The guide also says that "solid accounts payable controls have to exist before AI can enforce them."
The decision model handles what the rules cannot settle
A rule can confirm that an invoice matches a purchase order. A rule cannot easily settle whether a $480 dinner with six attendees fits a policy that says "reasonable client entertainment." It also cannot easily settle whether a new vendor's first invoice looks like earlier invoices from similar suppliers. Those cases are the decision model's job.
The model should choose from a fixed list of actions rather than write an answer. The commercial products already work this way. AppZen lists four outcomes for its expense audit agents: auto-reject, request documentation, route to an approver, or auto-approve with a noted exception. Ramp's Policy Agent returns one of three recommendations, which are Approval recommended, Requires review and Rejection recommended. A closed action set keeps every outcome inside a workflow that your ERP and your auditor already understand.
Ramp's design also shows where rules and model meet. Its support documentation describes flags such as duplicate receipt, AI-generated receipt and receipt previously used as deterministic inputs. The agent considers those flags, but the flags do not replace the policy evaluation.
Calibrated confidence decides how many items can be approved without a person
A score is only useful for an approval threshold if it is calibrated. The scikit-learn documentation defines this plainly: among items that a well-calibrated classifier scores near 0.8, about 80% should actually belong to the positive class. If a model is calibrated, the threshold that you pick maps directly to an expected rate of wrongful approvals. If it is not calibrated, a score of 0.99 can hide an error rate that is far higher than 1%.
Calibration has to be checked and often corrected. The scikit-learn documentation recommends fitting the calibrator on data that was not used to train the model, because training data pushes probabilities closer to 0 and 1 than they should be. It describes sigmoid calibration as most effective for small samples. It also says that isotonic calibration is more prone to overfitting on small datasets but performs as well or better above about 1,000 samples. A reliability diagram, which plots the share of correct approvals against the mean predicted score in each bin, is the plot to put in front of a controller.
Free-text reasoning from a large language model does not replace this. A paragraph of explanation is not a probability, and two runs can produce different wording for the same item. What an approval process needs is a ranked score for each allowed action, a reason code chosen from a fixed list, and the policy clause that triggered it.
The safe way to set the threshold is to start narrow and widen it only as measured accuracy holds. Ramp's own controls follow this pattern. Its documentation lets admins limit auto-approval to amounts below a threshold, with "under $1,000" as the example, and to specific departments, entities, merchants or categories. Ramp also says that its agent surfaces more items as Requires review when policy language is ambiguous, rather than risk an incorrect automatic approval. A custom build should begin the same way, with a low amount cap, a high confidence threshold and only the lowest-risk categories.
Nobody has published false-approve and false-flag rates, so you have to measure them
Vendors publish accuracy claims, but none of these claims comes with a disclosed dataset, policy and method. Ramp's expense management page, updated September 9, 2026, says that Policy Agent catches "7x more out-of-policy spend" than rule-based systems at "99%+ accuracy," and it gives no sample size or method. AppZen says that organizations can reach "up to 80% automation rates," also without a method. No vendor, Parsec included, has published false-approve and false-flag rates at named confidence thresholds on a disclosed invoice and expense set. Comparisons with a rules-only baseline and with a frontier model on the same items have not been published either.
Two error rates matter, and they have different costs:
- A false approval happens when the model auto-approves an item that your approvers would have rejected or sent back. This error creates financial and audit exposure.
- A false flag happens when the model routes or rejects an item that your approvers would have approved. This error costs reviewer time and delays payment to employees and suppliers.
Raising the threshold lowers false approvals and raises false flags, and it also shrinks the share of items that are resolved automatically. The right point on that curve depends on your amounts and your risk appetite, which is why a vendor's single accuracy figure cannot answer the question.
A shadow pilot measures both error rates before the model approves anything
In a shadow pilot, the model scores every item while the current approval chain makes the real decision. The model's output is logged and hidden from approvers, so it cannot influence them. Ramp's documentation describes a related constraint for its own product: Policy Agent runs only in production, and testing relies on keeping its assessments hidden and routing test expenses to human reviewers.
Run the pilot in five steps:
- Freeze the policy text, the rules and the model version, and record all three in the log before the first item is scored.
- Score every item for at least one full month-end cycle, so that the sample includes close-period volume and unusual items.
- Treat the human decision as the label, and send a sample of disagreements to a second reviewer, because approvers also make mistakes.
- Compute both error rates at several thresholds: false approvals divided by items that the model would have auto-approved, and false flags divided by items that humans approved.
- Set the go criteria in advance, for example a 95% upper bound on the false-approve rate below 1% in the lowest-risk category, and a false-flag rate that your reviewers can absorb.
The sample size depends on how small an error rate you need to prove. The NIST/SEMATECH e-Handbook gives the exact binomial interval for a proportion. Solving it for zero observed errors shows how many auto-approved items you need before you can claim an upper bound.
| Upper bound you need to show (95%) | Auto-approved items with zero false approvals |
|---|---|
| 2% | 149 |
| 1% | 299 |
| 0.5% | 598 |
| 0.2% | 1,497 |
Observed errors widen the interval quickly. With NIST's Wilson formula, 3 false approvals in 600 items gives a 95% range of 0.17% to 1.46%, and 6 in 1,200 gives 0.23% to 1.09%. The handbook warns that the simpler normal approximation may not be accurate when failures are very few, which is the usual case for false approvals.
A decision costs fractions of a cent, so error rates drive the choice
Token cost is small next to the cost of a wrongful approval. Take a workload of 20,000 decisions a month, each with 6,000 input tokens of invoice text, policy excerpt and vendor history, and 300 output tokens for the action and reason.
- At Anthropic's list price for Claude Sonnet 5.5, $2 per million input tokens and $10 per million output tokens, each decision costs $0.015. The month costs $300, or $150 through the Batch API at half price.
- At Claude Opus 5.5 rates of $4 and $20 per million, each decision costs $0.03, or $600 a month.
- At Parsec's published TOD price of $0.30 per 1,000 decisions, the same volume costs $6 a month in TOD fees. Deferred items still go to a parent model, so if 40% were deferred to Sonnet 5.5, the total would be about $126. The share that TOD would handle on approvals has not been measured.
US-only processing on Claude adds a 1.1x multiplier, which matters for teams with data-residency rules. On every option above, a single false approval on a $5,000 invoice costs more than a month of inference.
Buy a product when your policy fits it, and build when it does not
Ramp, Brex, AppZen on SAP Concur and AP suites such as Tipalti already package most of this design. Ramp's Policy Agent, on the Ramp Plus plan, reads a written policy and applies it to card transactions and reimbursements. Brex says that its review agent "auto-approves low-risk expenses and requests" and escalates exceptions. AppZen adds audit coverage on top of an existing Concur deployment. For invoices, Tipalti describes agents that code invoices, validate them against purchase orders, detect duplicates and route invoices to the right approver. If your expense policy fits one of these products, buying it is faster than building.
Building makes sense when the products do not fit. That happens with policies that do not reduce to a short document, with several entities or ERPs that a single product does not span, with high volume, or with data-residency or on-premises requirements. Ramp's own documentation shows one limit: it recommends a policy of about 10,000 words and says that images and links inside the policy are not interpreted.
A custom build can use a frontier model with a strict output schema, or a small model trained on your own approval history. Parsec, a small language model lab, offers both a ready-made decision model, TOD, and a service that tunes decision models on a customer's own decisions. TOD ranks a supplied list of allowed actions, returns one probability for each, and passes uncertain items to a parent model. Parsec says that a post-trained decision model can be in production within two weeks. That is its own claim, and it publishes no price for the tuning work and names no deployment options. TOD's own release page reports that it scored slightly below its untrained base model on one public decision benchmark, and Parsec has published no invoice or expense results.
Whichever route you take, the shadow pilot comes first. Ask any vendor for false-approve and false-flag rates at the threshold that you plan to use, measured on your own data, and treat a single accuracy figure as a starting point for that conversation.
SOX controls apply to the model as they apply to any automated control
Section 404 of the Sarbanes-Oxley Act requires management to assess internal control over financial reporting each year. Accelerated and large accelerated filers also need their auditor to attest to that assessment, although emerging growth companies are exempt from that attestation. The SEC's 2007 interpretive guidance, release 33-8810, lists segregation of duties and approval authorizations among the controls that management evaluates. It also says that automated controls often depend on IT general controls, including program changes and access to programs and data. A decision model is a program that changes, so its versions fall under those controls.
The control set for a custom approval model should cover these points:
- Give the model that proposes an action, the identity that approves, and the identity that posts to the ledger separate credentials with no overlapping permissions.
- Write an immutable, time-stamped log for every decision, with the inputs, the action, the score, the reason code, the model version and the policy version.
- Keep the ability to replay any past decision by reloading the logged model and policy versions and getting the same output.
- Record every override by a human, with the reviewer, the time and the reason, and report override rates by category each month.
- Treat a change to the model, the threshold or the policy as a program change that needs approval and testing before release.
- Show the external auditor the pilot results, the threshold rationale, a sample of logged decisions and the change history.
The SEC guidance says that management "must maintain reasonable support for its assessment," including documentation of control design and changes to it. Ramp's activity feed is a useful reference for what that looks like in a product. Each expense shows the recommendation, the rationale, the cited policy text, any overrides and the policy version used. A custom build should log at least the same fields.
Sources
- Accounting Today, Ramp releases AI agents for expense approvals, analytics: https://www.accountingtoday.com/news/ramp-releases-ai-agents-for-expense-approvals-analytics
- Ramp, AI expense management: https://ramp.com/blog/ai-expense-management
- Ramp Support, Policy Agent overview: https://support.ramp.com/hc/en-us/articles/44072387128979-Policy-Agent-Overview
- Ramp Support, Use Policy Agent for approvals: https://support.ramp.com/hc/en-us/articles/47618318137875-Use-Policy-Agent-for-approvals
- Brex, Agents on Brex: https://www.brex.com/platform/brex-ai
- AppZen, Expense audit agents: https://www.appzen.com/module-test
- Tipalti, AI in accounts payable: https://tipalti.com/blog/ai-in-accounts-payable/
- ApprovalMax, AI in accounts payable: https://blog.approvalmax.com/ai-in-accounts-payable
- Oracle Payables, Invoice tolerances: https://docs.oracle.com/en/cloud/saas/financials/25d/faipp/invoice-tolerances.html
- 15 U.S.C. 7262, Management assessment of internal controls: https://www.law.cornell.edu/uscode/text/15/7262
- SEC Release 33-8810, Guidance on management's report on ICFR: https://www.sec.gov/rules/interp/2007/33-8810.pdf
- scikit-learn, Probability calibration: https://scikit-learn.org/stable/modules/calibration.html
- NIST/SEMATECH e-Handbook, Confidence intervals for proportions: https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm
- Anthropic, Claude API pricing: https://platform.claude.com/docs/en/about-claude/pricing
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/
- Parsec, TOD code repository: https://github.com/daseinlabs/tod