Templates / Split multi-invoice PDFs into invoices with Extend and Google Sheets

Split multi-invoice PDFs into invoices with Extend and Google Sheets

Ready for 3.0

by Iela Media ✓ · 0 views · created 2026-11-25

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 17 nodes and runs when someone submits an n8n form (“Upload an invoice PDF”). Along the way it connects Google Sheets. It also calls api.extend.ai over HTTP.

How it runs

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

  1. Post PDF to Extend API (HTTP Request): calls api.extend.ai (POST)
  2. Set OCR and Score Thresholds (Edit Fields (Set)): sets 3 fields: ocrThreshold, reviewScoreThreshold, mathTolerance
  3. Format Error Data (Code): runs custom JavaScript code
  4. Post Split Run to API (HTTP Request): calls api.extend.ai (POST)
  5. Append Error to Sheets (Google Sheets): append
  6. Wait: pauses before continuing
  7. Fetch Split Run Status (HTTP Request): calls an HTTP API
  8. Route by Split Status (Switch): routes items into 2 branches
  9. Process Invoice Splits (Code): runs custom JavaScript code
  10. Check Invoices Found (If): checks a condition and branches into true / false

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

Services it uses

Google Sheets

HTTP calls to: api.extend.ai

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

From the author

Quick overview This workflow collects an uploaded multi-invoice PDF via an n8n form, uses Extend to split it into individual invoices and extract key invoice fields, then writes normalized invoice rows to Google Sheets while logging failures and “no invoice…

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