Set up a freelance invoice workflow with Claude Code

Alejandro Arce used Claude Code to stitch together invoice data, PDF creation, and email sending, saving about 90 minutes of weekly admin.

Done with Claude Codeยท Intermediate

What they did
Alejandro Arce asked Claude Code to create three connected pieces for his invoicing process. A JSON file stores client info, line items, and whether each invoice is paid. A separate script fills an HTML template and exports it as a PDF with Puppeteer, while a Nodemailer script sends the file through SMTP, saves the send date, and triggers a reminder after two weeks if the invoice remains unpaid. He runs the system at the end of each invoice period.
How it went
He spent about four hours on the first version and another two hours refining it. He says it now cuts out roughly 90 minutes of admin every week. He still updates payment status by hand, and it does not include payment processing or support for multiple currencies.
Tips
Try the whole flow with test invoices before using it for real clients, since SMTP mistakes can route messages to spam. Keep a manual check for paid invoices if your system does not connect to payments.

Try it yourself with Claude Code

Help me build a simple invoicing workflow for my freelance business in this folder. Create a JSON file for [client name, email, hourly rate, payment terms, invoice items, paid/unpaid status], a script that turns an HTML template into a PDF invoice, and a script that emails it through SMTP while logging the send date. If an invoice is still unpaid after [14 days], prepare a reminder draft and stop for my approval before any email is actually sent. I want one command to generate a test invoice for [client].

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.