Accounting Operations Track 2: Review the weekly payment run with AI

Published by

on

The Pragmatic CFO: practical finance for the AI era

TL;DR The Friday payment run is a set of rules: due date against the next run, open discounts, holds, duplicates against what you already paid, and callbacks on changed bank details. An AI can check every line against those rules and write the exception list; a person approves the run and makes any callback. In this lesson Larkspur’s system proposes 20 invoices for $134,273.90, and the corrected run is 17 invoices for $104,341.30.

What you’ll practice

  • Writing the payment run rules so the AI tests every proposed line, and every line the system left out.
  • Building the exception list and a bridge from the system total to the corrected total.
  • Handling a vendor bank change the safe way: a callback to a number already on file, made by a person.

Time: about 30 to 40 minutes. You need the free Accounting Operations Track workbook (Excel) and any AI assistant that can read an uploaded spreadsheet. Larkspur Supply Co. is a made-up four-branch distributor, and every vendor, invoice and bank detail in the file is invented, so it is safe to upload.

A payment run is a set of rules

The AP system builds the proposed run from due dates and approval status. The review catches what it gets wrong, and it is mechanical enough to hand to an AI once the rules are written down.

Larkspur pays on Fridays. Today’s run is Friday, November 20, 2026, and the next one is Friday, November 27. The rules:

  1. Pay what is due before the next run. Pay an invoice if its due date is on or before November 27. Anything due later waits for a later run.
  2. Take open discounts. If an early-payment discount is still open today, pay it now and pay the net amount, even if the due date is weeks away.
  3. Never pay an invoice on hold. A hold from lesson 1 does not lift because the run builder ignored it.
  4. Never pay an invoice twice. Check every line against paid history on vendor plus vendor invoice number.
  5. No payment to changed bank details without a logged callback. If a vendor’s bank details changed in the last 30 days, the callback must be logged before money goes to the new account.

Rule 1 is about working capital. Paying a Net 45 invoice a month early is a free loan to your vendor and pulls down days payable outstanding. Our working capital guide covers why DPO matters to the cash cycle.

Rule 2 is the exception to rule 1. On 2/10 net 30, paying 20 days early saves 2%: as an annual rate, 2/98 times 365/20, about 37%. On 1/10 net 45, paying 35 days early saves 1%: about 10.5% a year. Our view: take the first almost always, and the second when your cost of cash is lower. Larkspur takes both.

The bank change rule, in more detail

A request to change a vendor’s bank account is the classic setup for payment fraud: the email looks like a vendor you pay every month, the invoice is real, and only the account number is new. The FBI’s 2025 Internet Crime Report lists 24,768 business email compromise complaints with losses of $3,046,598,558. The Association for Financial Professionals reports, in its 2026 Payments Fraud and Control Survey, that 74% of organizations were affected by business email compromise in 2025.

The control is simple and must not bend:

  • Call the vendor using a phone number already on file: from your vendor master, a contract or an older invoice. Never use a number, email or link in the change request, because it may belong to whoever sent it.
  • Log who called, whom they spoke to, when, and the result.
  • Until the callback is logged, the invoice stays out of the run.

The AI’s job is to find every line where the bank details changed and no callback is logged. It does not make the call, and it does not draft a reply to the change request.

The data

Sheet 2_Payment_Run has 22 open invoices with terms, due date, discount date, amount, AP status, approver, an “In proposed run?” flag, and the date of any vendor bank change with a “Callback logged?” flag. The system put 20 of them in the proposed run. Sheet 2c_Paid_History has 3 recent payments with vendor invoice numbers and paid dates.

The prompts use the five-line format from the Workbench setup lesson: JOB, DATA, RULES, OUTPUT, PROOF.

Step 1: Test every line against the rules

