Templates / Invoice processor & validator with OCR, AI & Google Sheets

Invoice processor & validator with OCR, AI & Google Sheets

Needs changes

by Dhrumil Patel βœ“ Β· 34,704 views Β· created 2025-05-20 Β· Invoice Processing, AI Summarization

Needs 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.0Replace 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)

OpenRouter Chat ModelAI AgentGoogle Sheets

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.

View the original on n8n.io β†’ Check your own copy

Get the weekly β€œwhat broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.