Templates / Extract & structure invoice data with Google Vision OCR, Gemini LLM & Google Sheets

Extract & structure invoice data with Google Vision OCR, Gemini LLM & Google Sheets

Ready for 3.0

by Budi SJ ✓ · 2,684 views · created 2025-08-12 · Invoice Processing, Multimodal AI

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 12 nodes and runs when someone submits an n8n form (“Upload Purchase Invoice”). Along the way it connects OpenRouter Chat Model, Google Drive, Telegram and Google Sheets.

How it runs

Trigger: When someone submits an n8n form (“Upload Purchase Invoice”).

  1. Upload file (Google Drive): uses Google Drive
  2. Download file (Google Drive): download
  3. Code: runs custom JavaScript code
  4. Set Vision API (Edit Fields (Set)): sets 1 field: visionAPI
  5. HTTP Request: calls an HTTP API (POST)
  6. Basic LLM Chain: sends a prompt to an LLM, with model: OpenRouter Chat Model; output parser: Structured Output Parser
  7. Code: runs custom JavaScript code
  8. Append or update row in sheet (Google Sheets): append or update
  9. Send a text message (Telegram): uses Telegram

Services it uses

OpenRouter Chat ModelGoogle DriveTelegramGoogle Sheets

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 (10)

From the author

Automated Invoice Collection & Data Extraction Using Vision API and LLM This workflow automates the process of collecting uploaded invoices, extracting text using Google Vision API, and processing the extracted text with an LLM to produce structured data…

Excerpt from Budi SJ'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.