加入WhatsApp群组
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Set, Code, Wait, Merge 等节点。 使用Google表格和Evolution API自动加入WhatsApp群组
前置要求
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "7XxAeZxBDoMqMdJ6",
"meta": {
"instanceId": "dbf0ee07bbdc233f8284de9d461a9a8dc855eaf0b101745260467aaa83c5857f",
"templateCredsSetupCompleted": true
},
"name": "加入 WhatsApp 群组",
"tags": [
{
"id": "tYlHCDj5nDVo6yjD",
"name": "Template Share",
"createdAt": "2025-09-23T17:47:07.970Z",
"updatedAt": "2025-09-23T17:47:07.970Z"
}
],
"nodes": [
{
"id": "def019f5-d10a-4373-b8e2-fe84bb82a873",
"name": "获取群组信息",
"type": "n8n-nodes-evolution-api-en.evolutionApi",
"onError": "continueRegularOutput",
"position": [
16,
-304
],
"parameters": {
"resource": "groups-api",
"operation": "fetch-groups",
"inviteCode": "={{ $('Loop Over Items').item.json['Invitation Code'] }}"
},
"credentials": {
"evolutionApi": {
"id": "YOUR ID",
"name": "YOUR INSTANCE NAME"
}
},
"typeVersion": 1
},
{
"id": "b1005876-001d-44cc-95cd-b4eb0328bd49",
"name": "读取邀请码",
"type": "n8n-nodes-base.googleSheets",
"position": [
-768,
-160
],
"parameters": {
"sheetName": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "",
"cachedResultName": ""
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "YOUR ID"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "WMsZuIQpXUIG8ebO",
"name": "Google Sheets account"
}
},
"typeVersion": 4.7
},
{
"id": "4f52e94f-a672-4702-9e49-fda7dd50d253",
"name": "前 50 个未处理项",
"type": "n8n-nodes-base.code",
"position": [
-640,
-160
],
"parameters": {
"jsCode": "// On garde uniquement les 50 premiers non traités\nreturn items.slice(0, 50);\n"
},
"typeVersion": 2
},
{
"id": "cdabb85a-8981-45e3-be6a-e9d711a1ca8e",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-416,
-160
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "119dc1d0-db13-48d9-a8f8-ffb7cdaa80e1",
"name": "映射数据",
"type": "n8n-nodes-base.set",
"position": [
-112,
-144
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "c9d9f171-9a36-4c09-ab1d-8f46541fca9b",
"name": "row_number",
"type": "number",
"value": "={{ $json.row_number }}"
},
{
"id": "7d96792d-1194-4e39-8927-2d3c69fb9ac8",
"name": "Invitation Code",
"type": "string",
"value": "={{ $json['Invitation Code'] }}"
},
{
"id": "98309fc1-14a6-42ff-89e5-e5ee58a16fe6",
"name": "Groupe id",
"type": "string",
"value": "={{ $json['Groupe id'] }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "868afb8e-b076-4aad-953c-11546168f8e2",
"name": "条件判断",
"type": "n8n-nodes-base.if",
"position": [
336,
-128
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "b8c8ab5e-768f-4bd6-bbe4-c85a668bfe50",
"operator": {
"type": "number",
"operation": "gt"
},
"leftValue": "={{ $json.data.size }}",
"rightValue": 50
}
]
}
},
"typeVersion": 2.2
},
{
"id": "9af29f3c-9265-4af2-a72e-f10e108aa48c",
"name": "加入群组",
"type": "n8n-nodes-evolution-api-en.evolutionApi",
"onError": "continueRegularOutput",
"position": [
480,
-304
],
"parameters": {
"resource": "groups-api",
"operation": "join-group",
"inviteCode": "={{ $('Mapper données').item.json['Invitation Code'] }}"
},
"credentials": {
"evolutionApi": {
"id": "YOUR ID",
"name": "YOUR INSTANCE NAME"
}
},
"typeVersion": 1
},
{
"id": "a762732a-f91a-4f28-b719-2b155decc87e",
"name": "更新状态",
"type": "n8n-nodes-base.googleSheets",
"position": [
672,
-304
],
"parameters": {
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "url",
"value": ""
},
"documentId": {
"__rl": true,
"mode": "url",
"value": ""
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "YOUR ID",
"name": "Google Sheets account"
}
},
"typeVersion": 4.7
},
{
"id": "42e601c4-a267-48af-8fe2-a1f9b12e89ac",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
960,
-80
],
"webhookId": "cd001a19-bc14-4c9b-936919c24106",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "e6014958-7158-4432-b34e-81ee48468132",
"name": "填充列表",
"type": "n8n-nodes-base.googleSheets",
"position": [
816,
-160
],
"parameters": {
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "url",
"value": ""
},
"documentId": {
"__rl": true,
"mode": "url",
"value": ""
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "WMsZID",
"name": "Google Sheets account"
}
},
"typeVersion": 4.7
},
{
"id": "46b0ef58-48bd-4bd2-bc29-c35159313495",
"name": "更新状态1",
"type": "n8n-nodes-base.googleSheets",
"position": [
640,
-48
],
"parameters": {
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "url",
"value": ""
},
"documentId": {
"__rl": true,
"mode": "url",
"value": ""
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "WMsZuIQG8ebO",
"name": "Google Sheets account"
}
},
"typeVersion": 4.7
},
{
"id": "68a69e70-c8eb-4a38-acab-9f58fba69547",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-912,
-160
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 6,
"triggerAtMinute": 8
},
{
"triggerAtHour": 12,
"triggerAtMinute": 13
},
{
"triggerAtHour": 20,
"triggerAtMinute": 17
}
]
}
},
"typeVersion": 1.2
},
{
"id": "1beeb731-1941-44e3-bcef-a2e774857686",
"name": "合并",
"type": "n8n-nodes-base.merge",
"position": [
176,
-144
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineByPosition"
},
"typeVersion": 3.2
},
{
"id": "ab8c62fe-89bf-4989-8357-c54a13d0af96",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-944,
-432
],
"parameters": {
"width": 448,
"height": 480,
"content": "计划触发器"
},
"typeVersion": 1
},
{
"id": "e7e1654a-81b9-4ccd-9358-ea4c4bf71b83",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-64,
-432
],
"parameters": {
"height": 192,
"content": "获取群组信息"
},
"typeVersion": 1
},
{
"id": "c50e76f0-b4c6-448c-8ff4-9864bfebe171",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
464,
-480
],
"parameters": {
"width": 672,
"height": 608,
"content": "❓ “尝试加入 WhatsApp 群组。如果成功,更新表格并添加到已加入列表。如果失败,将代码标记为失败。”"
},
"typeVersion": 1
},
{
"id": "d6e5e557-7793-4164-9fed-fa11a22340a0",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1472,
-640
],
"parameters": {
"color": 6,
"width": 464,
"height": 944,
"content": "根据 Google 表格中的邀请码自动加入 WhatsApp 群组"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "eb8ddacc-5409-4e8a-ade5-ca7116baaf0a",
"connections": {
"868afb8e-b076-4aad-953c-11546168f8e2": {
"main": [
[
{
"node": "9af29f3c-9265-4af2-a72e-f10e108aa48c",
"type": "main",
"index": 0
}
],
[
{
"node": "46b0ef58-48bd-4bd2-bc29-c35159313495",
"type": "main",
"index": 0
}
]
]
},
"42e601c4-a267-48af-8fe2-a1f9b12e89ac": {
"main": [
[
{
"node": "cdabb85a-8981-45e3-be6a-e9d711a1ca8e",
"type": "main",
"index": 0
}
]
]
},
"1beeb731-1941-44e3-bcef-a2e774857686": {
"main": [
[
{
"node": "868afb8e-b076-4aad-953c-11546168f8e2",
"type": "main",
"index": 0
}
]
]
},
"9af29f3c-9265-4af2-a72e-f10e108aa48c": {
"main": [
[
{
"node": "a762732a-f91a-4f28-b719-2b155decc87e",
"type": "main",
"index": 0
}
]
]
},
"def019f5-d10a-4373-b8e2-fe84bb82a873": {
"main": [
[
{
"node": "1beeb731-1941-44e3-bcef-a2e774857686",
"type": "main",
"index": 0
}
]
]
},
"e6014958-7158-4432-b34e-81ee48468132": {
"main": [
[
{
"node": "42e601c4-a267-48af-8fe2-a1f9b12e89ac",
"type": "main",
"index": 0
}
]
]
},
"cdabb85a-8981-45e3-be6a-e9d711a1ca8e": {
"main": [
[],
[
{
"node": "119dc1d0-db13-48d9-a8f8-ffb7cdaa80e1",
"type": "main",
"index": 0
}
]
]
},
"119dc1d0-db13-48d9-a8f8-ffb7cdaa80e1": {
"main": [
[
{
"node": "def019f5-d10a-4373-b8e2-fe84bb82a873",
"type": "main",
"index": 0
},
{
"node": "1beeb731-1941-44e3-bcef-a2e774857686",
"type": "main",
"index": 1
}
]
]
},
"68a69e70-c8eb-4a38-acab-9f58fba69547": {
"main": [
[
{
"node": "b1005876-001d-44cc-95cd-b4eb0328bd49",
"type": "main",
"index": 0
}
]
]
},
"a762732a-f91a-4f28-b719-2b155decc87e": {
"main": [
[
{
"node": "e6014958-7158-4432-b34e-81ee48468132",
"type": "main",
"index": 0
}
]
]
},
"46b0ef58-48bd-4bd2-bc29-c35159313495": {
"main": [
[
{
"node": "42e601c4-a267-48af-8fe2-a1f9b12e89ac",
"type": "main",
"index": 0
}
]
]
},
"b1005876-001d-44cc-95cd-b4eb0328bd49": {
"main": [
[
{
"node": "4f52e94f-a672-4702-9e49-fda7dd50d253",
"type": "main",
"index": 0
}
]
]
},
"4f52e94f-a672-4702-9e49-fda7dd50d253": {
"main": [
[
{
"node": "cdabb85a-8981-45e3-be6a-e9d711a1ca8e",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+
If
Set
Xml
125 节点Daniel Ng
内容创作
批量SEO内容生成与带AI图片的Webflow草稿创建(模板)
使用GPT、Gemini图片和Webflow草稿创建进行批量SEO内容生成
If
Set
Code
+
If
Set
Code
54 节点Dahiana
内容创作
使用AI和Freepik将Reddit商业痛点转换为病毒式LinkedIn内容
使用AI和Freepik将Reddit商业痛点转换为病毒式LinkedIn内容
If
Set
Code
+
If
Set
Code
48 节点Daniel Lianes
内容创作
AI驱动视频创作与上传至Instagram、TikTok和YouTube
从云端硬盘进行AI驱动视频创作并上传至Instagram、TikTok和YouTube
If
Set
Code
+
If
Set
Code
53 节点DevCode Journey
内容创作
使用Groq、Gemini和Slack审批系统自动化RSS到Medium发布
通过Groq、Gemini和Slack审批系统实现RSS到Medium发布的自动化流程
If
Set
Code
+
If
Set
Code
41 节点ObisDev
内容创作
防欺诈潜在客户捕获与培育系统
通过AI评分、表格跟踪和多渠道提醒捕获和培育防欺诈潜在客户
If
Set
Code
+
If
Set
Code
28 节点Jitesh Dugar
内容创作