Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Duplicate Detection Engine
  2. Google Gemini Chat Model
  3. New Invoice Submission Trigger
  4. Prepare Incoming Invoices
  5. Retrieve Invoice History
  6. Prepare Historical Records
  7. Consolidate Invoice Data
  8. AI Duplicate Risk Assessment
  9. Extract AI Investigation Results
  10. Combine Detection & AI Results
  11. Fraud Risk Decision Gateway
  12. Notify Accounts Payable Team
  13. ERP Payment Hold Request
  14. Record Approved Invoice

17 steps in total.

Similar automations