Detect duplicate payment charges from Gmail using Gemini, Google Sheets and Slack
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on Gmail events. Along the way it connects Google Sheets, Gmail, Google Gemini and Slack.
How it runs
Trigger: On Gmail events.
- Get Payment Email (Gmail): get
- Get Full Message (HTTP Request): calls an HTTP API
- Extract Email Body (Code): runs custom JavaScript code
- Prepare Email (Edit Fields (Set)): sets 6 fields: message_id, thread_id, subject…
- Extract Transaction (Google Gemini): uses Google Gemini
- Parse Gemini Transaction (Code): runs custom JavaScript code
- Transaction Valid? (If): checks a condition and branches into true / false
- Normalize Transaction (Code): runs custom JavaScript code
- Update row in sheet (Google Sheets): update
- Generate Transaction ID (Code): runs custom JavaScript code
…plus 7 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Google Sheets
n8n-nodes-base.googleSheets - Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick Overview This workflow monitors Gmail for receipt emails, uses Google Gemini to extract transaction details, checks recent transactions stored in Google Sheets for potential duplicate charges, logs the result back to the sheet, and sends a Slack alert…