n8n Automated Invoice OCR & Math Audit Workflow (Google Sheets)
Stop manual invoice data entry and eliminate math errors before they hit your accounting ledger.
This turnkey n8n workflow monitors a Google Drive folder, extracts structured accounting fields from PDF invoices using GPT-4o-mini, runs an automated JavaScript reconciliation check (Subtotal + Tax = Total), and logs verified rows into Google Sheets.
WHAT IS INCLUDED:
- Production-ready n8n workflow (.json)
- Pre-formatted Google Sheets Ledger template (.csv)
- Step-by-step deployment & credential setup guide (.pdf)
EXTRACTED FIELDS:
Vendor Name, Tax ID, Invoice Number, Invoice Date, Currency, Subtotal, Tax Amount, Total Amount, Expense Category, Automated Audit Status (VERIFIED / MATH_DISCREPANCY), and Variance Amount.
REQUIREMENTS:
- n8n (Cloud or Self-Hosted)
- OpenAI API Key (~$0.0005 per invoice)
- Google Drive & Google Sheets