When should you use it?
- You re-key supplier PDFs into QuickBooks regularly
- An existing script still needs hand-holding
- You can test against a sandbox or a small batch
Not for: First-time accounting automation with no test environment; Books you cannot easily correct if something posts twice
What do you need, and what do you get?
You need
- Vendor PDFs
- QuickBooks Online API access
- A master item list with categories
You get
- QuickBooks records with the PDF attached
- An item list that grows when you classify new products
- Cleaned-up local files
How does it work, step by step?
- Start from what worksOpen the existing project and list the manual steps that remain.
- Attach the sourceAdd support for attaching each PDF to its matching record without touching creation logic.
- Ask, then rememberWhen a new product appears, prompt for its category and update the master list.
- Block duplicatesCheck existing records before creating, and test by running the same batch twice.
- Clean up lastDelete local copies and temp files only after attachment succeeds.
The prompt
Our own prompt, inspired by Eamonn Cottrell and written to work in Claude Code. Values in lime are placeholders.
Open this QuickBooks invoice project. Without changing how invoices are created: 1) attach each source PDF to the record it produced; 2) when an item is not in items.csv, stop and ask me for its category, then add it to the file; 3) before creating a record, check QuickBooks for an existing one with the same vendor, number and amount and skip it if found; 4) delete local PDFs and temp CSVs only after the attachment is confirmed. Add a test that runs the same batch twice.
Inspired by Eamonn Cottrell: I Automated Quickbooks w Claude Code. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Deleting local files before confirming the attachment risks losing the original.
- Run new safeguards on a small batch before trusting a full month.
Our take
Eamonn Cottrell's improvements are the unglamorous ones that turn a demo into something you can trust with real books. Attaching the original PDF to each QuickBooks record preserves the evidence an accountant or auditor will ask for. Asking once about an unseen product and saving the answer stops the same interruption every month. Refusing to post an invoice that was already processed prevents duplicates, which are among the most expensive bookkeeping mistakes. Cleaning temporary files only after a successful post avoids losing the source when something fails midway. Deliberately running the same batch twice and confirming nothing doubles is a test every automation should pass before it touches live data. Work against a QuickBooks sandbox or a copy company file first, and reconcile totals against the supplier statements after each run. Keep a human review of new categories and large amounts. Store API credentials outside the project code, and limit the integration to invoice creation rather than payments or vendor bank details.
Where the time goes back: The last few minutes of manual handling go, and the pipeline becomes safe to rerun.
FAQ
Did duplicate protection work?
Did he know the accounting API beforehand?
Source and credit
Inspired by Eamonn Cottrell. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- I Automated Quickbooks w Claude Code
- Creator
- Eamonn Cottrell
- Published on
- gotsheet.xyz
- Original date
- Aug 25, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Claude Code
- 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 23, 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.