JOB: You are an AP specialist reviewing the system's proposed payment run before AP manager approval.
DATA: Sheets 2_Payment_Run (22 invoices) and 2c_Paid_History (3 payments) in the attached workbook. Run date Friday 2026-11-20. Next run Friday 2026-11-27. USD, to the cent.
RULES: Test every invoice, whether or not it is in the proposed run, in this order: (1) AP status "On hold": do not pay. (2) Same vendor and same vendor invoice # in 2c_Paid_History: duplicate, do not pay. (3) Bank details changed within 30 days of the run date and Callback logged? is not "Yes": do not pay until a callback is logged. (4) If a Discount date is on or after 2026-11-20, pay now at the net amount (2/10 = 2%, 1/10 = 1%). (5) Otherwise pay only if Due date is on or before 2026-11-27; later due dates are paying early. Do not use any other reason to add or remove a line.
OUTPUT: One table, all 22 invoices: invoice ID, vendor, due date, discount date, amount, in proposed run, decision (PAY, PAY NET, REMOVE, ADD), amount to pay, and the rule that decided it.
PROOF: State the counts you read (22 and 3) and the system's proposed count and total (20 and 134,273.90). For each discount, show gross, discount and net.

Step 2: Write the exception list and the bridge

The AP manager needs the lines that differ from the system and proof that the new total is right.

JOB: You are an AP specialist writing the payment run exception list for the AP manager.
DATA: Your Step 1 table.
RULES: List only lines where your decision differs from the system: removals, additions and discounts. Give one plain sentence per line with the numbers and the rule. Build a bridge: system total, minus removals, plus additions at gross, minus discounts, equals corrected total. For the bank change line, say only that a callback to a number already on file is needed; do not suggest contacting the vendor by any address or number in the request.
OUTPUT: Three short lists (Remove, Add, Discounts), then the bridge as a five-line table, then the corrected run: invoice ID, vendor, amount to pay.
PROOF: The bridge must tie to the cent. The corrected run count and total must equal the sum of its lines. Confirm no corrected line is On hold, in paid history, or has an unlogged bank change.

Step 3: Ask for a look list, not more removals

The duplicate rule is exact: vendor plus invoice number. Real duplicates sometimes come back with a new number, so a looser scan is worth running. A near match goes on a list for a person; it never comes out of the run on the AI’s say-so.

JOB: You are an AP specialist doing a final scan of the corrected run.
DATA: Your corrected run, plus 2c_Paid_History and 1_AP_Inbox from the same workbook.
RULES: Find pairs with the same vendor and amount but a different invoice number, across all three sheets, ignoring the same Invoice ID. Give both invoice dates and the days between. List any corrected-run line already past due on 2026-11-20. Change nothing: this list is for a person.
OUTPUT: Table of pairs; list of late payments.
PROOF: Say how many pairs you found and how many share the same invoice date.

What a good answer looks like

Show the answer key

Remove from the proposed run (5 invoices, $38,785.00)

InvoiceVendorAmountWhy
AP-71019Harborline Logistics14,650.00Bank details changed Nov 12, no callback logged: hold until verified
AP-71025Cobalt Freight Lines8,420.00Duplicate: invoice CF-44120 was paid Nov 6 as AP-70988
AP-71040Juniper Office Supply1,320.00Not due until Dec 17: paying early
AP-71204Foothill Electric Supply4,455.00On hold (lesson 1 price exception) but proposed
AP-71068Granite Tool Works9,940.00Not due until Dec 12: paying early

Add to the run (left out by the system)

  • AP-71031 Bluewater Packaging: 2,880.00 gross, 2/10 discount open until Nov 22. Pay 2,822.40 now. The next run is too late for the discount.
  • AP-71042 Pinecrest IT Services: 6,250.00, due Nov 25, before the next run. Pay it now or it goes out late.

Discounts to take (3 invoices, $277.60)

InvoiceVendorGrossDiscountPayDiscount date
AP-71031Bluewater Packaging2,880.0057.602,822.40Nov 22
AP-71033Northstar Abrasives5,120.00102.405,017.60Nov 23
AP-71053Keystone Hydraulics11,760.00117.6011,642.40Nov 22

