Capture and deduplicate form leads with Google Sheets and email alerts
Ready for 3.0What this workflow does
This workflow has 50 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 9 fields: now, lock_started_ms, spreadsheet_url…
- Skip owner alert already attempted (Code): runs custom JavaScript code
- Validate and normalize (Code): runs custom JavaScript code
- Alert text: workflow error (Edit Fields (Set)): sets 3 fields: alert_text, alert_subject, alert_html
- Route (Switch): routes items into 4 branches
- Alert: email owner (Send Email): sends an email over SMTP
- Prepare intake claim (Code): runs custom JavaScript code
- Respond (Respond to Webhook): sends the response back to the webhook caller
- Respond 200 (ignored) (Respond to Webhook): sends the response back to the webhook caller
- Respond (Respond to Webhook): sends the response back to the webhook caller
…plus 38 more steps. 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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Respond to Webhook
n8n-nodes-base.respondToWebhook - Google Sheets
n8n-nodes-base.googleSheets - Wait
n8n-nodes-base.wait - Send Email
n8n-nodes-base.emailSend - Stop and Error
n8n-nodes-base.stopAndError - If
n8n-nodes-base.if - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview For small businesses that get enquiries through a website form: saves every submission to one Google Sheets lead list, merges repeat enquiries from the same person into their existing row, and emails the owner once per new lead. Works with any…