MailChimp自动化
高级
这是一个AI, Marketing领域的自动化工作流,包含 43 个节点。主要使用 If, Set, Code, Gmail, Merge 等节点,结合人工智能技术实现智能自动化。 基于AI的餐厅通讯生成器,集成Mailchimp和Telegram审批
前置要求
- •Google 账号和 Gmail API 凭证
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
- •Anthropic API Key
使用的节点 (43)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "H9a2qfzSXSNRlDeI",
"meta": {
"instanceId": "c69b32bb34544699586a978198676429d54f399282874c803992bc6f63607070",
"templateCredsSetupCompleted": true
},
"name": "MailChimp_自动化",
"tags": [],
"nodes": [
{
"id": "003fc957-1e8a-4369-9381-ae914331be4a",
"name": "餐厅通讯专家",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
260,
-20
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "00fd66ec-3f0f-4f61-8263-ceecb90a2431",
"name": "OpenAI聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
260,
180
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "cf94538d-1a54-4378-8b5f-2edc5bc67dec",
"name": "通讯版块规划器",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
600,
-20
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "93b8121b-cd8f-4f34-afff-a1e80ebcf178",
"name": "拆分通讯版块",
"type": "n8n-nodes-base.splitOut",
"position": [
920,
-20
],
"parameters": {},
"typeVersion": 1
},
{
"id": "103c994b-d80a-4fbc-a934-3ad5bab3bad1",
"name": "餐厅内容研究团队",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1080,
-20
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "edf06eb5-feee-46fd-ac2f-e45afc1d29ca",
"name": "合并研究内容",
"type": "n8n-nodes-base.merge",
"position": [
1600,
140
],
"parameters": {},
"typeVersion": 3,
"alwaysOutputData": true
},
{
"id": "563b479f-1e3c-43d1-9cfd-6d04637ae6a1",
"name": "汇总通讯内容",
"type": "n8n-nodes-base.aggregate",
"position": [
1760,
140
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d798ec57-8633-48a1-a931-466cd8460039",
"name": "最终通讯编辑器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
3500,
200
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "775cf71f-e94d-429d-9089-3d057d7dbfe3",
"name": "增强的工作流文档",
"type": "n8n-nodes-base.stickyNote",
"position": [
-780,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bde3fb8d-9b63-4abf-a264-9a17939aa7d6",
"name": "OpenAI聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
3480,
420
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0c83f4d2-58fa-452e-9b47-ecd706f342a6",
"name": "Tavily1",
"type": "@tavily/n8n-nodes-tavily.tavilyTool",
"position": [
380,
180
],
"parameters": {},
"typeVersion": 1
},
{
"id": "87380743-0f25-4930-9582-907e2ad7a8a5",
"name": "Tavily",
"type": "@tavily/n8n-nodes-tavily.tavilyTool",
"position": [
680,
340
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3153fc91-0c07-4d1f-b941-60eccc6719fc",
"name": "代码",
"type": "n8n-nodes-base.code",
"position": [
1420,
-20
],
"parameters": {},
"typeVersion": 2
},
{
"id": "4daded6e-0343-4f9e-a8bb-69fe98fcdfba",
"name": "发送_营销活动",
"type": "n8n-nodes-base.httpRequest",
"position": [
5140,
-60
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "62b243f9-482e-477a-92df-92fb29fc0a7d",
"name": "创建_营销活动",
"type": "n8n-nodes-base.httpRequest",
"position": [
4760,
-60
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "bff1e373-d41e-46b6-9bb6-5a17105d3597",
"name": "设置意图",
"type": "n8n-nodes-base.set",
"position": [
2340,
60
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "2e7b5279-0073-4cdb-beb2-ccb296385322",
"name": "人工介入",
"type": "n8n-nodes-base.telegram",
"position": [
2580,
60
],
"webhookId": "06135021-087d-4558-be06-94de90f2f053",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "e01808a4-e3e7-4346-acf2-57e8d6524c26",
"name": "检查反馈",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
2840,
60
],
"parameters": {},
"typeVersion": 1
},
{
"id": "527085f8-41f6-4f4b-8e27-2dd8ea9747cb",
"name": "修正代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2840,
320
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "978841c6-a948-4383-bf16-7dfe041cbf58",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
5380,
-60
],
"webhookId": "14137681-b74c-43ec-8e08-eb2030b7663a",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "6d7bd74f-03be-4422-80f6-abcf608f6028",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
4460,
-140
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2b768b0a-ed7f-4d05-a4a4-281a2ab87623",
"name": "反馈AI",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2560,
320
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "b52ab57d-4ae2-4b8b-8af1-6f8ae4a49e17",
"name": "确定计划名称",
"type": "n8n-nodes-base.code",
"position": [
440,
1200
],
"parameters": {},
"typeVersion": 2
},
{
"id": "79471c6e-384b-4f6d-9cc4-63c20e6851bf",
"name": "在Telegram上提示主题",
"type": "n8n-nodes-base.telegram",
"position": [
680,
1200
],
"webhookId": "f269a0c8-7af0-4132-8608-026e51d6d3f9",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "971073dd-e54f-49ed-83fe-1c6be7b27620",
"name": "监听主题回复",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-260,
160
],
"webhookId": "telegram-topic-reply-webhook",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "1e94e6f5-add3-4f21-a3e9-cf75ad7c6bbb",
"name": "检查消息是否为回复",
"type": "n8n-nodes-base.if",
"position": [
-100,
160
],
"parameters": {},
"typeVersion": 2
},
{
"id": "292f3279-328e-4596-9e64-47afb62cc81d",
"name": "从回复设置主题",
"type": "n8n-nodes-base.set",
"position": [
100,
180
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "67659bc8-87ef-4f9a-b453-85d32938a1f8",
"name": "第1部分文档",
"type": "n8n-nodes-base.stickyNote",
"position": [
-780,
1140
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d5785f85-7e39-4fc5-aafc-d04897f748fc",
"name": "第2部分文档",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "7bd0e35e-8e48-4503-945b-830d51fa0b68",
"name": "周一上午9点触发器1",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-240,
1740
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "10328ee9-cc04-4e8b-b3b1-60c4db391f3b",
"name": "周二下午4点触发器1",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-220,
1100
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "c8b1f200-c253-49b3-be63-086103aa041d",
"name": "周五下午2点触发器1",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-240,
1300
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "59a5c07a-bae0-497d-8c58-807ee8d877f5",
"name": "周六下午2点触发器1",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-240,
1500
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "5af3d0fe-82c0-46a0-8e8f-204b2d08fe97",
"name": "合并所有计划触发器1",
"type": "n8n-nodes-base.merge",
"position": [
140,
1200
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "c1898cfb-61c3-41b0-be1a-043e9f60075b",
"name": "OpenAI聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
800,
340
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "fa44029b-22ea-4e9f-afa4-d75bc8bd738e",
"name": "第一通讯编辑器1",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1980,
60
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "563bd3aa-bf79-4509-8201-916cc87cd2a8",
"name": "合并",
"type": "n8n-nodes-base.merge",
"position": [
3300,
200
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "f78fcbb9-adc2-4132-a623-86617e1f9b59",
"name": "获取_订阅者",
"type": "n8n-nodes-base.mailchimp",
"position": [
4560,
-60
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0839fa57-0b60-423c-bbe9-c6bb43ca5a22",
"name": "设置_营销活动",
"type": "n8n-nodes-base.httpRequest",
"position": [
4940,
-60
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "ad882a07-eb15-4385-a2a1-fd90bf7ac23d",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-380,
1060
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "66b30303-2c66-4b8d-bc08-525dea49f44a",
"name": "条件判断",
"type": "n8n-nodes-base.if",
"position": [
4120,
60
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "dd97e8e1-065d-42aa-92df-425d06ec2068",
"name": "Gmail1",
"type": "n8n-nodes-base.gmail",
"position": [
3860,
-20
],
"webhookId": "01a28f81-7cc5-45d6-af1a-1e3f0d039485",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "2fb4a53f-1c2f-494d-9f38-3e459317662b",
"name": "OpenRouter聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
1120,
200
],
"parameters": {},
"typeVersion": 1
}
],
"active": true,
"pinData": {},
"settings": {
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": "9be7VkNR7cCyEuth",
"executionOrder": "v1"
},
"versionId": "2242e099-cc74-4851-b53e-66725e584ce8",
"connections": {
"If": {
"main": [
[
{
"node": "Get_Subcribers",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Merge Research Content",
"type": "main",
"index": 0
}
]
]
},
"HITL": {
"main": [
[
{
"node": "Check Feedback",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Final Newsletter Editor",
"type": "main",
"index": 0
}
]
]
},
"Gmail1": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Tavily": {
"ai_tool": [
[
{
"node": "Restaurant Content Research Team",
"type": "ai_tool",
"index": 0
}
]
]
},
"Tavily1": {
"ai_tool": [
[
{
"node": "Restaurant Newsletter Expert",
"type": "ai_tool",
"index": 0
}
]
]
},
"Telegram": {
"main": [
[]
]
},
"Set Intent": {
"main": [
[
{
"node": "HITL",
"type": "main",
"index": 0
},
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Feedback AI": {
"ai_languageModel": [
[
{
"node": "Check Feedback",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Correction Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Set_Campaign": {
"main": [
[
{
"node": "Send_Campaign",
"type": "main",
"index": 0
}
]
]
},
"Send_Campaign": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Check Feedback": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
],
[
{
"node": "Correction Agent",
"type": "main",
"index": 0
}
]
]
},
"Get_Subcribers": {
"main": [
[
{
"node": "Create_Campaign",
"type": "main",
"index": 0
}
]
]
},
"Create_Campaign": {
"main": [
[
{
"node": "Set_Campaign",
"type": "main",
"index": 0
}
]
]
},
"Correction Agent": {
"main": [
[
{
"node": "Set Intent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Restaurant Newsletter Expert",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Final Newsletter Editor",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "First Newsletter Editor1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Friday 2pm Trigger1": {
"main": [
[
{
"node": "Merge All Schedule Triggers1",
"type": "main",
"index": 1
}
]
]
},
"Monday 9am Trigger1": {
"main": [
[
{
"node": "Merge All Schedule Triggers1",
"type": "main",
"index": 0
}
]
]
},
"Set Topic from Reply": {
"main": [
[
{
"node": "Restaurant Newsletter Expert",
"type": "main",
"index": 0
}
]
]
},
"Tuesday 4pm Trigger1": {
"main": [
[
{
"node": "Merge All Schedule Triggers1",
"type": "main",
"index": 1
}
]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "Restaurant Content Research Team",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Saturday 2pm Trigger1": {
"main": [
[
{
"node": "Merge All Schedule Triggers1",
"type": "main",
"index": 1
}
]
]
},
"Listen for Topic Reply": {
"main": [
[
{
"node": "Check if Message is a Reply",
"type": "main",
"index": 0
}
]
]
},
"Merge Research Content": {
"main": [
[
{
"node": "Aggregate Newsletter Content",
"type": "main",
"index": 0
}
]
]
},
"Determine Schedule Name": {
"main": [
[
{
"node": "Prompt for Topic on Telegram",
"type": "main",
"index": 0
}
]
]
},
"Final Newsletter Editor": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
},
{
"node": "Gmail1",
"type": "main",
"index": 0
}
]
]
},
"First Newsletter Editor1": {
"main": [
[
{
"node": "Set Intent",
"type": "main",
"index": 0
}
]
]
},
"Split Newsletter Sections": {
"main": [
[
{
"node": "Restaurant Content Research Team",
"type": "main",
"index": 0
}
]
]
},
"Newsletter Section Planner": {
"main": [
[
{
"node": "Split Newsletter Sections",
"type": "main",
"index": 0
}
]
]
},
"Check if Message is a Reply": {
"main": [
[],
[
{
"node": "Set Topic from Reply",
"type": "main",
"index": 0
}
]
]
},
"Aggregate Newsletter Content": {
"main": [
[
{
"node": "First Newsletter Editor1",
"type": "main",
"index": 0
}
]
]
},
"Merge All Schedule Triggers1": {
"main": [
[
{
"node": "Determine Schedule Name",
"type": "main",
"index": 0
}
]
]
},
"Restaurant Newsletter Expert": {
"main": [
[
{
"node": "Newsletter Section Planner",
"type": "main",
"index": 0
}
]
]
},
"Restaurant Content Research Team": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
构建与销售AI自动化与智能体
构建与销售AI自动化与智能体
If
Set
Wait
+15
74 节点NICKYAI
其他
AI视频生成器 - OpenAI、ElevenLabs与Telegram YouTube发布
集成OpenAI、ElevenLabs并通过Telegram发布至YouTube的AI视频生成器
If
Set
Wait
+15
68 节点FRANK LIN
销售
AI驱动的YouTube Shorts自动化:使用OpenAI和ElevenLabs创建和发布
AI驱动的YouTube Shorts自动化:使用OpenAI和ElevenLabs创建和发布
If
Set
Wait
+15
76 节点Jonas Busch
人工智能
AI驱动的YouTube短视频自动化:使用OpenAI和ElevenLabs创建与发布
AI驱动的YouTube Shorts创建器(OpenAI脚本与ElevenLabs语音)
If
Set
Wait
+15
76 节点WIKIPILOT
设计
使用GPT-4o、WordPress和LinkedIn发布自动化RSS内容到博客文章
使用GPT-4o、WordPress和LinkedIn发布自动化RSS内容到博客文章
If
Set
Code
+21
40 节点Immanuel
人工智能
AI 自动化 YouTube Shorts:使用 OpenAI 创建和发布
AI 自动化 YouTube Shorts:使用 OpenAI 创建和发布
If
Set
Wait
+15
76 节点AYYOUB TIGAMI
设计