Block 1 - Get Email Content
- Type / Role
- n8n-nodes-base.gmail - gmail
- Config choices
- Version 2.1
Inbox2Ledger is an end to end n8n template that turns a noisy finance inbox into a clean, structured ledger. It fetches emails, uses AI guardrails to keep only finance relevant messages, extracts i...
n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.guardrails, n8n-nodes-base.if, n8n-nodes-base.filter, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.code, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.lmchatopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Pratyush Kumar Jha.
Original n8n.io sourceInbox2Ledger is an end-to-end n8n template that turns a noisy finance inbox into a clean, structured ledger. It fetches emails, uses AI guardrails to keep only finance-relevant messages, extracts invoice/receipt fields via an OCR-style agent, validates and auto-categorizes each expense, generates a unique case ID, and appends the result to a Google Sheet for accounting or downstream automations.
vendor_nameinvoice_date (YYYY-MM-DD)invoice_idtotal_amounttax_amountcurrencyitems_summaryvendor_tax_idinvoice_id, vendor_name, invoice_date, total_amount, currency,
tax_amount, gl_category, approval_status, timestamp, case_id,
items_summary, vendor_tax_id, processed_atOn form submission (date picker trigger) → Get Email Content (Gmail) → Guardrail: Is Finance? (LangChain Guardrails) → IF (Guardrail Passed) → Filter Finance Keywords → AI Agent (Email OCR) → Validate Extraction → Check for Errors → Apply Finance Rules → Log to Invoices Sheet (Google Sheets)
(Full node list and configuration included in the template.)
Recommended: Use the Google Sheet ID included in the template, or replace it with your own Sheet ID and gid.
gid if using your own sheettopicalAlignment threshold or filter keywordscurrency field or add a conversion stepfinance, invoices, email, ai, ocr, google-sheets, automation, accounting, n8n-template
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 | Extract, validate, and log email invoices from Gmail to Google Sheets with GPT-4 |
|---|---|
| Complexity | advanced |
| Nodes | 16 |
| Categories | Invoice Processing, AI Summarization |
| Author | Pratyush Kumar Jha |
| Published | 04 Feb 2026 |
Use the JSON export at /data/workflows/13215/13215.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.
Inbox2Ledger is an end to end n8n template that turns a noisy finance inbox into a clean, structured ledger. It fetches emails, uses AI guardrails to keep only finance relevant messages, extracts i...
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, AI Summarization use case.