🎣 Capture and deduplicate inbound leads with webhooks and Google Sheets

⚡ 87 views · 🎣 Lead Generation & Enrichment

Description

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 any form builder or landing page.
  2. Validation Missing email or phone returns a 400 and stops execution.
  3. Sanitize & normalize Trims whitespace, lowercases email, normalizes phone to international format, sets lead stage to 1, fills defaults for optional fields.
  4. Dedupe check Looks up the email in Google Sheets; flags duplicates safely even when the sheet returns zero rows.
  5. Duplicate → 200 “Already Registered”, execution ends.
  6. New lead → appended to Sheets, 200 “Lead Accepted” returned.

Setup

  1. Import all 4 workflows they share one Google Sheet.
  2. Create a sheet with these exact headers: Name, Email, Phone, Stage, Next Followup At, Has Replied, Lead Source, Service of Interest, SMS Consent
  3. Connect Google Sheets OAuth2 in the Lookup and Append nodes; paste your Sheet ID/tab into the 🔧 CONFIG nodes.
  4. Copy the webhook URL into your form builder. Map fields to: name, email, phone, lead_source, service_of_interest, sms_consent

Requirements

Customization

Additional info

This is Workflow 1 of 4 in a complete AI lead nurturing system built for freelancers, agency owners, and solo founders:

Workflow 1 — Lead Intake (this template): Captures, validates, deduplicates, and stores leads Workflow 2 — Nurture Scheduler: Sends AI-written email and SMS follow-ups across 3 stages Workflow 3 — Reply Listener: Classifies lead replies with an LLM and escalates hot leads in real time Workflow 4 — Daily Report: Emails you a morning summary of pipeline activity and follow-up counts

🔗 Nodes Used

Google Sheets, Webhook

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup