Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Detect duplicate payment charges in Gmail with Gemini, Google Sheets and Slack
Reads payment emails from Gmail with Gemini, compares them with recent transactions in Google Sheets and posts a Slack alert when a possible double charge is found.
What it does
## Duplicate/Double-Charge Detector Across Payment Emails This workflow automatically monitors Gmail for payment emails, uses Gemini AI to extract transaction details, checks recent transactions stored in Google Sheets for possible duplicate charges, and sends a Slack alert when a potential double charge is detected. ## Setup Steps 1. Connect your Gmail account and configure the payment-email trigger. 2. Connect Gemini AI and select the required model. 3. Create a Google Sheet for storing transaction history and connect it to n8n. 4. Connect Slack and select the channel for duplicate alerts. 5. Configure the duplicate detection window (48 hours by default). 6. Test with normal payments and duplicate payments to confirm the workflow is working correctly.
The steps
- Update row in sheet
- Get Recent Transactions
- Payment Emails
- Get Payment Email
- Prepare Email
- Extract Transaction
- Parse Gemini Transaction
- Transaction Valid?
- Normalize Transaction
- Generate Transaction ID
- Detect Duplicate
- Potential Duplicate?
- Duplicate Charge Alert
- Mark Processed
18 steps in total.
Similar automations
Finance, Invoices & AccountingFlag possible duplicate supplier invoices in Google Sheets before payment with Slack9 stepsFinance, Invoices & Accountingx402 Paid API Endpoint with 1Shot Payment Validation10 stepsCRM & Sales PipelineSync Stripe Customers and Charges to Pipedrive21 stepsFinance, Invoices & AccountingSync Stripe Charges to HubSpot Contacts34 steps