Replace an invoicing app with a Claude Code-built script: JSON records, HTML template, PDF export, email and an unpaid reminder
A solo AI automation consultant used Claude Code to build his own invoice pipeline for four regular clients: invoice data in JSON, an HTML template rendered to PDF with Puppeteer, emailed with Nodemailer, with an automatic reminder after two unpaid weeks.
Evidence: The source shows its work: steps, screenshots, code or data you can inspect.
The business problem
Invoice admin for a handful of recurring service clients took about 90 minutes a week, and the invoicing apps he had tried (FreshBooks, Wave, Bonsai) added monthly fees for features he did not use.
What was tried
1. With Claude Code, define each invoice as a JSON object: client details, dates, line items (hours times rate), subtotal, tax (his example uses 5% GST), total and payment status. 2. Have Claude Code write an HTML invoice template with placeholders such as the invoice number and a loop over line items. 3. Render the HTML to a PDF named by invoice number with Puppeteer (headless Chrome under Node.js), with margins and a footer; wkhtmltopdf is mentioned as an alternative. 4. Send the PDF with Nodemailer over SMTP, using different email wording for recurring and new clients. 5. Record the sent date and status in the JSON, and send an automatic reminder if an invoice is still unpaid after two weeks. 6. Mark payments as received by hand.
What was reported (positive)
Positive, as reported by the author: about four hours to build plus two of refinement, roughly six hours a month of admin saved (his estimate, 72 hours a year), about two seconds per PDF and under 30 seconds for ten, and no monthly SaaS fee. Savings are his own estimate with no before-and-after log.
Limitations
Vendor: the author sells AI audits and automation engagements, and the post links to them. Four clients only, one currency (CAD) and one tax rule; no payment processing or bank reconciliation, so paid status is updated by hand. Time savings are self-estimated. Sending email from your own script needs care with deliverability and storing client data.
What you need
Claude Code, Node.js, an SMTP account for sending email, and comfort running a script locally.
The post shows the data shape and the main steps; adapt tax and currency to your own country.
A prompt to try
Build a small Node.js invoicing tool: invoices stored as JSON (client, dates, line items as hours x rate, tax, total, status), an HTML template with placeholders, PDF export with Puppeteer, email delivery with Nodemailer, and a reminder email if status is still unpaid 14 days after sending. Ask me for my tax rate and currency first.
Sources
- Alejandro Arce (Arce Consulting) ↗ Vendor case study, published June 6, 2026
Source published: June 6, 2026. Last reviewed here: November 16, 2026. Spot a mistake? Tell us.
Tools in this workflow
- Claude Code: Wrote the invoice scripts and templateTry Claude Code
- Puppeteer: HTML to PDF exportTry Puppeteer
- Nodemailer: Emails invoices and remindersTry Nodemailer
Get new workflows like this by email
A short selection of the most useful new workflows, including the ones that did not work. Free, and you can unsubscribe at any time.
Related workflows
Hand your year-end bookkeeping checklist to Claude Code: it finds context in your email, reconciles in Xero and asks you only what it cannot find
The owner of a small UK company gave Claude Code his accountant's 37-item year-end checklist. Claude planned the job, reconciled about 200 bank lines in Xero, recategorised expenses and filled the form, with about an hour of his input over 80 short messages.
Let a Grok Bot agent check down WordPress sites every 30 minutes and patch only code faults, with a backup, a 200 check and a log for each fix
A WordPress hosting founder gave a Grok Bot agent one job: every 30 minutes, SSH into sites that went down, fix only bad-code crashes, leave other outages alone, and report. A second bot reviews security findings read-only.
Coordinate a dozen Claude Code sessions as a tiny company with a message relay, an approval-claim filter and a health check for silent stops
A solo operator runs several small projects with Claude Code sessions in roles (a COO, project owners, a coder) and lists what broke in the first weeks: sessions that could not talk, fake approval claims, and scheduled tasks that stopped silently. Revenue is still near zero.
Get the first 10 paying customers by hand with a free Claude Code skill: warm contacts first, pain-signal prospect list, three follow-ups, launch last
An open-source Claude Code skill that plans first-customer outreach: who to contact in what order, a prospect sheet built around a pain signal, short problem-first messages, a fixed follow-up schedule, and a launch only after 10 paying customers.