Templates / Extract and log Gmail invoices with Claude Sonnet, Google Sheets and Slack

Extract and log Gmail invoices with Claude Sonnet, Google Sheets and Slack

Ready for 3.0

by Akshay Chug ✓ · 34 views · created 2026-06-03 · 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 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.

  1. Configure Settings (Code): runs custom JavaScript code
  2. Extract Invoice Data with Claude (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Sonnet
  3. Parse and Validate Extraction (Code): runs custom JavaScript code
  4. Check for Duplicate (Google Sheets): uses Google Sheets
  5. Is New Invoice (If): checks a condition and branches into true / false
  6. Log Invoice to Sheets (Google Sheets): append
  7. Mark Email as Read (Gmail): mark as read
  8. Needs Slack Alert (If): checks a condition and branches into true / false
  9. Notify - High Value or Overdue (Slack): uses Slack

Services it uses

GmailAnthropic Chat ModelGoogle SheetsSlack

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)

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…

Excerpt from Akshay Chug'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.