Invoice Processor & Validator with OCR, AI & Google Sheets
n8n template #4247Summary
Use template📝 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 eac
How to set it up
- Open template #4247 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create 2 credentials under Credentials → Add credential: Google Sheets, OpenRouter Chat Model. Then open each of those nodes and pick the credential.
- Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "Invoice Processor & Validator with OCR, AI & Google Sheets" (https://n8n.io/workflows/4247). It uses: Google Sheets, Code, AI Agent, OpenRouter Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Questions
Yes. Dhrumil Patel published it free on n8n.io as a verified creator, and it has 14K views. It runs on n8n Cloud or a self-hosted n8n instance.
Google Sheets, OpenRouter Chat Model. The other 2 nodes are built into n8n.
Similar workflows
NameViews
- Automatic email invoice archiving & data extraction with Gmail, Drive & AI946
- Generate AI Viral Videos with Seedance and Upload to TikTok, YouTube & Instagram215K
- Chat with a Google Sheet using AI50K
- Automate sales cold calling pipeline with Apify, gpt-5.6-terra, and WhatsApp34K
- Automate Product Training & Customer Support via WhatsApp, GPT-4 & Google Sheets32K
- Create & Upload AI-Generated ASMR YouTube Shorts with Seedance, Fal AI, and GPT-424K
- AI Email Analyzer: Process PDFs, Images & Save to Google Drive + Telegram21K
- Customer Support WhatsApp Bot with Google Docs Knowledge Base and Gemini AI15K