Extract invoice data from scanned PDFs to Google Sheets with Sarvam and Gemini
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Overview
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 document intake.
What this workflow does
This workflow uses Sarvam AI Vision model to perform OCR on scanned invoices and extract raw text. The extracted content is then processed using an LLM to identify key invoice fields such as:
- Vendor name
- Invoice number
- Invoice date
- Total amount
- GST / Tax amount
The structured data is automatically appended to Google Sheets for tracking, reconciliation, or downstream accounting automation.
Requirements
- Sarvam Vision API key (configured using HTTP Header credentials)-(https://dashboard.sarvam.ai/key-management)
- Google Gemini API key (configured via Google Gemini credentials in n8n)
- Google Sheets OAuth credentials
How to set up
1.) Add your Sarvam API key in Credentials. 2.) Connect your Google Sheets account. 3.) Update the target Sheet ID. 4.)Test with a sample invoice PDF.
Need Help?
ask in the Forum!
Happy Hacking!