← Insights

I Taught Claude to Do Cash Application. Here’s How It Actually Works.

By Steve Kelly, Books & Bots Advisory ·

Illustration of AI cash application: remittance emails and an invoice on the left flow through a glowing network to a bank card and a payment list with every line checked off on the right

It reads the AR inbox, matches remittances to the bank, and posts payments. It only posts when everything ties to the cent.

Cash application is one of those jobs nobody brags about but everybody depends on. A remittance shows up in the AR inbox. Someone opens the attachment, finds the invoices, checks the bank, sorts out the deductions, keys the payment, applies it, and moves on to the next one.

It’s careful, repetitive work. That makes it a great fit for an AI agent, as long as you build it the right way.

Here’s how I set it up.

Step one: let Claude learn the rules from your history

I didn’t start by writing rules. I started by having Claude study how we already did it.

Claude pulled a few months of customer payments our AR team had keyed by hand. Then it lined each one up against the remittance and the bank deposit behind it. For each customer, it worked out the pattern:

  • What the bank line looks like, and which reference on it ties back to an invoice
  • How the remittance is laid out: which column is the invoice, which is the amount, which lines are deductions
  • How each deduction type gets booked (co-op, defectives, returns, chargebacks, markdowns) and which credit memo item it lands on

Sometimes our written AR guidance and our past practice disagreed. When that happened, the guidance won, and we wrote the decision down. The result is a plain-English “rules of the road” file for each customer, along with the evidence behind each rule.

Before anything went live, Claude did a dry run on past remittances that had already been booked. It had to tie every one to the cent and produce the same credit memos our team had entered. It did. Then we turned it on.

How a run works

The inbox. Remittance emails land in the shared AR mailbox. The attachments get copied to a shared folder, and Claude reads them through a Microsoft 365 connector. Anything that isn’t a remittance, like a proof-of-delivery request or a past-due notice, gets left alone.

The bank is the source of truth. Claude pulls deposits straight from the bank through Plaid. It doesn’t use a spreadsheet export or anyone’s notes. A remittance only says money is coming. The bank line proves it arrived.

The match. A payment posts only when the two agree: the invoices on the remittance, less deductions, have to equal the bank deposit to the cent. Every invoice has to exist, sit on the right customer, and be open for exactly the amount remitted.

The posting. Claude creates one payment per deposit, dated the bank date, with the customer’s own reference in the memo. That memo is the safety key. If a payment with that reference already exists, Claude skips it. It also means the bank rec pretty much matches itself.

Deductions become credit memos, one per deduction type, entered the same way our team keys them, and applied right on the payment. If an open credit memo for the exact amount already exists, Claude uses it instead of creating a new one.

The self-check. After posting, Claude checks its own work. The payment total must equal the deposit, and the invoices must show nothing left open. If either check fails, the payment gets flagged as failed and nothing is deleted.

The part that matters most: it fails closed

The design principle is simple. If it doesn’t tie, it doesn’t post.

  • Partial payments or price differences: If a customer paid less than the invoice without a deduction to explain it, that’s an exception, and a person decides the credit.
  • Invoices already partly applied: Exception. Someone finishes it by hand.
  • Short-pays covered by a credit: Claude posts only when one open credit memo covers the gap exactly. Anything else waits for a person.
  • Money going out: The automation never posts refunds or chargebacks.
  • Unknown line types on a remittance: Exception, never a guess. Then we teach the rules the new line type.
  • Timing gaps: If the remittance shows up before the deposit (or the other way around), Claude waits a few days instead of crying wolf. Once that window passes, it checks whether someone already applied the deposit by hand, looking for the same customer, the same amount, and a close date. If two candidates look equally right, it asks instead of picking one.

That last rule came from a real lesson. An early run flagged deposits our team had already applied. It was annoying but not dangerous. We added the check, and the false alarms stopped.

People stay in the loop

Every payment Claude touches goes into a shared log as posted, exception, or already recorded by hand. Our AR reviewer has her own columns in that log, Approved or Needs Fix plus her comments, and the automation never writes to them.

After each run, Claude drafts a short summary email for her. It links each payment and lists the exceptions with the reason and next step for each. I review it and send it. If she marks something Needs Fix, it comes back to me, and Claude doesn’t try to fix it on its own.

Changing how a line type gets booked takes her approval first. Then the rule changes.

It runs on a schedule every weekday morning. When I run it by hand, it shows me a preview and waits for my “go.”

Why this works

It isn’t magic. It’s the same discipline a good AR clerk already has, written down and applied every time:

  • Learn the rules from what you’ve actually done
  • Let the bank prove the money
  • Tie to the cent or stop
  • Log everything and keep a human reviewer

Adding a new customer isn’t a new project. It’s a new set of rules, plus a new reader if their remittance format is different.

The team now spends its time on the exceptions that actually need judgment instead of keying payments that were always going to tie.

Want help setting up something like this for your AR team? That’s the work I do at Books & Bots Advisory. Get in touch.

What’s the most painful part of cash application on your team right now: the remittances, the deductions, or the bank match?

Also on X: follow @BooksAndBotsAI for more on AI in the month-end close.

Want a cleaner, faster close?

Tell me about your books and your month-end process. I'll follow up to set up a discovery call.