Build a system that follows up on overdue invoices

A freelancer used Claude Code to automate invoice chasing, from ranking late bills to drafting replies and pausing follow-ups after a payment promise.

Done with Claude Code· Advanced

What they did
They set up PayMind, a Next.js dashboard backed by three narrow agents. One pulls unpaid invoices from a CSV or database and sorts them by value and how late they are, another writes follow-up messages tuned to the client and channel, and a third reads incoming replies to identify the client’s intent. OpenRouter routes the cheaper analysis work to a free model and the writing to a paid one, while each draft waits for human approval before it goes out.
How it went
For around 50 invoices a month, they say the process dropped from about 5 hours of work to roughly 10 minutes. They also report API spending of about $0.10, or nothing at all in some cases. The main failure risk they call out is a bad CSV entry leading to the wrong tone or target, which is why they keep it in draft mode first.
Tips
Keep the approval step in place before any message is sent, deleted, or otherwise acts on a real account. A 48-hour pause after a payment promise helps avoid over-messaging clients who have already responded.

Try it yourself with Claude Code

Help me set up an invoice follow-up workflow using [Claude Code or another agent tool] and my [CSV export / accounting data / folder of invoices]. First, find invoices that are past due, rank them by days overdue and amount, and group clients by how urgent their balance is. Then draft a reminder for each one in a [friendly / firm] tone that fits the client and the channel, and classify any incoming replies by what the client is saying. If a client promises to pay, pause follow-up messages for 48 hours. Before any email or message is sent, show me the draft and stop until I approve it; if I reject it, revise it instead of sending.

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

Read the original on dev.to ↗

Get 3 agent uses like this every morning

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