使用AI(GPT-4o)自动化数字产品和SaaS销售
高级
这是一个Sales, AI领域的自动化工作流,包含 34 个节点。主要使用 If, Code, Wait, Gmail, Filter 等节点,结合人工智能技术实现智能自动化。 使用AI(GPT-4o)自动化数字产品和SaaS销售
前置要求
- •Google 账号和 Gmail API 凭证
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (34)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "4786bf0f18c0e8e92c361de5a158cabf4eb0bb3b9c113091b054ff26e359a029"
},
"nodes": [
{
"id": "f6a98207-f368-4289-813e-6ee4360a0955",
"name": "从 Google 搜索提取 URL",
"type": "n8n-nodes-base.code",
"position": [
1240,
260
],
"parameters": {},
"typeVersion": 2
},
{
"id": "4d7629fc-eb31-4bd4-a42b-ef859114acf1",
"name": "移除重复URL",
"type": "n8n-nodes-base.removeDuplicates",
"onError": "continueErrorOutput",
"position": [
2120,
180
],
"parameters": {},
"typeVersion": 1.1,
"alwaysOutputData": true
},
{
"id": "b2bf88bf-f17c-479a-bc78-2a9fd9b24995",
"name": "移除重复电子邮件",
"type": "n8n-nodes-base.removeDuplicates",
"onError": "continueErrorOutput",
"position": [
2000,
1180
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "6d39ba82-e656-4caa-82bb-fb3b30e8c882",
"name": "将电子邮件拆分为项目",
"type": "n8n-nodes-base.splitOut",
"onError": "continueRegularOutput",
"position": [
1380,
940
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "1607d14f-1403-4676-ad74-02dfe15efb93",
"name": "聚合电子邮件列表",
"type": "n8n-nodes-base.aggregate",
"onError": "continueErrorOutput",
"position": [
1000,
940
],
"parameters": {},
"typeVersion": 1
},
{
"id": "02bfd700-f1c3-4e3a-8357-24ec0b6c2ccb",
"name": "搜索 Google 地图",
"type": "n8n-nodes-base.httpRequest",
"position": [
880,
260
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "ab76c18c-d35c-42b6-ae69-e40fb7cef57f",
"name": "过滤掉 Google/Schema URL",
"type": "n8n-nodes-base.filter",
"onError": "continueRegularOutput",
"position": [
1540,
240
],
"parameters": {},
"typeVersion": 2.2,
"alwaysOutputData": false
},
{
"id": "d2896a33-3dd8-4e4d-9d6e-10abfc279e33",
"name": "遍历唯一 URL",
"type": "n8n-nodes-base.splitInBatches",
"onError": "continueRegularOutput",
"position": [
2620,
360
],
"parameters": {},
"typeVersion": 3,
"alwaysOutputData": false
},
{
"id": "b000cb31-03ed-49fb-9ab4-ff745e8044a0",
"name": "获取网站内容(通过 URL)",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
3060,
480
],
"parameters": {},
"typeVersion": 4.2,
"alwaysOutputData": false
},
{
"id": "b5ebd880-54d5-41c0-9435-7c24cc902462",
"name": "遍历网站内容批次",
"type": "n8n-nodes-base.splitInBatches",
"onError": "continueRegularOutput",
"position": [
700,
940
],
"parameters": {},
"executeOnce": false,
"typeVersion": 3,
"alwaysOutputData": false
},
{
"id": "6f5e1f79-89d2-4eda-b0d7-1246c1a8308d",
"name": "提取和过滤电子邮件",
"type": "n8n-nodes-base.code",
"onError": "continueRegularOutput",
"position": [
860,
1120
],
"parameters": {},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "57225174-929a-4a96-a849-8759aed631ac",
"name": "遍历搜索查询",
"type": "n8n-nodes-base.splitInBatches",
"position": [
260,
240
],
"parameters": {},
"typeVersion": 3
},
{
"id": "ef116f8c-4803-4754-81d7-379ef36ccc9a",
"name": "Google 搜索前等待",
"type": "n8n-nodes-base.wait",
"position": [
600,
260
],
"webhookId": "32ec8dc4-ed5a-40c8-815a-b892fa400908",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "59b1bb9d-b697-4c6d-a6e9-f678a7ae4fad",
"name": "处理 AI 生成的查询",
"type": "n8n-nodes-base.code",
"position": [
-140,
240
],
"parameters": {},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "03c374ee-b7c8-4477-8c67-579b01636a7f",
"name": "生成 Google 地图查询 (OpenAI)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
-600,
240
],
"parameters": {},
"executeOnce": false,
"typeVersion": 1.4,
"alwaysOutputData": true
},
{
"id": "bfbf6faf-df5d-476e-a356-3161a4a112af",
"name": "从电子邮件提取域名",
"type": "n8n-nodes-base.code",
"position": [
960,
1840
],
"parameters": {},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "a90d56ab-7b87-4446-b9a0-658dc74fe3b3",
"name": "遍历唯一电子邮件",
"type": "n8n-nodes-base.splitInBatches",
"position": [
540,
1840
],
"parameters": {},
"typeVersion": 3
},
{
"id": "b4d069bf-6ad1-4ff8-823f-b5d8d8bda9a3",
"name": "抓取网站内容 (Jina.ai)",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
1240,
1840
],
"parameters": {},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "3ebd8474-5b4e-49a3-93b4-0698fbf0fa03",
"name": "检查抓取错误",
"type": "n8n-nodes-base.if",
"position": [
1540,
1840
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "eedcf1b9-ab74-431b-9564-28a8342006a2",
"name": "截断网站内容",
"type": "n8n-nodes-base.code",
"position": [
1780,
1860
],
"parameters": {},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "8105f0e9-439a-441c-a03d-755c8059aa20",
"name": "检查 URL 是否存在",
"type": "n8n-nodes-base.if",
"position": [
1780,
300
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "aaddce95-8cd8-4c2c-85ba-e4d801b62bd3",
"name": "通过 Gmail 发送电子邮件",
"type": "n8n-nodes-base.gmail",
"position": [
2600,
2080
],
"webhookId": "33b876ab-0385-4b04-97e3-7a7632ceb495",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "40c1888b-1ab9-4af7-9202-9787c82fdb5f",
"name": "电子邮件间等待",
"type": "n8n-nodes-base.wait",
"position": [
3460,
2180
],
"webhookId": "04b9e877-2ede-45ba-973b-3bd02aa24dcd",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "0fab3ced-eddb-477b-9636-3eab865ab097",
"name": "生成随机延迟",
"type": "n8n-nodes-base.code",
"position": [
2920,
2100
],
"parameters": {},
"typeVersion": 2
},
{
"id": "474fa8d0-9433-488c-ac2b-6da6716bf425",
"name": "便签:抓取部分",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c123db2e-7617-4ffc-89db-718d3efe1571",
"name": "便签:电子邮件提取部分",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
920
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "187ffe11-3b48-414f-8cd0-5539616eee9d",
"name": "便签:个性化与发送部分",
"type": "n8n-nodes-base.stickyNote",
"position": [
-20,
1600
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "24eaddb6-c9aa-408f-a312-0150d2cfd1dd",
"name": "生成个性化电子邮件 (LLM Chain)",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
2180,
1880
],
"parameters": {},
"typeVersion": 1.5
},
{
"id": "4042ea25-a820-4396-95f9-7f02cae68a57",
"name": "解析 AI 电子邮件输出 (JSON)",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
2260,
2120
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "20e642e4-46fc-4741-acae-0faed9dee8df",
"name": "无操作(如果 URL 无效)",
"type": "n8n-nodes-base.noOp",
"position": [
2020,
360
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ec77840b-93ff-4da7-97cb-b6662ea3cea1",
"name": "手动触发器:启动工作流",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-900,
240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9bd66b20-f61d-451b-92ef-d15937de4efa",
"name": "便签:配置",
"type": "n8n-nodes-base.stickyNote",
"position": [
-980,
40
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "80366ada-46d8-4083-b964-f5b63ba57cf9",
"name": "配置 OpenAI 聊天模型 (GPT-4o-mini)",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2020,
2120
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "fb29e15d-48cf-4933-894a-e0bf60a3705c",
"name": "便签:工作流描述",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2720,
900
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"pinData": {
"MANUAL TRIGGER: Start Workflow": [
{
"product_link": "https://www.example.com/ai-content-pro",
"product_name": "AI Content Generator Pro",
"product_description": "A SaaS tool that automatically generates high-quality, SEO-optimized blog posts and marketing copy using advanced AI, saving businesses hours of work and boosting their online visibility."
}
]
},
"connections": {
"Search Google Maps": {
"main": [
[
{
"node": "Extract URLs from Google Search",
"type": "main",
"index": 0
}
]
]
},
"Check if URL Exists": {
"main": [
[
{
"node": "Remove Duplicate URLs",
"type": "main",
"index": 0
}
],
[
{
"node": "NoOp (If URL Invalid)",
"type": "main",
"index": 0
}
]
]
},
"Wait Between Emails": {
"main": [
[
{
"node": "Loop Through Unique Emails",
"type": "main",
"index": 0
}
]
]
},
"Send Email via Gmail": {
"main": [
[
{
"node": "Generate Random Delay",
"type": "main",
"index": 0
}
]
]
},
"Aggregate Email Lists": {
"main": [
[
{
"node": "Split Emails into Items",
"type": "main",
"index": 0
}
]
]
},
"Generate Random Delay": {
"main": [
[
{
"node": "Wait Between Emails",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicate URLs": {
"main": [
[
{
"node": "Loop Through Unique URLs",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicate Emails": {
"main": [
[
{
"node": "Loop Through Unique Emails",
"type": "main",
"index": 0
}
]
]
},
"Split Emails into Items": {
"main": [
[
{
"node": "Remove Duplicate Emails",
"type": "main",
"index": 0
}
]
]
},
"Check for Scraping Error": {
"main": [
[
{
"node": "Loop Through Unique Emails",
"type": "main",
"index": 0
}
],
[
{
"node": "Truncate Website Content",
"type": "main",
"index": 0
}
]
]
},
"Loop Through Unique URLs": {
"main": [
[
{
"node": "Loop Through Website Content Batches",
"type": "main",
"index": 0
}
],
[
{
"node": "Fetch Website Content (via URL)",
"type": "main",
"index": 0
}
]
]
},
"Truncate Website Content": {
"main": [
[
{
"node": "Generate Personalized Email (LLM Chain)",
"type": "main",
"index": 0
}
]
]
},
"Extract Domain from Email": {
"main": [
[
{
"node": "Scrape Website Content (Jina.ai)",
"type": "main",
"index": 0
}
]
]
},
"Extract and Filter Emails": {
"main": [
[
{
"node": "Loop Through Website Content Batches",
"type": "main",
"index": 0
}
]
]
},
"Wait Before Google Search": {
"main": [
[
{
"node": "Search Google Maps",
"type": "main",
"index": 0
}
]
]
},
"Loop Through Unique Emails": {
"main": [
[
{
"node": "Loop Through Search Queries",
"type": "main",
"index": 0
}
],
[
{
"node": "Extract Domain from Email",
"type": "main",
"index": 0
}
]
]
},
"Loop Through Search Queries": {
"main": [
[],
[
{
"node": "Wait Before Google Search",
"type": "main",
"index": 0
}
]
]
},
"Parse AI Email Output (JSON)": {
"ai_outputParser": [
[
{
"node": "Generate Personalized Email (LLM Chain)",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Process AI-Generated Queries": {
"main": [
[
{
"node": "Loop Through Search Queries",
"type": "main",
"index": 0
}
]
]
},
"Filter Out Google/Schema URLs": {
"main": [
[
{
"node": "Check if URL Exists",
"type": "main",
"index": 0
}
]
]
},
"MANUAL TRIGGER: Start Workflow": {
"main": [
[
{
"node": "Generate Google Maps Queries (OpenAI)",
"type": "main",
"index": 0
}
]
]
},
"Extract URLs from Google Search": {
"main": [
[
{
"node": "Filter Out Google/Schema URLs",
"type": "main",
"index": 0
}
]
]
},
"Fetch Website Content (via URL)": {
"main": [
[
{
"node": "Loop Through Unique URLs",
"type": "main",
"index": 0
}
]
]
},
"Scrape Website Content (Jina.ai)": {
"main": [
[
{
"node": "Check for Scraping Error",
"type": "main",
"index": 0
}
]
]
},
"Loop Through Website Content Batches": {
"main": [
[
{
"node": "Aggregate Email Lists",
"type": "main",
"index": 0
}
],
[
{
"node": "Extract and Filter Emails",
"type": "main",
"index": 0
}
]
]
},
"Generate Google Maps Queries (OpenAI)": {
"main": [
[
{
"node": "Process AI-Generated Queries",
"type": "main",
"index": 0
}
]
]
},
"Generate Personalized Email (LLM Chain)": {
"main": [
[
{
"node": "Send Email via Gmail",
"type": "main",
"index": 0
}
]
]
},
"Configure OpenAI Chat Model (GPT-4o-mini)": {
"ai_languageModel": [
[
{
"node": "Generate Personalized Email (LLM Chain)",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 销售, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI个性化多产品邮件营销
基于SMTP轮换的AI个性化多产品邮件营销(GPT-4o/o3-mini)
If
Code
Wait
+16
41 节点Badr
销售
域名外联:自动化潜在客户提取和定向触达
域名外联:自动化潜在客户提取和定向触达
If
Code
Wait
+11
31 节点Badr
销售
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
[模板] AI宠物店 v8
🐶 AI宠物店助手 - 集成GPT-4o、Google日历和WhatsApp/Instagram/Facebook
If
N8n
Set
+38
244 节点Amanda Benks
销售
AI 代理餐厅 [模板]
🤖 WhatsApp、Instagram 和 Messenger 的 AI 餐厅助手
If
N8n
Set
+37
239 节点Amanda Benks
其他
(Duc)深度研究市场模板
集成PerplexityAI研究和OpenAI内容的多层级WordPress博客生成器
If
Set
Xml
+28
132 节点Daniel Ng
人工智能