Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Detect duplicate invoices in Google Sheets with Gemini and Slack alerts
Runs on each new invoice row in Google Sheets, scores it against past invoices using exact and fuzzy matching, has Gemini classify it as exact duplicate, near duplicate or legitimate, and alerts Slack.
What it does
# Duplicate Invoice Detection Workflow ## How it works: This workflow continuously monitors newly submitted invoices in Google Sheets and compares them against historical invoice records to identify potential duplicates. A custom duplicate detection engine evaluates invoice numbers, supplier names, amounts, and invoice dates using exact and fuzzy matching techniques to generate a risk score. The results are then reviewed by Google Gemini, which classifies the invoice as an Exact Duplicate, Near Duplicate, or Legitimate Invoice and provides investigation guidance. Based on the classification, suspicious invoices trigger fraud alerts, payment hold requests, and fraud case logging, while legitimate invoices are approved and recorded for normal processing. This helps Accounts Payable teams prevent duplicate payments and improve invoice review efficiency. ## Setup steps: 1. Connect Google Sheets Trigger credentials 2. Connect Google Sheets credentials for invoice data storage 3. Configure Google Gemini API credentials 4. Connect Slack credentials for fraud alerts 5. Configure the ERP payment hold API endpoint or replace the placeholder URL with your ERP system's payment hold service 6. Create and map the New_Invoices, Invoice_History, Safe Invoices, and Fraud Cases sheets 7. Update Slack channel settings for Accounts Payable notifications 8. Test duplicate detection with sample invoices 9. Activate the workflow after validation
The steps
- Duplicate Detection Engine
- Google Gemini Chat Model
- New Invoice Submission Trigger
- Prepare Incoming Invoices
- Retrieve Invoice History
- Prepare Historical Records
- Consolidate Invoice Data
- AI Duplicate Risk Assessment
- Extract AI Investigation Results
- Combine Detection & AI Results
- Fraud Risk Decision Gateway
- Notify Accounts Payable Team
- ERP Payment Hold Request
- Record Approved Invoice
17 steps in total.
Similar automations
Finance, Invoices & AccountingDetect duplicate payment charges in Gmail with Gemini, Google Sheets and Slack18 stepsFinance, Invoices & AccountingFlag possible duplicate supplier invoices in Google Sheets before payment with Slack9 stepsTasks & Project ManagementArchive Duplicate Items in a Notion Database7 stepsFinance, Invoices & AccountingDetect revenue leakage and send Gemini recovery emails via Gmail and Slack17 steps