Skip to main content

Block duplicate vendor invoice payments with Google Sheets, Slack, and Gmail

Workflow preview

Workflow preview
100%
Block duplicate vendor invoice payments with Google Sheets, Slack, and Gmail preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow receives vendor invoices via a webhook, normalizes key fields into a fingerprint, checks Google Sheets for prior payments to block duplicates, and then logs results, no...

Best for

  • Invoice Processing automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.googlesheets, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Block duplicate vendor invoice payments with Google Sheets, Slack, and Gmail
Workflow name
Block duplicate vendor invoice payments with Google Sheets, Slack, and Gmail

Quick Overview

This workflow receives vendor invoices via a webhook, normalizes key fields into a fingerprint, checks Google Sheets for prior payments to block duplicates, and then logs results, notifies Slack, and emails a Gmail approver for high-value invoices.

How it works

  1. Receives invoice submissions via an HTTP POST webhook endpoint.
  2. Parses and normalizes vendor, invoice number, and amount to create a fingerprint for each invoice and drops incomplete records.
  3. Looks up the fingerprint in a Google Sheets register of previously paid invoices to detect duplicates.
  4. If a duplicate is found, posts a Slack alert and appends an audit entry to a Google Sheets “DuplicateLog” sheet.
  5. If no duplicate is found, calculates an approval status and due date, then appends the invoice to a Google Sheets “PaidInvoices” sheet.
  6. Emails a manager via Gmail when the amount meets the approval threshold, otherwise posts a Slack “cleared” notice.
  7. Returns a JSON response to the webhook caller indicating the invoice number and whether it was flagged as a duplicate.

Setup

  1. Copy the webhook URL from the Invoice Intake Webhook node and configure your AP/OCR/source system to POST invoice payloads to it.
  2. Create a Google Sheet with “PaidInvoices” and “DuplicateLog” tabs (including columns such as fingerprint, vendorName, invoiceNumber, amount, currency, paid_date, and payment_ref) and replace YOUR_GOOGLE_SHEET_ID in the Google Sheets nodes.
  3. Add a Google Sheets OAuth credential in n8n for the lookup and append operations.
  4. Add a Slack credential and replace YOUR_SLACK_CHANNEL_ID with the channel where duplicate/cleared notifications should be posted.
  5. Add a Gmail credential and set YOUR_APPROVER_EMAIL for manager notifications, and adjust the approval threshold (currently 5,000) if needed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📋 Overview & Setup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Path A Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Path B Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Step 1 Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Step 2 Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Step 3 Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Webhook — JSON Invoice

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 8 - Webhook — PDF Invoice

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 9 - OCR — Extract Invoice Fields

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Merge Intake Paths

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 11 - Parse Invoice Payload

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Is Valid Invoice

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 13 - Lookup Existing Invoice

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 14 - Flag Duplicate Status

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Duplicate Found

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 16 - Slack — Duplicate Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 17 - Teams — Duplicate Alert

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Log Duplicate to Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 19 - Respond — Duplicate Blocked

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 20 - Prepare Approval

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Register Unique Invoice

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 22 - Push to ERP System

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 23 - Needs Approval

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 24 - Email — Manager Approval

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Block duplicate vendor invoice payments with Google Sheets, Slack, and Gmail
Complexity advanced
Nodes 26
Categories Invoice Processing
Author Avkash Kakdiya
Published 16 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16401/16401.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Block duplicate vendor invoice payments with Google Sheets, Slack, and Gmail do?

Quick Overview This workflow receives vendor invoices via a webhook, normalizes key fields into a fingerprint, checks Google Sheets for prior payments to block duplicates, and then logs results, no...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing use case.