Lead Capture & Tracking Pipeline 🎯
Capture leads from any source, deduplicate by email, score by intent, track in Google Sheets, and notify your team — all automatically via n8n workflows.
Problem
Leads come from multiple sources (website forms, newsletters, strategy calls, product waitlists). Manually entering them into a CRM and following up is error-prone and slow. Hot leads go cold.
This pipeline captures, deduplicates, scores, and routes leads in real-time.
What It Does
- Capture — Receives leads from webhooks (website forms, landing pages, chatbots)
- Deduplicate — Checks Google Sheets for existing leads (email match via
appendOrUpdate)
- Score — Basic lead scoring based on source type and engagement signals
- Store — Appends to Google Sheets with scoring data
- Notify — Emails team with lead details and suggested next action
Note: This pipeline does not include third-party enrichment integrations (e.g., Clearbit, FullContact). To add enrichment, insert an HTTP Request node between the webhook and the Sheets node in the workflow, calling your preferred enrichment API.
Included Workflows
| # |
File |
Purpose |
| 1 |
lead-tracker.json |
Webhook → deduplicate → store in Sheets → notify owner |
| 2 |
lead-magnet.json |
Lead magnet download → store lead → send PDF attachment email |
| 3 |
newsletter.json |
Newsletter signup → store subscriber → send welcome email |
Architecture
Lead Source (form, chatbot, API)
│
▼
Webhook Endpoint (n8n)
│
├── Validate required fields (name, email)
├── Check for duplicates (email match in Sheets)
│
├── IF new lead:
│ ├── Score lead (source type + available fields)
│ ├── Append to Google Sheets
│ └── Send notification email to team
│
└── IF existing lead:
├── Update engagement count
└── Log new touchpoint
Required n8n Credentials
You must create these credentials in your n8n instance before importing:
| Credential Type |
Used For |
Placeholder in JSON |
| Google Sheets OAuth2 |
Reading/writing lead data |
YOUR_GOOGLE_SHEETS_CREDENTIAL_ID |
| SMTP (Gmail or custom) |
Sending notification and welcome emails |
YOUR_SMTP_CREDENTIAL_ID |
After importing, open each workflow and reconnect the credential nodes to your own credentials.
Configuration Placeholders
Replace these placeholders in the workflow JSON before deploying:
| Placeholder |
Description |
YOUR_LEADS_SHEET_ID |
Your Google Sheet ID for lead tracking |
YOUR_GOOGLE_SHEETS_CREDENTIAL_ID |
Your n8n Google Sheets credential ID |
YOUR_SMTP_CREDENTIAL_ID |
Your n8n SMTP credential ID |
YOUR_FROM_EMAIL |
Sender email address |
YOUR_NOTIFICATION_EMAIL |
Where to send lead notifications |
YOUR_NAME |
Your name for email templates |
YOUR_DOMAIN |
Your website domain for email links |
Supported Lead Sources
| Source |
Webhook Path |
Fields |
| Newsletter signup |
/webhook/newsletter |
email |
| Lead magnet download |
/webhook/lead-magnet |
name, email, company |
| Strategy call booking |
/webhook/strategy-call |
name, email, phone, company, message |
| Product waitlist |
/webhook/product-waitlist |
name, email |
| Contact form |
/webhook/contact |
name, email, subject, message |
| Custom |
/webhook/add-lead-enriched |
Any JSON payload |
Google Sheets Schema
| Column |
Type |
Description |
| name |
text |
Full name |
| email |
text |
Email address (primary key for dedup) |
| company |
text |
Company name |
| phone |
text |
Phone number |
| source |
text |
Where they came from |
| score |
number |
Lead score (0-100) |
| status |
text |
new / contacted / qualified / converted |
| created_at |
date |
First captured |
| updated_at |
date |
Last activity |
| touchpoints |
number |
Total interactions |
| notes |
text |
Additional notes |
Quick Start
1. Prerequisites
- n8n v2.4+ (self-hosted or cloud)
- Google Sheets API credentials (OAuth2)
- SMTP email credentials (Gmail or custom)
2. Create Tracking Sheet
Set up a Google Sheet with the columns above. Enable appendOrUpdate matching on email column to prevent duplicates.
3. Import Workflows
Import the 3 JSON files from the workflows/ directory into n8n. Replace all YOUR_* placeholders with your actual values.
4. Test
curl -X POST https://your-n8n.com/webhook/add-lead-enriched \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "john@company.com",
"company": "Acme Inc",
"source": "website-contact"
}'
Lead Scoring
| Factor |
Points |
Example |
| Source: Strategy call |
+40 |
High intent |
| Source: Lead magnet |
+25 |
Medium intent |
| Source: Newsletter |
+10 |
Low intent |
| Has company name |
+10 |
B2B signal |
| Has phone number |
+15 |
Ready to talk |
| Repeat visitor |
+10 per touchpoint |
Engaged |
Use Cases
- Freelancers — Track inbound leads from website contact forms
- Agencies — Multi-source lead capture with team notifications
- SaaS — Waitlist management with scoring
- Content creators — Newsletter subscriber tracking with engagement scoring
- eCommerce — Customer inquiry pipeline
Requirements
- n8n v2.4+ (self-hosted or cloud)
- Google Sheets OAuth2 credentials
- SMTP email credentials
1---
2name: lead-enrichment-pipeline
3description: Automated lead capture, deduplication, tracking, and notification pipeline. Captures leads from web forms via webhooks, deduplicates by email in Google Sheets, scores by source and engagement, sends team notifications. 3 production-ready n8n workflows included.
4tags: [leads, crm, google-sheets, sales, pipeline, automation, b2b, prospecting, webhooks, n8n]
5author: mhmalvi
6version: 1.2.0
7license: CC BY-NC-SA 4.0
8metadata:
9 source: https://skillmd.com/skills/modbender/lead-enrichment-pipeline
10 clawdbot:
11 emoji: "🎯"
12 requires:
13 n8nCredentials: [google-sheets-oauth2, smtp]
14 os: [linux, darwin, win32]
15---
16
17# Lead Capture & Tracking Pipeline 🎯
18
19Capture leads from any source, deduplicate by email, score by intent, track in Google Sheets, and notify your team — all automatically via n8n workflows.
20
21## Problem
22
23Leads come from multiple sources (website forms, newsletters, strategy calls, product waitlists). Manually entering them into a CRM and following up is error-prone and slow. Hot leads go cold.
24
25This pipeline captures, deduplicates, scores, and routes leads in real-time.
26
27## What It Does
28
291. **Capture** — Receives leads from webhooks (website forms, landing pages, chatbots)
302. **Deduplicate** — Checks Google Sheets for existing leads (email match via `appendOrUpdate`)
313. **Score** — Basic lead scoring based on source type and engagement signals
324. **Store** — Appends to Google Sheets with scoring data
335. **Notify** — Emails team with lead details and suggested next action
34
35> **Note:** This pipeline does not include third-party enrichment integrations (e.g., Clearbit, FullContact). To add enrichment, insert an HTTP Request node between the webhook and the Sheets node in the workflow, calling your preferred enrichment API.
36
37## Included Workflows
38
39| # | File | Purpose |
40|---|------|---------|
41| 1 | `lead-tracker.json` | Webhook → deduplicate → store in Sheets → notify owner |
42| 2 | `lead-magnet.json` | Lead magnet download → store lead → send PDF attachment email |
43| 3 | `newsletter.json` | Newsletter signup → store subscriber → send welcome email |
44
45## Architecture
46
47```
48Lead Source (form, chatbot, API)
49 │
50 ▼
51Webhook Endpoint (n8n)
52 │
53 ├── Validate required fields (name, email)
54 ├── Check for duplicates (email match in Sheets)
55 │
56 ├── IF new lead:
57 │ ├── Score lead (source type + available fields)
58 │ ├── Append to Google Sheets
59 │ └── Send notification email to team
60 │
61 └── IF existing lead:
62 ├── Update engagement count
63 └── Log new touchpoint
64```
65
66## Required n8n Credentials
67
68You must create these credentials in your n8n instance before importing:
69
70| Credential Type | Used For | Placeholder in JSON |
71|----------------|----------|---------------------|
72| Google Sheets OAuth2 | Reading/writing lead data | `YOUR_GOOGLE_SHEETS_CREDENTIAL_ID` |
73| SMTP (Gmail or custom) | Sending notification and welcome emails | `YOUR_SMTP_CREDENTIAL_ID` |
74
75After importing, open each workflow and reconnect the credential nodes to your own credentials.
76
77## Configuration Placeholders
78
79Replace these placeholders in the workflow JSON before deploying:
80
81| Placeholder | Description |
82|-------------|-------------|
83| `YOUR_LEADS_SHEET_ID` | Your Google Sheet ID for lead tracking |
84| `YOUR_GOOGLE_SHEETS_CREDENTIAL_ID` | Your n8n Google Sheets credential ID |
85| `YOUR_SMTP_CREDENTIAL_ID` | Your n8n SMTP credential ID |
86| `YOUR_FROM_EMAIL` | Sender email address |
87| `YOUR_NOTIFICATION_EMAIL` | Where to send lead notifications |
88| `YOUR_NAME` | Your name for email templates |
89| `YOUR_DOMAIN` | Your website domain for email links |
90
91## Supported Lead Sources
92
93| Source | Webhook Path | Fields |
94|--------|-------------|--------|
95| Newsletter signup | `/webhook/newsletter` | email |
96| Lead magnet download | `/webhook/lead-magnet` | name, email, company |
97| Strategy call booking | `/webhook/strategy-call` | name, email, phone, company, message |
98| Product waitlist | `/webhook/product-waitlist` | name, email |
99| Contact form | `/webhook/contact` | name, email, subject, message |
100| Custom | `/webhook/add-lead-enriched` | Any JSON payload |
101
102## Google Sheets Schema
103
104| Column | Type | Description |
105|--------|------|-------------|
106| name | text | Full name |
107| email | text | Email address (primary key for dedup) |
108| company | text | Company name |
109| phone | text | Phone number |
110| source | text | Where they came from |
111| score | number | Lead score (0-100) |
112| status | text | new / contacted / qualified / converted |
113| created_at | date | First captured |
114| updated_at | date | Last activity |
115| touchpoints | number | Total interactions |
116| notes | text | Additional notes |
117
118## Quick Start
119
120### 1. Prerequisites
121- n8n v2.4+ (self-hosted or cloud)
122- Google Sheets API credentials (OAuth2)
123- SMTP email credentials (Gmail or custom)
124
125### 2. Create Tracking Sheet
126Set up a Google Sheet with the columns above. Enable `appendOrUpdate` matching on `email` column to prevent duplicates.
127
128### 3. Import Workflows
129Import the 3 JSON files from the `workflows/` directory into n8n. Replace all `YOUR_*` placeholders with your actual values.
130
131### 4. Test
132```bash
133curl -X POST https://your-n8n.com/webhook/add-lead-enriched \
134 -H "Content-Type: application/json" \
135 -d '{
136 "name": "John Doe",
137 "email": "john@company.com",
138 "company": "Acme Inc",
139 "source": "website-contact"
140 }'
141```
142
143## Lead Scoring
144
145| Factor | Points | Example |
146|--------|--------|---------|
147| Source: Strategy call | +40 | High intent |
148| Source: Lead magnet | +25 | Medium intent |
149| Source: Newsletter | +10 | Low intent |
150| Has company name | +10 | B2B signal |
151| Has phone number | +15 | Ready to talk |
152| Repeat visitor | +10 per touchpoint | Engaged |
153
154## Use Cases
155
1561. **Freelancers** — Track inbound leads from website contact forms
1572. **Agencies** — Multi-source lead capture with team notifications
1583. **SaaS** — Waitlist management with scoring
1594. **Content creators** — Newsletter subscriber tracking with engagement scoring
1605. **eCommerce** — Customer inquiry pipeline
161
162## Requirements
163
164- n8n v2.4+ (self-hosted or cloud)
165- Google Sheets OAuth2 credentials
166- SMTP email credentials