Lead Enrichment Pipeline
简介
Lead Enrichment Pipeline
原始描述
Automated lead capture, deduplication, tracking, and notification pipeline. Captures leads from web forms via webhooks, deduplicates by email in Google Sheet...
通过你的 Agent 添加
安装目录:lead-enrichment-pipeline/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
该 Skill 提供三套生产级 n8n 工作流,构建完整的线索自动化管道:
- lead-tracker.json — 通用线索捕获主干流程,接收 Webhook → 校验必填字段 → Google Sheets 去重(email 匹配)→ 来源评分 → 存储 → 邮件通知团队
- lead-magnet.json — 内容营销场景,下载触发后自动发送带 PDF 附件的培育邮件
- newsletter.json — 订阅场景,入库后触发欢迎序列
部署时需替换 7 类占位符(Sheet ID、凭证 ID、邮箱地址等),配置 Google Sheets OAuth2 与 SMTP 凭证即可运行。支持 6 种预设来源(Newsletter、Lead Magnet、Strategy Call、Waitlist、Contact Form、自定义 API),通过 /webhook/* 路径区分。
显著优点
- 零代码自动化:纯配置型 Skill,无需编写代码,n8n 可视化界面即可完成全流程搭建
- 智能去重机制:基于
appendOrUpdate 的 email 主键匹配,自动识别重复线索并更新互动次数,避免数据冗余
- 轻量评分体系:内置 0-100 分评分规则,综合来源意图(Strategy Call +40、Lead Magnet +25)、B2B 信号(公司名 +10、电话 +15)、互动深度(重复访问 +10/次),帮助团队优先跟进高意向线索
- 开箱即用:166 行配置、5 个文件,15 分钟内完成从导入到测试的全流程
- 合规透明:CC BY-NC-SA 4.0 开源协议,数据收集目的在文档中充分披露,符合 GDPR 透明度要求
潜在缺点与局限性
- 无原生 enrichment:不包含 Clearbit、FullContact 等第三方数据增强,需手动插入 HTTP Request 节点扩展
- 依赖 Google Sheets:大数据量场景下(万级以上),Sheets 查询性能可能成为瓶颈,缺乏专业 CRM 的关系型查询能力
- 评分规则固定:内置评分权重不可配置,需修改 JSON 调整逻辑,对非技术用户不够友好
- CORS 配置宽松:默认
Access-Control-Allow-Origin: *,生产环境需手动收紧为特定域名
- 速率限制局限:基于 n8n 静态数据的 IP 限流,多实例部署时可能失效
适合的目标群体
- 自由职业者/独立顾问:通过网站表单追踪询盘,替代手动记录
- 中小型 B2B agencies:多渠道线索统一入口,解决团队分配与跟进延迟问题
- SaaS 早期团队:产品等待列表管理,结合评分优先邀请高意向用户
- 内容创作者:Newsletter 订阅者生命周期管理,从获客到培育的轻量方案
- 无预算采购专业 CRM 的小团队:用 Sheets + n8n 搭建 MVP 级销售漏斗
常规使用风险
风险类别
具体说明
缓解建议
凭证泄露
Google Sheets OAuth2 与 SMTP 凭证配置不当可能导致数据访问滥用
使用 n8n 内置凭证管理,禁用个人账号主密码,启用最小权限原则
数据合规
长期存储未设保留策略,可能违反 GDPR 数据最小化原则
实施定期清理机制,为用户提供删除入口,签署 Google DPA
CSRF 攻击
通配符 CORS 配置增加跨站请求伪造风险
生产环境限制为特定可信域名
输入污染
基础验证可能无法拦截特殊字符注入
增加邮箱正则校验与字符转义
服务依赖
Google API 或 SMTP 服务中断将导致流程失效
配置错误重试与降级通知机制
appendOrUpdate 的 email 主键匹配,自动识别重复线索并更新互动次数,避免数据冗余- 无原生 enrichment:不包含 Clearbit、FullContact 等第三方数据增强,需手动插入 HTTP Request 节点扩展
- 依赖 Google Sheets:大数据量场景下(万级以上),Sheets 查询性能可能成为瓶颈,缺乏专业 CRM 的关系型查询能力
- 评分规则固定:内置评分权重不可配置,需修改 JSON 调整逻辑,对非技术用户不够友好
- CORS 配置宽松:默认
Access-Control-Allow-Origin: *,生产环境需手动收紧为特定域名 - 速率限制局限:基于 n8n 静态数据的 IP 限流,多实例部署时可能失效
适合的目标群体
- 自由职业者/独立顾问:通过网站表单追踪询盘,替代手动记录
- 中小型 B2B agencies:多渠道线索统一入口,解决团队分配与跟进延迟问题
- SaaS 早期团队:产品等待列表管理,结合评分优先邀请高意向用户
- 内容创作者:Newsletter 订阅者生命周期管理,从获客到培育的轻量方案
- 无预算采购专业 CRM 的小团队:用 Sheets + n8n 搭建 MVP 级销售漏斗
常规使用风险
风险类别
具体说明
缓解建议
凭证泄露
Google Sheets OAuth2 与 SMTP 凭证配置不当可能导致数据访问滥用
使用 n8n 内置凭证管理,禁用个人账号主密码,启用最小权限原则
数据合规
长期存储未设保留策略,可能违反 GDPR 数据最小化原则
实施定期清理机制,为用户提供删除入口,签署 Google DPA
CSRF 攻击
通配符 CORS 配置增加跨站请求伪造风险
生产环境限制为特定可信域名
输入污染
基础验证可能无法拦截特殊字符注入
增加邮箱正则校验与字符转义
服务依赖
Google API 或 SMTP 服务中断将导致流程失效
配置错误重试与降级通知机制
| 风险类别 | 具体说明 | 缓解建议 |
|---|---|---|
| 凭证泄露 | Google Sheets OAuth2 与 SMTP 凭证配置不当可能导致数据访问滥用 | 使用 n8n 内置凭证管理,禁用个人账号主密码,启用最小权限原则 |
| 数据合规 | 长期存储未设保留策略,可能违反 GDPR 数据最小化原则 | 实施定期清理机制,为用户提供删除入口,签署 Google DPA |
| CSRF 攻击 | 通配符 CORS 配置增加跨站请求伪造风险 | 生产环境限制为特定可信域名 |
| 输入污染 | 基础验证可能无法拦截特殊字符注入 | 增加邮箱正则校验与字符转义 |
| 服务依赖 | Google API 或 SMTP 服务中断将导致流程失效 | 配置错误重试与降级通知机制 |
技能正文
name: lead-enrichment-pipeline
description: 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.
tags: [leads, crm, google-sheets, sales, pipeline, automation, b2b, prospecting, webhooks, n8n]
author: mhmalvi
version: 1.2.0
license: CC BY-NC-SA 4.0
metadata:
clawdbot:
emoji: "🎯"
requires:
n8nCredentials: [google-sheets-oauth2, smtp]
os: [linux, darwin, win32]
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
appendOrUpdate)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.
| # | 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
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
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
| Source | Webhook Path | Fields |
|---|---|---|
| Newsletter signup | /webhook/newsletter |
|
| 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 |
| Column | Type | Description |
|---|---|---|
| name | text | Full name |
| 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
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"
}'
| 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
- n8n v2.4+ (self-hosted or cloud)
- Google Sheets OAuth2 credentials
- SMTP email credentials
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。