AI营销代理:Reddit + OpenRouter + Gmail 潜在客户生成
高级
这是一个Sales、AI、Marketing领域的自动化工作流,包含 23 个节点。主要使用 If、Set、Code、Gmail、Merge 等节点,结合人工智能技术实现智能自动化。 AI营销代理:通过Reddit、OpenRouter和Gmail进行潜在客户生成
前置要求
- •Google 账号和 Gmail API 凭证
- •Google Sheets API 凭证
- •可能需要目标 API 的认证凭证
使用的节点 (23 个)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "5b9aff0ecdeb17791c04b93eac72e39e69151cfa63708980e5d936abe9308b8c",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "36cb5d98-8d20-426c-a965-bac91a63847e",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3200,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "59126319-3736-49f9-bb0e-8ec4ae083f89",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-620,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ee0879ad-783a-44ce-a78b-e9983eed0c55",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2300,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f5d37f76-4b82-4578-b272-17a5e33b99df",
"name": "OpenRouter聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-3160,
1060
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3ad7fb9f-0cc9-4bd0-a137-021a334196dc",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-3020,
1060
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "ab1a88b8-ce11-47f0-a457-2ac8d804c490",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-2860,
1060
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0e7c8c05-e5e0-4cdd-b2fb-4dc35b790403",
"name": "竞争对手分析器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1600,
960
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "76012b18-8116-4e00-92b6-172d2aa91246",
"name": "关键词分析器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-3100,
840
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "6bf11038-0cd9-4531-a171-a02742e4c515",
"name": "拆分输出",
"type": "n8n-nodes-base.splitOut",
"position": [
-2720,
840
],
"parameters": {},
"typeVersion": 1
},
{
"id": "405f06b7-1362-4f4e-98de-0d62ef4835b7",
"name": "获取帖子",
"type": "n8n-nodes-base.reddit",
"position": [
-2500,
840
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6f9a6c87-1510-4338-b417-cd89943e31d4",
"name": "生成邮件HTML",
"type": "n8n-nodes-base.code",
"position": [
-360,
840
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 2
},
{
"id": "2b043745-d653-451d-8b44-a10643d782ba",
"name": "追加数据",
"type": "n8n-nodes-base.googleSheets",
"position": [
-580,
840
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 4.5
},
{
"id": "ad4dd6ef-b49e-48ab-9c05-a78ed4f19d4f",
"name": "OpenRouter",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-1640,
1140
],
"parameters": {},
"typeVersion": 1
},
{
"id": "06bb27c4-a0e1-43e5-9270-7d683e28023a",
"name": "结构化输出解析器 2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-1400,
1140
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "d2d9357d-d114-4fec-b313-9d078d227a28",
"name": "移除重复项",
"type": "n8n-nodes-base.removeDuplicates",
"position": [
-2280,
840
],
"parameters": {},
"typeVersion": 2
},
{
"id": "09fe6bbd-51d1-4620-baeb-c311ee40963e",
"name": "表单",
"type": "n8n-nodes-base.formTrigger",
"position": [
-3520,
840
],
"webhookId": "52e97f2f-4224-440b-8339-a28b09f86efb",
"parameters": {},
"typeVersion": 2.2
},
{
"id": "b859872c-21db-4655-8423-2a202eb9a6bc",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3700,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e6d65d05-ac6e-4398-bf73-6389bc5ca680",
"name": "选择要保留的字段",
"type": "n8n-nodes-base.set",
"position": [
-1800,
820
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "01c6bb02-ab14-4be4-84bc-d45ce4e09986",
"name": "按条件筛选帖子",
"type": "n8n-nodes-base.if",
"position": [
-2040,
840
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "4e7765c8-cda8-493b-bed8-d19c082a9711",
"name": "合并输出",
"type": "n8n-nodes-base.merge",
"position": [
-1244,
840
],
"parameters": {},
"typeVersion": 3
},
{
"id": "df696cb9-11b1-4489-812d-1590e5a640ed",
"name": "重命名AI代理输出字段",
"type": "n8n-nodes-base.set",
"position": [
-1024,
840
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "45a0f8a8-8e0b-4290-8f59-cdb0748e2516",
"name": "筛选相关帖子",
"type": "n8n-nodes-base.if",
"position": [
-804,
840
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "b57880d4-f866-47a5-8140-1c95e1efa40c",
"name": "发送到您的邮箱",
"type": "n8n-nodes-base.gmail",
"position": [
-140,
840
],
"webhookId": "fe12268a-e890-4fb5-a398-6d943971e38b",
"parameters": {},
"notesInFlow": true,
"typeVersion": 2.1
}
],
"pinData": {},
"connections": {
"Form": {
"main": [
[
{
"node": "Keyword Analyst",
"type": "main",
"index": 0
}
]
]
},
"Get Posts": {
"main": [
[
{
"node": "Remove Duplicates",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Get Posts",
"type": "main",
"index": 0
}
]
]
},
"Append Data": {
"main": [
[
{
"node": "Generate Email HTML",
"type": "main",
"index": 0
}
]
]
},
"OpenRouter ": {
"ai_languageModel": [
[
{
"node": "Competitor Analyst",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"HTTP Request": {
"ai_tool": [
[
{
"node": "Keyword Analyst",
"type": "ai_tool",
"index": 0
}
]
]
},
"Merge Outputs": {
"main": [
[
{
"node": "Rename Fields from AI Agent' Output",
"type": "main",
"index": 0
}
]
]
},
"Keyword Analyst": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates": {
"main": [
[
{
"node": "Filter Posts by Criteria",
"type": "main",
"index": 0
}
]
]
},
"Competitor Analyst": {
"main": [
[
{
"node": "Merge Outputs",
"type": "main",
"index": 1
}
]
]
},
"Generate Email HTML": {
"main": [
[
{
"node": "Send to your email",
"type": "main",
"index": 0
}
]
]
},
"Pick Fields to Keep": {
"main": [
[
{
"node": "Competitor Analyst",
"type": "main",
"index": 0
},
{
"node": "Merge Outputs",
"type": "main",
"index": 0
}
]
]
},
"Filter Relevant Posts": {
"main": [
[
{
"node": "Append Data",
"type": "main",
"index": 0
}
]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "Keyword Analyst",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Filter Posts by Criteria": {
"main": [
[
{
"node": "Pick Fields to Keep",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "Keyword Analyst",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser2": {
"ai_outputParser": [
[
{
"node": "Competitor Analyst",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Rename Fields from AI Agent' Output": {
"main": [
[
{
"node": "Filter Relevant Posts",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个高级难度的工作流,适用于Sales、AI、Marketing等场景。适合高级用户,包含 16+ 个节点的复杂工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用AI生成评论和邮件摘要在Reddit上推广YouTube视频
使用AI生成评论和邮件摘要在Reddit上推广YouTube视频
If
Set
Code
+13
29 节点Ari Nakos
AI
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
Other
基于HackerNews帖子和GPT-4.1分析的商业创意发现
通过GPT-4.1分析和Google Sheets从HackerNews帖子中发现商业创意
If
Set
Merge
+9
16 节点Ari Nakos
Product
(Duc)深度研究市场模板
集成PerplexityAI研究和OpenAI内容的多层级WordPress博客生成器
If
Set
Xml
+28
132 节点Daniel Ng
AI
🗞️ AI驱动的可持续性营销简报(使用Gmail、GPT-4o)
🗞️ AI驱动的可持续性营销简报(使用Gmail、GPT-4o)
If
Set
Code
+12
21 节点Samir Saci
AI
LinkedIn自动连接与销售个性化消息
LinkedIn自动连接与销售个性化消息
If
Set
Wait
+12
32 节点Vansh Arora
Sales