使用Evolution API向新WhatsApp群组成员发送私密欢迎消息
中级
这是一个Social Media领域的自动化工作流,包含 10 个节点。主要使用 If, Set, Wait, Filter, Webhook 等节点。 使用Evolution API向新WhatsApp群组成员发送私密欢迎消息
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "6052a1b29f061469e8139dae44556603650099c3365d7598798f132ae827fa1c"
},
"nodes": [
{
"id": "7cb53e04-9028-4a1d-8a9d-90e9404cdece",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-300,
60
],
"parameters": {
"color": 6,
"width": 500,
"height": 640,
"content": "## WhatsApp 群组欢迎消息自动化"
},
"typeVersion": 1
},
{
"id": "664a1877-b92e-4254-bd77-5b2fec53fe61",
"name": "Webhook - 接收群组事件",
"type": "n8n-nodes-base.webhook",
"position": [
360,
260
],
"webhookId": "69cde77c-86df-4573-96a3-3444732040c2",
"parameters": {
"path": "whatsapp-group-welcome",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2
},
{
"id": "9db51839-242e-45f8-bc39-6d191a4f130c",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
60
],
"parameters": {
"width": 170,
"content": "⚙️ **在此配置所有变量**"
},
"typeVersion": 1
},
{
"id": "a4bae5fe-6215-4785-8014-53bcad7f44f3",
"name": "Set Variables - 在此配置",
"type": "n8n-nodes-base.set",
"position": [
600,
260
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "group-id",
"name": "groupId",
"type": "string",
"value": "your_group_id@g.us"
},
{
"id": "api-key",
"name": "apiKey",
"type": "string",
"value": "YOUR-API-KEY-HERE"
},
{
"id": "instance-name",
"name": "instanceName",
"type": "string",
"value": "YourInstanceName"
},
{
"id": "evolution-url",
"name": "evolutionApiUrl",
"type": "string",
"value": "https://your-evolution-api.com"
},
{
"id": "welcome-message",
"name": "welcomeMessage",
"type": "string",
"value": "👋 Welcome to our community! \n\nWe're excited to have you here. If you have any questions or need assistance, feel free to ask. \n\nLet's grow together! 🚀"
},
{
"id": "wait-time",
"name": "waitMinutes",
"type": "number",
"value": 1
}
]
}
},
"typeVersion": 3.4
},
{
"id": "890c7d0b-584f-4c42-9c62-75bf5823b93e",
"name": "Filter - 检查目标群组",
"type": "n8n-nodes-base.filter",
"position": [
840,
260
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "check-group-id",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.body.data.id }}",
"rightValue": "={{ $('Set Variables - Configure Here').item.json.groupId }}"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "c38bf61c-e2af-4637-ae8a-d51af11b5ca9",
"name": "If - 新成员加入",
"type": "n8n-nodes-base.if",
"position": [
360,
460
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "check-action",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.body.data.action }}",
"rightValue": "add"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "109b3071-6f95-4a8d-afec-f938db5f6f23",
"name": "Wait - 自然延迟",
"type": "n8n-nodes-base.wait",
"position": [
600,
460
],
"webhookId": "e908013a-1ab0-476e-bae2-0efbe562b5d7",
"parameters": {
"unit": "minutes",
"amount": "={{ $('Set Variables - Configure Here').item.json.waitMinutes }}"
},
"typeVersion": 1.1
},
{
"id": "1b6d56e8-03f2-4fbe-a859-00ddbfb19715",
"name": "发送欢迎消息",
"type": "n8n-nodes-base.httpRequest",
"position": [
840,
460
],
"parameters": {
"url": "={{ $('Set Variables - Configure Here').item.json.evolutionApiUrl }}/message/sendText/{{ $('Set Variables - Configure Here').item.json.instanceName }}",
"method": "POST",
"options": {
"redirect": {
"redirect": {}
},
"allowUnauthorizedCerts": true
},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "number",
"value": "={{ $json.body.data.participants[0] }}"
},
{
"name": "text",
"value": "={{ $('Set Variables - Configure Here').item.json.welcomeMessage }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "apikey",
"value": "={{ $('Set Variables - Configure Here').item.json.apiKey }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "d4b1eb74-feb8-47e1-8928-51d587c1ce34",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
60
],
"parameters": {
"width": 200,
"content": "📝 **Webhook 配置**"
},
"typeVersion": 1
},
{
"id": "7b3d4744-4a64-4c10-a071-94e61cd6c676",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
800,
600
],
"parameters": {
"width": 180,
"height": 120,
"content": "✅ **成功!**"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Wait - Natural Delay": {
"main": [
[
{
"node": "Send Welcome Message",
"type": "main",
"index": 0
}
]
]
},
"If - New Member Joined": {
"main": [
[
{
"node": "Wait - Natural Delay",
"type": "main",
"index": 0
}
]
]
},
"Filter - Check if Target Group": {
"main": [
[
{
"node": "If - New Member Joined",
"type": "main",
"index": 0
}
]
]
},
"Set Variables - Configure Here": {
"main": [
[
{
"node": "Filter - Check if Target Group",
"type": "main",
"index": 0
}
]
]
},
"Webhook - Receive Group Events": {
"main": [
[
{
"node": "Set Variables - Configure Here",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 社交媒体
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Zoom网络研讨会自动化出席标记系统(集成KlickTipp)
Zoom网络研讨会自动化出席标记系统(集成KlickTipp)
Klicktipp
If
Set
+10
29 节点KlickTipp
社交媒体
我的工作流79
使用Google Sheets和MailerSend构建完整的电子邮件CRM系统
If
Set
Wait
+6
34 节点Nima Salimi
社交媒体
为 HubSpot 联系人和 SharePoint 生成 AI 撰写的新闻稿和素材
使用 GPT-4o、AI 图像和视频为 HubSpot 和 SharePoint 创建双语新闻稿
If
Set
Code
+15
49 节点plemeo
社交媒体
使用AI评分和Gmail推广管理社交媒体影响者活动
使用AI评分和Gmail推广管理社交媒体影响者活动
If
Set
Code
+6
15 节点Rodrigue
社交媒体
使用 Google Drive 和 Meta Graph API 从 Google Sheets 上传视频和图片广告到 Meta Ads Manager
从 Google Sheets 和 Google Drive 上传视频和图片广告到 Meta Ads Manager
If
Set
Code
+11
42 节点Daniel Setzermann
社交媒体
潜在客户开发与邮件工作流
使用Google Maps、SendGrid和AI自动化B2B潜在客户开发与邮件营销
If
Set
Code
+21
141 节点Ezema Kingsley Chibuzo
潜在客户开发