Templates / Extract and validate invoice data from Google Drive using OCR.Space, Gemini, and Google Sheets

Extract and validate invoice data from Google Drive using OCR.Space, Gemini, and Google Sheets

Ready for 3.0

by WeblineIndia ✓ · 309 views · created 2026-07-14 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Google Gemini, Gmail and Google Sheets. It also calls api.ocr.space over HTTP.

How it runs

Trigger: On Google Drive events (file created).

  1. Download Invoice File (Google Drive): download
  2. Validate Supported File Type (If): checks a condition and branches into true / false
  3. Extract Invoice Text (OCR) (HTTP Request): calls api.ocr.space (POST)
  4. Check OCR Processing Status (If): checks a condition and branches into true / false
  5. AI Invoice Data Extraction (Google Gemini): uses Google Gemini
  6. Validate Extracted Invoice Data (Code): runs custom JavaScript code
  7. Check Missing Invoice Fields (If): checks a condition and branches into true / false
  8. Send Manual Review Alert (Gmail): uses Gmail
  9. Store Invoice Data (Google Sheets): append
  10. Send Processing Confirmation (Gmail): uses Gmail

Services it uses

Google DriveGoogle GeminiGmailGoogle Sheets

HTTP calls to: api.ocr.space

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This workflow monitors a Google Drive folder for newly uploaded invoice files, extracts text with OCR.Space, uses Google Gemini to convert the OCR text into structured invoice fields, validates required values, then stores results in Google…

Excerpt from WeblineIndia's description on n8n.io.

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.