Templates / Extract invoice data to Google Sheets with Ollama and Gmail alerts

Extract invoice data to Google Sheets with Ollama and Gmail alerts

Ready for 3.0

by Ravi · 0 views · created 2026-11-10

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 11 nodes and runs when someone submits an n8n form (“Upload invoice”). Along the way it connects Google Sheets and Gmail.

How it runs

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

  1. Route by file type (Switch): routes items into 2 branches
  2. Extract from PDF (Extract from File): extracts data from a file (pdf)
  3. Convert image to Base (Extract from File): extracts data from a file (binary to propery)
  4. Ollama: extract from PDF text (HTTP Request): calls an HTTP API (POST)
  5. Ollama: extract from image (HTTP Request): calls an HTTP API (POST)
  6. Parse & repair AI output (Code): runs custom JavaScript code
  7. Validate invoice (Code): runs custom JavaScript code
  8. Save to Google Sheets (Google Sheets): append
  9. Needs review? (If): checks a condition and branches into true / false
  10. Email review alert (Gmail): uses Gmail

Services it uses

Google SheetsGmail

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 lets you upload an invoice (PDF or image), extracts structured invoice data using local Ollama models, validates totals and line items, appends the results to Google Sheets, and sends a Gmail alert when the extracted data needs…

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