An AI bookkeeping pipeline misses whatever never reaches the inbox it reads. When we reconciled 74 bank transactions against ours, 59 ended up with a receipt filed, but many only after manual work: vendors that never email invoices, payment confirmations the LLM correctly read as zero-amount, receipts in unwatched mailboxes, and ambiguous amount matches.
The pipeline in question is our own: an LLM receipt scanner that watches a business inbox, classifies every email, extracts vendor, amount and currency, and forwards priced receipts to our accountant. We have written up how we built an LLM expense scanner that processed 574 emails in 1.6 minutes. This post covers the opposite direction: starting from the bank statement and asking what the pipeline never saw.
Why reconcile from the bank statement instead of the inbox?
Because an inbox-first pipeline can only grade itself on emails it received. Every precision metric looked healthy: classifications were right, amounts were right, forwards succeeded. The bank statement is the only ground truth that includes spend with no email trail, so it is the only audit that measures recall, which is the number bookkeeping actually depends on.
We exported roughly a quarter of card transactions, 74 rows from April to early July, and walked every row against the pipeline's database of processed emails and detections, then against the raw IMAP mailboxes. Each row got a status: sent, excluded, closed with an explanation, or pending. The whole annotated table lives in one file, and it became the most useful evaluation artifact the project has.
The failure modes clustered into five root causes. None of them was "the model got it wrong" in the usual sense. The model mostly did exactly what it was asked. The system around it was asking the wrong question of the wrong inbox.
Why did Google never email us an invoice?
Google never emailed a single Ads billing document because a Google payments profile invitation sent to our billing address expired unaccepted after 13 days. Without an accepted payments profile user on that address, invoices still existed but were only reachable in the billing console. Nine Google Ads card charges therefore had zero email trail for the pipeline to find.
We traced it to one easily ignored email titled "Action required for your Google Account." It arrived in early April, nobody acted on it, and the invite lapsed. In Google's model, billing documents belong to the payments profile, not to the Ads account, so having admin access to the Ads account does not route invoices to you.
The second trap is shape. Google Ads on automatic payments charges the card each time a spend threshold is hit, so one month produced four or five card charges of different sizes. The invoice is a single consolidated monthly document. We only reconciled it once we pulled the monthly PDFs from the console and summed the charges: every month matched to the öre, with two charges settling a day into the following month because of bank lag.
for each vendor_month in consolidated_invoices:
rows = bank_rows(vendor, settled within month + 3 day lag window)
if abs(sum(rows) - invoice.total) < 0.01:
mark rows as covered_by(invoice)
else:
flag for human review # never force a partial match
One of the three monthly documents was not a charge at all but a credit adjustment for invalid ad activity. A naive matcher that pairs documents to charges one-to-one would have tried to attach a credit note to a debit. Google Workspace shared the same root cause and was still unresolved when the audit closed.
Why did the LLM mark real BytePlus spend as zero-amount?
Because the LLM was right about the email and wrong about the world. BytePlus sends a "Payment Success Notification" for each top-up, but the email carries no invoice and no structured amount block. The classifier read roughly 20 of them, correctly concluded the email itself was not a receipt, and stored them as is_expense=false with a zero amount.
The real invoices only exist in the BytePlus console's invoice page as consolidated monthly statements, billed for the prior calendar month and covering every service on the account. They do not map one-to-one to bank rows. A single card charge for a model resource package had no standalone PDF at all; it only existed as a line inside the month's statement.
This is the failure mode we think matters most for anyone building document AI. Our earlier fix had taught the pipeline to exclude zero-price confirmations, such as train, hotel and rideshare booking emails, so the accountant never received a "receipt" without a price. That rule is correct for bookings. Applied to a payment confirmation, the same rule silently hides real spend.
We chose to split the class rather than loosen the rule. "Confirmation without a price" now needs a second axis: is this a booking that will produce a priced receipt elsewhere, or a payment that already happened and whose invoice lives in a vendor console? The second kind is a real expense with an external document, and it should create a "fetch invoice" task, not a skip.
How do you pick between two bank rows that both match one invoice?
Compute the implied exchange rate for each candidate and compare it with the band your other foreign-currency charges actually settled at that quarter. One USD invoice matched two same-day rows. One implied about 8.09 SEK per USD, the other about 5.44. The 5.44 row was implausible, but only once we checked its original billing currency.
Our other USD card charges that quarter settled between roughly 9.5 and 9.7 SEK per USD, which is consistent with ECB reference rates plus card markup. Neither candidate sat inside that band. Digging further showed the 5.44 row had been billed in Indonesian rupiah, not dollars, so its "implied USD rate" was meaningless. Converted from its real currency, it fell back into a plausible range.
band = [rate(row) for row in quarter_rows if row.fx_currency == invoice.currency]
for candidate in matches:
implied = candidate.sek_amount / invoice.amount
score = distance(implied, band)
if candidate.original_currency != invoice.currency:
score = REJECT # different currency, not a rate problem
pick lowest score; if none inside band -> flag as approximate
The lesson is that amount matching across currencies is a probabilistic decision, and it should be logged as one. We kept the better match, flagged the other as the less certain of the two in the reconciliation record, and noted that neither was fully confirmed by currency logic. An auditor can follow that reasoning. A silent "best match" cannot be followed.
Why were receipts sitting in mailboxes the pipeline never watched?
Because people buy things from whatever account they are logged into. The pipeline watched one business inbox, but receipts were scattered across three mailboxes on the same mail server, each with separate credentials. Physical-goods orders, a flight e-receipt, café receipts and a SaaS subscription invoice all lived outside the watched inbox, invisible to every metric we tracked.
The second mailbox held every marketplace order confirmation for hardware and office supplies, filed in tidy monthly receipt folders by a human, plus the flight booking receipt. The third held HTML-only "thanks for your purchase" receipts with itemized totals and no attachment, the format we covered in when SaaS receipts break your expense automation, plus a genuine PDF subscription invoice.
Two side effects showed up when we bulk-forwarded from the second mailbox. The forward matched on sender, not on bank row, so it sent 14 order confirmations when only 9 corresponded to a transaction on the statement. The extra five were harmless but became noise for the accountant. The fix is to scope any bulk action to matched rows, never to a vendor filter.
What can no receipt pipeline fix?
Fifteen of the 74 rows could not be closed with a receipt, and model quality cannot change that. Seven were booking confirmations with no price. Eight had no receipt anywhere: in-store hardware purchases, taxi rides paid in the car, fast food with no photo taken, and a refund. The only fixes are capture at the point of sale or an explanation.
We drew a hard line here early: no recreated or synthesized receipts, ever. Rows without a real receipt were closed with an explanation email, which is what an accountant actually needs. Booking and itinerary confirmations without a price stayed excluded, because forwarding a priceless rideshare or hotel confirmation as a receipt is worse than forwarding nothing.
Two more row types need explicit handling. Positive amounts are refunds or credits, and one was matched by amount to an unrelated small purchase because the matcher ignored the sign. Separately, two receipts that a person was sure had been sent were nowhere in the Sent folder. Human memory of "already done" turned out to be a failure mode too, and only the reconciliation caught it.
What should change after an audit like this?
The audit moved our definition of done from "every email classified" to "every bank row explained." The resulting action items: accept the payments profile so Google invoices arrive by email, treat payment confirmations as real spend, watch every receipt mailbox, match with sign and currency awareness, and scope all forwarding to matched rows.
The full action list, in the order we prioritized it:
- Fix delivery before extraction. Re-issue and accept the payments profile invitation for the billing address. One admin action removes the manual console pull behind nine bank rows a quarter.
- Add a console-pull lane. For vendors that only issue consolidated statements, the pipeline creates a monthly "fetch invoice" task instead of waiting for an email that will never come.
- Split the confirmation class. Booking confirmations are excluded; payment confirmations are recorded as spend pending an external document.
- Match like an accountant. Respect the sign, check the original currency, compare implied FX rates against the quarter's own band, and allow a settlement-lag window across month boundaries.
- Treat the bank export as the eval set. Run the reconciliation every quarter and track recall per root cause, not just classification accuracy.
We considered pushing more of this into the LLM prompt and ruled it out. The model cannot reason about an email it never received or an invoice that lives behind a login. Those are system-design gaps, and they belong in deterministic code and process, with the LLM doing the narrow extraction job it is good at.
Why is bank-first reconciliation the real test of an AI receipt pipeline?
Because the hard failures in AI bookkeeping are about coverage, not extraction. Our 74-row reconciliation showed a model that read almost every email correctly and a system that still missed whole vendors: Google invoices blocked by an expired invitation, BytePlus spend hidden behind correct zero-amount classifications, and receipts in mailboxes nobody wired up.
If your document AI pilot reports high accuracy and the finance team still does manual chasing every month, this is usually why. Grade the pipeline against the ledger, not against its own inbox, and the real backlog appears within an afternoon.