Templates / Extract invoice data into CSV files and Google Sheets using OCR.space

Extract invoice data into CSV files and Google Sheets using OCR.space

Ready for 3.0

by Abdullah al MaHI · 1 views · created 2026-09-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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets. It also calls api.ocr.space over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. OCR via OCR.space (HTTP Request): calls api.ocr.space (POST)
  2. OCR Succeeded? (If): checks a condition and branches into true / false
  3. Respond OCR Error (Respond to Webhook): sends the response back to the webhook caller
  4. Extract Invoice Fields (Code): runs custom JavaScript code
  5. Respond Success (Respond to Webhook): sends the response back to the webhook caller
  6. Append to Google Sheet (Google Sheets): append (sheet)
  7. Convert to CSV (Convert to File): converts data to a file (csv)
  8. Save CSV to Disk (Read/Write Files from Disk): writes a file to disk

Services it uses

Google 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 receives invoice PDFs or images via a webhook, extracts text using OCR.space, parses key invoice fields and line items with deterministic rules, and then saves the results as a CSV file and optionally appends them to Google Sheets…

Excerpt from Abdullah al MaHI'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.