Capture and deduplicate inbound leads with webhooks and Google Sheets
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Validate Required Fields (If): checks a condition and branches into true / false
- Sanitize Data (Code): runs custom JavaScript code
- Respond 400 — Missing Fields (Respond to Webhook): sends the response back to the webhook caller
- 🔧 CONFIG: Paste Sheet Info Here (Edit Fields (Set)): sets 10 fields: TEMPLATE_google_sheet_url_or_id, TEMPLATE_sheet_name, name…
- Lookup Email in Sheets (Google Sheets): uses Google Sheets
- Evaluate Duplicate Result (Code): runs custom JavaScript code
- Is Duplicate? (If): checks a condition and branches into true / false
- Respond 200 — Already Registered (Respond to Webhook): sends the response back to the webhook caller
- 🔧 CONFIG: Paste Sheet Info Here (Edit Fields (Set)): sets 2 fields: TEMPLATE_google_sheet_url_or_id, TEMPLATE_sheet_name
- Append New Lead to Sheets (Google Sheets): append
…plus 1 more step. See the full node list below.
Services it uses
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 (6)
- Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview Capture inbound leads via webhook, validate and sanitize the data, deduplicate against Google Sheets, and store only clean leads ready to feed an AI-powered email/SMS nurture sequence. How it works 1. Webhook receives the lead POST request from…