Templates / Track email expenses from Gmail with OpenAI, Google Sheets, and Slack alerts

Track email expenses from Gmail with OpenAI, Google Sheets, and Slack alerts

Ready for 3.0

by WeblineIndia ✓ · 40 views · created 2026-06-16 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 13 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI, Google Sheets and Slack.

How it runs

Trigger: On Gmail events.

  1. Filter Invoice/Receipt Emails (If): checks a condition and branches into true / false
  2. Extract Email Data (Edit Fields (Set)): sets or maps fields
  3. Merge: merges the data from its input branches
  4. Validate Email Content (If): checks a condition and branches into true / false
  5. Format Expense Data (Edit Fields (Set)): sets or maps fields
  6. AI Expense Extractor (OpenAI): uses OpenAI
  7. Lookup Expense (Google Sheets) (Google Sheets): uses Google Sheets
  8. Parse AI Output (Edit Fields (Set)): sets or maps fields
  9. Filter Duplicate Records (If): checks a condition and branches into true / false
  10. Save to Expense Sheet (Google Sheets): append

…plus 2 more steps. See the full node list below.

Services it uses

GmailOpenAIGoogle 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) (Email Listener (Gmail Trigger)).

Nodes used (7)

From the author

Quick Overview This workflow monitors Gmail for invoice or receipt emails, uses OpenAI to extract an expense amount and category, logs the result to Google Sheets, and sends a Slack alert when an expense exceeds a defined threshold. How it works 1. Triggers…

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