Templates / Process scanned invoices with Google Drive, OCR & OpenAI to Google Sheets

Process scanned invoices with Google Drive, OCR & OpenAI to Google Sheets

Ready for 3.0

by Ovadia Rocks · 1,856 views · created 2025-08-13 · 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 19 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Google Drive, Google Sheets and Mailgun. It also calls api.ocr.space over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Fetch 50 docs (Google Drive): work with file folder
  2. Download file (Google Drive): download
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Prepare a table (HTML): parses or builds HTML
  5. Set file identity (Edit Fields (Set)): sets 2 fields: id, name
  6. Mailgun: uses Mailgun
  7. Save base (Extract from File): extracts data from a file (binary to propery)
  8. Switch: routes items into 2 branches
  9. Analyze Image (HTTP Request): calls api.ocr.space (POST)
  10. Extract from File: extracts data from a file (pdf)

…plus 6 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle DriveGoogle SheetsMailgun

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

From the author

This template allows you to automatically process scanned invoices from Google Drive, extract key information using AI, and organize the data in Google Sheets with email notifications. Overview This comprehensive workflow automates the entire invoice…

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