Invoice processor & validator with OCR, AI & Google Sheets
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Text Extractor (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Split Out
n8n-nodes-base.splitOut - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Extract from File
n8n-nodes-base.extractFromFile - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets
What it does
π Say goodbye to manual invoice checking! This smart workflow automates your entire invoice processing pipeline using AI, OCR, and Google Sheets. --- βοΈ What This Workflow Does: π₯ 1. Reads an invoice PDF β Select a local PDF invoice from your machine. π 2. Extracts raw text using OCR β Converts scanned or digital PDFs into readable text. π§ 3. AI Agent processes the text β Transforms messy raw text into clean JSON using natural language understanding. π§± 4. Structures and refines the JSON β Converts AI output into a structured, usable format. π 5. Splits item-wise data β Extracts individual invoice line items with all details. π 6. Generates unique keys β Creates a unique identifier for each item for tracking. π 7. Updates Google Sheet β Adds extracted items to your designated sheet automatically. π 8. Fetches master item data β Loads your internal product master to validate against. β
9. Validates item name & cost β Compares extracted items with your official records to verify accuracy. π 10. Updates results per item β Marks each item as Valid or Invalid in the sheet based on matching. --- πΌ Use Case: Perfect for businesses, freelancers, or operations teams who receive invoices and want to automate validation, detect billing errors, and log everything seamlessly in Google Sheets β all using the power of AI + n8n. > π Fast. Accurate. Zero manual work. --- OCR AI Invoices Automation.