Block duplicate vendor invoice payments with Google Sheets, Slack, and Gmail
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets, Slack and Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Parse Invoice Payload (Code): runs custom JavaScript code
- Is Valid Invoice (If): checks a condition and branches into true / false
- Lookup Existing Invoice (Google Sheets): lookup
- Flag Duplicate Status (Edit Fields (Set)): sets 3 fields: isDuplicate, matchedPaidDate, matchedPaymentRef
- Duplicate Found (If): checks a condition and branches into true / false
- Slack: uses Slack
- Prepare Approval (Edit Fields (Set)): sets 2 fields: approvalStatus, paymentDueISO
- Log Duplicate (Google Sheets): append
- Register Unique Invoice (Google Sheets): append
- Needs Approval (If): checks a condition and branches into true / false
…plus 3 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.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick Overview This workflow receives vendor invoices via a webhook, normalizes them into a fingerprint, checks Google Sheets for previously paid matches, and then blocks duplicates with Slack alerts and an audit log while registering unique invoices and…