Templates / Extract invoice data from scanned PDFs to Google Sheets with Sarvam and Gemini

Extract invoice data from scanned PDFs to Google Sheets with Sarvam and Gemini

Ready for 3.0

by Divyanshu Gupta ✓ · 185 views · created 2026-02-28 · 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 16 nodes and runs when someone submits an n8n form. Along the way it connects Google Gemini Chat Model and Google Sheets.

How it runs

Trigger: When someone submits an n8n form.

  1. Create Sarvam invoice OCR job (HTTP Request): calls an HTTP API
  2. Merge: merges the data from its input branches
  3. Generate Sarvam presigned upload URL (HTTP Request): calls an HTTP API
  4. Upload invoice PDF to Sarvam (HTTP Request): calls an HTTP API
  5. Start Sarvam invoice OCR (HTTP Request): calls an HTTP API
  6. Check Sarvam OCR status (HTTP Request): calls an HTTP API
  7. Wait: pauses before continuing
  8. Get OCR Result (HTTP Request): calls an HTTP API
  9. Download Sarvam OCR output ZIP (HTTP Request): calls an HTTP API
  10. Decompress OCR result file (Compression): uses Compression

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

Services it uses

Google Gemini Chat ModelGoogle Sheets

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

From the author

This template is designed for operations, finance, and accounting teams that need to automatically process scanned invoices and extract structured data without manual entry. It is ideal for businesses handling vendor invoices, reimbursement forms, or bulk…

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