Templates / Automate invoice data extraction with OCR.Space, GPT & Google Sheets

Automate invoice data extraction with OCR.Space, GPT & Google Sheets

Ready for 3.0

by Supira Inc. ✓ · 582 views · created 2025-10-29 · 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 10 nodes and runs on a schedule (every week at 20:00). Along the way it connects Google Drive, OpenAI and Google Sheets. It also calls api.ocr.space over HTTP.

How it runs

Trigger: On a schedule (every week at 20:00).

  1. Get Parent Folder (Google Drive): work with file folder
  2. Get Monthly Subfolder (Google Drive): work with file folder
  3. List Files (Google Drive): work with file folder
  4. Download File (Binary from Drive) (Google Drive): download
  5. OCR (OCR.Space Parsing) (HTTP Request): calls api.ocr.space (POST)
  6. Clean OCR Text (Noise Removal) (Code): runs custom JavaScript code
  7. AI Extraction (Generate Structured JSON) (OpenAI): uses OpenAI
  8. Parse AI Output to JSON (Code): runs custom JavaScript code
  9. Append to Google Sheets (Google Sheets): append

Services it uses

Google DriveOpenAIGoogle 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 (6)

From the author

Overview This template automates invoice processing for teams that currently copy data from PDFs into spreadsheets by hand. It is ideal for small businesses, back-office teams, accounting, and operations who want to reduce manual entry, avoid human error, and…

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