Skip to main content
Loopfour
Workflow templates

ACCOUNTS PAYABLE & INVOICE PROCESSING

Catch the duplicate before the payment, not after.

Check every incoming invoice against a running ledger of what you have already processed, score the match on vendor, amount, and invoice number, and route likely duplicates to a recorded review before anything is paid.

Data TableCodeConditionApproval
How it is built
1

Webhook trigger fires when a new invoice arrives

2

Data Table block looks up the workflow's processed-invoice ledger for the vendor

3

Code block scores each candidate on number, amount, and date proximity

4

Condition block routes likely duplicates to review

5

Approval block sends the flagged pair for a recorded decision

6

Clean invoices continue, and the decision is written back to the ledger

01

The problem

The problem

Duplicate invoices are one of the most common sources of overpayment in AP. A vendor resends, a copy gets forwarded, and the same bill enters the queue twice. A team processing thousands of invoices a month cannot eyeball every one against the last ninety days of history.

02

How it is built

How it is built
  1. 1Webhook trigger starts the run when a new invoice arrives.
  2. 2Data Table block looks up the workflow's own ledger of already-processed invoices for the same vendor.
  3. 3Code block scores each candidate on invoice number, amount, and date proximity, and returns a confidence value.
  4. 4Condition block routes anything above the duplicate threshold to review, and lets clean invoices continue.
  5. 5Approval block sends the flagged pair to a human side by side and records the confirm-or-dismiss decision.
  6. 6Data Table block writes the outcome back to the ledger so the next run sees it.

03

The payoff

The payoff

The scoring is repeatable: the same two invoices score the same way every time, and the reason a pair was flagged is recorded alongside the human decision. You stop paying twice, and you can prove the control ran.

Want this workflow built and maintained for your finance stack?

Book a demo