Extract and log Gmail invoices with Claude Sonnet, Google Sheets and Slack
Ready for 3.0Ready 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 11 nodes and runs on Gmail events. Along the way it connects Gmail, Anthropic Chat Model, Google Sheets and Slack.
How it runs
Trigger: On Gmail events.
- Configure Settings (Code): runs custom JavaScript code
- Extract Invoice Data with Claude (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Sonnet
- Parse and Validate Extraction (Code): runs custom JavaScript code
- Check for Duplicate (Google Sheets): uses Google Sheets
- Is New Invoice (If): checks a condition and branches into true / false
- Log Invoice to Sheets (Google Sheets): append
- Mark Email as Read (Gmail): mark as read
- Needs Slack Alert (If): checks a condition and branches into true / false
- Notify - High Value or Overdue (Slack): uses Slack
Services it uses
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Check Gmail for Invoices).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow polls Gmail every 15 minutes for unread invoice or receipt emails, uses Anthropic Claude (Sonnet) to extract key financial fields, logs new documents to Google Sheets, sends optional Slack alerts for overdue or high-value…