Build an invoice agent for bookkeeping review

Two accountants used Cursor and Claude Code to automate invoice coding and cut per-invoice cost sharply.

Done with CursorClaude Codeยท Intermediate

What they did
At a $10M firm, two accountants who were not engineers put together an invoice-handling agent with Cursor and Claude Code. The agent scans each invoice, assigns coding, and sends through only the ones it is confident about. Anything uncertain is routed to a person, and they kept adding tricky examples back into the workflow over time.
How it went
They said the cost per invoice dropped from about $7 to about $0.20, a 97% decrease. Reported accuracy moved from roughly 80% after one week to 98% after six months. The main remaining workload was checking exceptions and training the queue with edge cases.
Tips
This kind of setup depends on a human owning the exception list, not just the automation. If you try it, make sure the agent pauses before any posting or submission step and only handles cases it can justify confidently.

Try it yourself with Cursor

I work in bookkeeping at [company type] and want to set up an agent to process vendor invoices from [folder or inbox]. For each invoice, extract the vendor, invoice date, invoice number, line items, and total, then match it to the best GL account from [chart of accounts file]. If anything looks off, such as a missing field, duplicate, or odd total, send it to a review queue instead of deciding on your own. Create a reviewable CSV with your findings, then stop and wait for my approval before you post, submit, delete, or send anything in [accounting system]. As you review more invoices, learn from the exceptions I mark so the next pass is more accurate.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.