Invoice Processor & Validator with OCR, AI & Google Sheets

Go to Workflow
13,688 views
Built by Dhrumil Patel Dhrumil Patel
Created on May 20, 2025

Description

πŸ“ 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.

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter