Block 1 - Check file type
- Type / Role
- n8n-nodes-base.switch - switch
- Config choices
- Version 3.2
This workflow is provided as-is. Please review and test before using in production.
Smart Document Parser for Invoices, Logs or Sensor Reports (PDF/Image to Google Sheets) This n8n workflow automatically parses documents such as invoices, sensor logs or structured PDFs/images (inc...
n8n-nodes-base.switch, n8n-nodes-base.googlesheets, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.webhook, n8n-nodes-base.extractfromfile, n8n-nodes-tesseractjs.tesseractnode
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.
Original n8n.io sourceThis n8n workflow automatically parses documents such as invoices, sensor logs or structured PDFs/images (including scanned docs or CSVs), extracts key fields like totals, dates and customer/vendor info using OCR and AI, and writes the structured output into Google Sheets.
/uploadDoc)invoice_id, total, customer_name, etc.appendOrUpdateinvoice_id, invoice_date, due_date, customer_name, vendor_name, subtotal, tax_total, total, currency
/uploadDocInvoice Data node| Tool | Purpose |
|---|---|
| n8n | Automation framework |
| Google Sheets | To store structured output |
| Tesseract OCR | For scanned image text extraction |
| Google Gemini | For natural language parsing |
| Scenario | What Happens |
|---|---|
| Invoice Upload (PDF) | Extracts totals, customer, tax data into a Google Sheet |
| Scanned Receipt (Image) | OCR + LLM extracts structured data |
| Log File (CSV) | Parses and logs entries into Sheets |
| Issue | Possible Cause | Solution |
|---|---|---|
Webhook not triggered |
URL or method mismatch | Use correct POST URL /uploadDoc |
Text is blank |
OCR failed | Check image quality or Tesseract config |
Gemini model not returning JSON |
Prompt formatting issue | Ensure prompt ends with valid JSON schema |
Sheet not updated |
Invalid Sheet ID or tab | Double-check sheet credentials and tab name |
Our automation team at WeblineIndia can help you extend this into a full-blown document automation pipeline.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Parse invoices & documents with Gemini AI, OCR, and Google Sheets integration |
|---|---|
| Complexity | intermediate |
| Nodes | 12 |
| Categories | Invoice Processing, Multimodal AI |
| Author | WeblineIndia |
| Published | 11 Aug 2025 |
Use the JSON export at /data/workflows/7239/7239.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Smart Document Parser for Invoices, Logs or Sensor Reports (PDF/Image to Google Sheets) This n8n workflow automatically parses documents such as invoices, sensor logs or structured PDFs/images (inc...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, Multimodal AI use case.