The system had Northstar and Keystone at gross: the quiet way to lose a discount.

The bridge

StepAmount
System proposed run (20 invoices)134,273.90
Minus removals (5 invoices)-38,785.00
Plus additions at gross (2 invoices)9,130.00
Minus discounts (3 invoices)-277.60
Corrected run (17 invoices)104,341.30

The corrected run is $29,932.60 less than the system’s.

Corrected run, 17 invoices: the 15 proposed lines that pass every rule, plus AP-71031 and AP-71042. Every line is paid at its invoice amount except the three discounts above, paid at net.

The look list from Step 3 (our view, not planted errors): five same-vendor, same-amount pairs turn up between the corrected run and this week’s inbox, and one shares an invoice date. Three are 16 to 27 days apart (Ironclad, Oakridge Pallet and Evergreen), which fits repeat orders and monthly fees. Two deserve a minute before release: AP-71031 and inbox invoice AP-71202 are both Bluewater, 2,880.00 and dated Nov 12 (BP-88392 and BP-88410), and AP-71042 and AP-71216 are both Pinecrest, 6,250.00, five days apart. Not duplicates by the rule; confirm each is a separate order or service period and they stay in.

Paid late: AP-71062 Apex Legal (due Nov 15) and AP-71050 Evergreen (due Nov 19) belong in this run; ask why they missed the last one.

Harborline: AP-71019 is due Nov 25. If the callback confirms the change, pay it off-cycle or accept two days late. Never pay it on the strength of the request.

Where AI goes wrong on this task

Our view of the usual failure points:

  • Reviewing only what the system proposed. Two corrections are additions. Test only the 20 “Yes” lines and you miss Bluewater and Pinecrest.
  • Treating the bank change as a formality. The model notes “verify” and leaves the line in. The rule says out until the callback is logged.
  • Calling a duplicate on amount alone. Same vendor, same amount is normal for repeat orders. The exact rule removes; the loose scan only asks.
  • Paying early because the invoice is approved. Approved means OK to pay, not pay today.
  • Getting the discount wrong. Paying at gross, or taking a discount after its date. Ask for gross, discount and net.

What stays with a person

The AP manager approves the run and signs the bridge. A person on the AP team makes the Harborline callback, to a number already on file, and logs it; the AI never contacts a vendor. The controller should hear about Harborline and the Cobalt duplicate, because both point at controls upstream. If you are comparing AP platforms that build and route the run, see our Stampli vs BILL comparison.

Check yourself

The system left Bluewater AP-71031 out because it is not due until December 12. Why pay it today?

Its 2/10 discount closes November 22, before the next run. Paying 2,822.40 today saves 57.60, worth about 37% a year.

Harborline’s bank details changed on November 12. Can you call the number in the email that asked for the change?

No. Call a number already on file. The number in the request may belong to whoever sent it.

How do you know Cobalt AP-71025 is a duplicate and Cobalt AP-71011 is not?

AP-71025 is invoice CF-44120, which paid history shows paid November 6 as AP-70988. AP-71011 is CF-44188, which is not in paid history.

Granite AP-71068 is approved. Why take it out?

It is due December 12, after the next run, with no discount. Paying now costs cash and DPO for no return.

Walk the bridge from the system total to the corrected run.

134,273.90 minus 38,785.00 removed, plus 9,130.00 added at gross, minus 277.60 discounts: 104,341.30 on 17 invoices.

Your turn: try it on your own data

Export your proposed run with terms, dates, status and approver, plus 60 to 90 days of paid history, and run the prompts with your own run calendar. Leave bank account numbers out; yes or no flags for “bank details changed” and “callback logged” are all the AI needs. Check the data zones in the Workbench setup lesson and use your company-approved tool.

Next: Accounting Operations Track 3: Audit every expense report with AI

Sources

New here? Start here to find the best guide for your job, or use the free finance templates, the CFO metrics library and the CFO moves tracker.