← Back to library

Match a bank statement to invoices and rename the files

Daria Cupareanu dreaded the monthly job of pairing bank lines with invoices, since many services never email one. She placed one statement and several invoices together in a folder and had an agent match lines, rename files and flag gaps.

  • OutcomeArrive at your accountant's deadline with every charge matched to an invoice, the gaps listed and the invoice files named consistently.
  • SetupMinutes
  • LevelStarter
  • CreditDaria Cupareanu
View original
Works with
Claude CoworkClaude Code

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • You send a monthly pack to an accountant
  • Some vendors only offer invoices inside their dashboards
  • Invoice filenames are a mess

Not for: Posting entries into accounting software without review; Statements you are not allowed to share with an AI provider

What do you need, and what do you get?

You need

  • Monthly bank statement
  • Folder of invoices you already have
  • Your preferred file naming pattern

You get

  • Excel file of charges with category and matched invoice
  • List of charges still missing an invoice
  • Invoices renamed to one pattern

How does it work, step by step?

  1. Gather one monthPut the statement and every invoice you have into a fresh folder.
  2. Ask for the full pass at onceRequest cleaned vendor names, a category per charge, matching, a missing list and a spreadsheet.
  3. Give a naming ruleFor example date, vendor, amount, so files sort sensibly.
  4. Chase the gapsUse the missing list to log in to each vendor and download what is absent.
  5. Re-run to confirmAdd the new files and repeat until the missing list is empty, then send the pack.

The prompt

Our own prompt, inspired by Daria Cupareanu and written to work in Claude Cowork and Claude Code. Values in lime are placeholders.

Prompt0 variables
In this folder are my bank statement for [month] and the invoices I have. Tidy how merchants are named, assign each line a category, pair lines with documents using amount and date, and list lines that lack one. Give every document a YYYY-MM-DD_vendor_amount filename. Save an Excel file with all charges, categories and the matched filename, plus a tab of the missing ones. Do not delete anything.

Inspired by Daria Cupareanu: Claude Cowork: 10 Use Cases I Tested + 67 More by Profession. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • The agent can only match what is in the folder; dashboard-only invoices still need fetching.
  • Spot-check a few matches with similar amounts before sending anything.

Our take

Month-end matching is a perfect first job for a desktop agent because the answer is checkable: either a charge has a document or it does not. Asking for gaps instead of invented matches is the right rule. Daria's request covered the whole job in one pass: clean vendor names, a category per charge, matches, a list of what is missing and a spreadsheet. Asking for everything at once avoids several half-finished rounds. Give it a naming rule such as date, vendor and amount so files sort sensibly for your accountant. The missing list is the most valuable output, since many services only offer invoices inside their dashboards and the agent cannot fetch those for you. Log in, download them, add them to the folder and run it again until the list is empty. Before sending the pack, spot-check matches where amounts are similar, because those are the ones most likely to be paired wrongly. Check that your statements may be shared with an AI provider at all.

Where the time goes back: The dreaded hour of matching and renaming shrinks to reviewing a list of gaps.

FAQ

Did it work first time?
In the writer's test the extraction and renaming were correct and every unmatched charge was marked.
Why rename the files?
A consistent pattern makes the handoff and next month's search much faster.

Source and credit

Inspired by Daria Cupareanu. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Claude Cowork: 10 Use Cases I Tested + 67 More by Profession
Creator
Daria Cupareanu
Published on
aiblewmymind.substack.com (Substack)
Original date
Feb 12, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Cowork
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Finance & Accounting

All 62 Finance & Accounting playbooks →

Related playbooks

Finance & AccountingSkill✓ AI dry run

Chase overdue invoices in the right tone

Draft reminders for every overdue invoice, gentle for good customers and firm for repeat late payers.

Credit: Anthropic

Under an hour
Finance & AccountingSkill✓ AI dry run

Have Claude build Excel files that recalculate cleanly

Give Claude the xlsx skill so that any spreadsheet it creates or edits keeps live formulas instead of pasted results, passes a full recalculation with zero formula errors before delivery, labels every assumption with its source, and follows standard financial model conventions or the existing file's own styling.

Credit: Anthropic

Minutes
Finance & AccountingPrompt✓ AI dry run

Build your own CRE underwriting model with a coding agent

An Excel cash-flow model shaped around how you underwrite, built and extended with a coding agent instead of outsourced runs of a rigid tool.

Credit: u/rajuabju on r/ClaudeAI

Under an hour