Three-Way Match With AI Agents: Propose, Flag, Then Let a Human Pay
Learn how an AI agent can match purchase orders, receipts and invoices, flag variances, and leave payment release to a named human approver. Practical steps included.

A three-way match compares three documents for the same purchase: the purchase order that authorized the spend, the receipt that confirms what arrived, and the supplier invoice that asks to be paid. An AI agent can run that comparison quickly, propose a match for each invoice, and flag any variance in quantity, price, tax or timing. The payment decision should stay with a named person who owns the cost, because that approval is the control point that makes the match worth trusting.
Key takeaways
- An agent should propose a match and cite the three documents it compared, not mark an invoice as paid.
- Every variance needs a tolerance rule, an owner and a next step agreed before the agent starts.
- Payment release stays with a named approver who can see the evidence, not only the agent's summary.
- Duplicate invoices and changed bank details are stop points, not ordinary matching problems.
- Run the agent in shadow mode first and compare its proposals with your team's decisions before any routing changes.
What a three-way match checks, and what it should not decide
The comparison itself is mechanical. The agent reads the purchase order, the goods receipt or service confirmation, and the invoice, then compares the supplier name, the item or service description, quantity, unit price, tax treatment, currency, and the dates that bracket delivery and billing. Most of the real work sits in the fields that do not line up cleanly, such as a supplier that writes a product code differently or a receipt that records only a partial delivery.
What the agent should not decide is whether the company owes the money. A match means the documents agree. It does not mean the purchase was wise, the budget has room, the service was acceptable, or the bank details on the invoice are genuine. Those are human judgments with accountability attached. Keep the two questions separate in the design: do the documents agree belongs to the agent, and should we pay this now belongs to a person.
The workflow, step by step
The steps below describe one practical design. Each one has a clear output that a reviewer can inspect.
- Step 1: Define the inputs. List the systems the agent may read, such as the purchasing record, the receiving log and the accounts payable inbox, and confirm which fields each document must contain before a match is attempted.
- Step 2: Normalize without changing the source. The agent may map supplier aliases and unit labels into a working view, but it never edits the original purchase order, receipt or invoice.
- Step 3: Propose a match. For each invoice, the agent writes the three document references, the fields it compared, and one result: matched, matched within tolerance, or variance.
- Step 4: Flag each variance with a reason and an owner. The flag names the field, states the difference in plain terms, identifies the likely owner (purchasing for a price change, receiving for a short delivery), and suggests the next action.
- Step 5: Route to the approver. Matched and within-tolerance invoices go to the payment approver's queue with the evidence attached. Variances go to the named owner. Nothing moves toward payment on the agent's status alone.
- Step 6: Record the decision. The approver's accept, reject or hold decision is logged with the time, the person, and any change made, so the next review can show what happened and why.
An illustrative scenario: where the agent stops
Illustrative scenario: a company orders twelve service visits from a facilities provider under one purchase order. The receiving log confirms eleven visits. The invoice bills twelve visits at the agreed rate. The agent matches the supplier, the rate and the purchase order, flags the quantity variance of one visit, and attaches the receipt reference and the invoice line. It does not decide whether the twelfth visit took place. The facilities lead checks the work log, confirms the visit happened but was never recorded, and either asks the receiving team to update the record or asks the supplier for a corrected invoice. The payment approver then releases only the amount the record supports.
Two other situations should stop the flow immediately. The first is a possible duplicate: an invoice number, or a combination of supplier, date and amount, that matches an invoice already paid or waiting in the queue. The second is a change to bank details that arrives inside an invoice or an email thread. The agent can flag both, but the response belongs to a person who verifies the change through a contact the company already knows, not through the details in the message. For the intake side of this workflow, see AI invoice intake with human approval.
Setting variance tolerances before the agent starts
A tolerance is a rule that says a small difference does not need a person to stop the process. Without tolerances, the agent flags nearly everything and the queue turns into noise. Tolerances must be set by the people who own the spend, written in the units the business already uses, and stated as rules the agent can apply and a reviewer can check. Vague guidance such as use common sense gives the agent nothing to execute and gives the reviewer nothing to audit.
A simple decision guide helps owners agree on the rules:
- Price variance on a supplier with an approved contract: flag it, and accept only differences inside the threshold the owner set for that category.
- Quantity variance where the receipt is missing: hold the invoice and route it to receiving.
- Any variance from a new supplier with no payment history: route to a person, with no tolerance applied.
- Tax, currency or payment terms that differ from the purchase order: hold and route to accounts payable.
- Possible duplicate or changed bank details: stop, and route to a named owner who verifies through a known contact.
Review the tolerances on a regular schedule, since contracts, suppliers and volumes change. The procurement approvals guide for AI agents covers threshold design in more depth.
Keeping access narrow and treating invoice text as data
Give the agent read access to the purchase records, the receiving log and the invoice queue, and write access only to a match status field in its own workspace. It should not hold a credential that can create a payment, change a supplier master record or edit a receipt. Scoped permissions and explicit authorization checks are standard practice, and the [OWASP authorization guidance](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html) describes the principle that each action is checked against what the caller is allowed to do, not against what the workflow assumes it will do.
Invoices are untrusted input. A PDF or an email can contain text written to steer an automated reader, such as an instruction to mark the invoice as approved. Treat every field of supplied content as data to compare, not as an instruction to follow. The [OWASP Top 10 for LLM Applications](https://genai.owasp.org/llm-top-10/) lists prompt injection among the main risks for applications that read external text, so the agent's status should come from its rules and the evidence in front of it.
Retries also need care. If a payment step is ever automated later, the pattern in [Stripe's documentation on idempotent requests](https://docs.stripe.com/api/idempotent_requests) is a useful reference: a repeated request carries the same key, so the provider can recognize it as the same operation rather than a second payment. Whatever system you use, confirm how it handles repeated requests before anything can release money.
How Be Human runs this as a managed service
Be Human designs and operates agents of this kind as a managed service. A first engagement defines one useful role, here the match proposer for a defined set of suppliers, along with the memory and tools it needs, the approval boundaries that keep payment release with a named person, and an observable success criterion, such as the rate at which approvers accept proposals without changes, measured against a baseline agreed at the start. Managed operations then cover monitoring of the match queue, recurring evaluations on sampled invoices, permission reviews, maintenance when the purchasing or accounting system changes, and incident response when a variance is missed. The agent's identity, memory and channels stay under the company's control, so the company can see what the agent knows and pause it at any point. Anthropic's engineering guidance on [building effective agents](https://www.anthropic.com/engineering/building-effective-agents) makes a similar point: a workflow with clear steps and checkpoints is easier to verify than an open-ended one.
Measuring the match before you trust it
Do not judge the agent by how quickly it clears the queue. Judge it by whether its proposals match what a careful reviewer would have decided. Each cycle, sample a fixed set of invoices and include the awkward ones, such as partial receipts, renamed items and suppliers with recent bank changes. Have a reviewer score each proposal before reading the agent's own notes, so the score is not anchored by the explanation. Track missed variances separately from false alarms, because a missed variance can release money that should be held, while a false alarm costs attention. Keep the sample and the scores so that any change to the agent, the prompts or the tolerances can be tested against the same cases. If you are not sure which of your payables steps is the first worth handing to an agent, the free Be Human AI diagnostic is a practical way to find that starting task.
Frequently asked questions
Can an AI agent release a supplier payment on its own? In the design described here, no. The agent proposes the match, flags variances and routes each item to a named approver. Payment release stays with a person who can see the evidence and is accountable for the spend, and any future automation of that step would need its own approval rules and audit trail.
Does a three-way match replace the receiving team? No. The match depends on a receipt, and the receipt depends on someone confirming what arrived. The agent can flag a missing receipt or one that disagrees with the invoice, which exposes gaps quickly, but the receiving team still records delivery and the agent cannot correct what was never recorded.
What does the agent need before it can start? It needs read access to purchase order records, receipt or confirmation records and the invoice queue, along with consistent supplier identifiers and written tolerance rules. A useful first step is to check which fields are reliable and which need a person to correct them, because the agent will expose inconsistent data quickly.
How do I know the agent is ready to propose matches? Run it in shadow mode first, where it produces proposals that people review while nothing is routed to payment. Compare its proposals with the decisions your team made on the same invoices, and study every disagreement. Move to live routing only after the errors are understood and the owners accept the way flags are raised.
Your next step
See where an AI agent fits in your company first.
Take the free Be Human AI diagnostic. A few questions about your work show which task to hand to an agent first, what it needs to know and where a person approves.
Be Human editorial guidance. Examples are illustrative unless explicitly attributed. Sources provide background; implementation choices depend on your workflow.


