通过Rapiwa API发送表单提交的WhatsApp确认
高级
这是一个Lead Generation, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Code, Wait, Webhook, HttpRequest 等节点。 基于Rapiwa API和Google表格的WhatsApp号码验证与确认系统
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "kAOSKqqPXlCnisof",
"meta": {
"instanceId": "cb9a1e5321767b6316634728341237e564b2587ab15b74ca0a89eb02a53484d6",
"templateCredsSetupCompleted": true
},
"name": "通过 Rapiwa API 发送表单提交的 WhatsApp 确认",
"tags": [],
"nodes": [
{
"id": "6cc792e7-eb4a-4e9e-8989-338986085fb8",
"name": "清理号码",
"type": "n8n-nodes-base.code",
"position": [
-624,
144
],
"parameters": {
"jsCode": "const items = $input.all();\nconst updatedItems = items.map((item) => {\n const waNo = item?.json[\"number\"];\n const waNoStr = typeof waNo === 'string' ? waNo : (waNo !== undefined && waNo !== null ? String(waNo) : \"\");\n const cleanedNumber = waNoStr.replace(/\\D/g, \"\");\n item.json[\"number\"] = cleanedNumber;\n return item;\n});\nreturn updatedItems;"
},
"typeVersion": 2
},
{
"id": "5707dc19-9692-40db-96f4-8e2061d0e0b2",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-992,
128
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "78732045-d7d2-464d-85b5-e4069a76f6d5",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-1552,
128
],
"webhookId": "a9b6a936-e5f2-4d4c-9cf9-182de0a970d5",
"parameters": {
"path": "a9b6a936-e5f2-4d4c-9cf9-182de0a970d5",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2
},
{
"id": "05f4d013-f55c-43ad-90a3-e93db13a6482",
"name": "如果",
"type": "n8n-nodes-base.if",
"position": [
16,
144
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "3ab8725a-9268-45fd-b91c-0e055fe6fa7c",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $json.data.exists }}",
"rightValue": "=\"true\""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "04cff67c-51e0-4516-9279-13349b9badfb",
"name": "未验证的添加到表格行",
"type": "n8n-nodes-base.googleSheets",
"position": [
496,
320
],
"parameters": {
"columns": {
"value": {
"Date": "={{ $('Cleane Number').item.json.submitted_date }}",
"Name": "={{ $('Cleane Number').item.json.name }}",
"Email ": "={{ $('Cleane Number').item.json.email }}",
"Location": "={{ $('Cleane Number').item.json.location }}",
"validity": "unverified",
"Business Name": "={{ $('Cleane Number').item.json.business_name }}",
"WhatsApp Number": "={{ $('Cleane Number').item.json.whatsapp }}"
},
"schema": [
{
"id": "Business Name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Business Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Location",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Location",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "WhatsApp Number",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "WhatsApp Number",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Email ",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Email ",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "validity",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "validity",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Date",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Date",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1H29z_8tnsu8AvCsI7o1SjiV-5LDTwiVVQk-BNr8SMk0/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1H29z_8tnsu8AvCsI7o1SjiV-5LDTwiVVQk-BNr8SMk0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1H29z_8tnsu8AvCsI7o1SjiV-5LDTwiVVQk-BNr8SMk0/edit?usp=drivesdk",
"cachedResultName": "Send WhatsApp Confirmation on Form Submission (Rapiwa API)"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "gFH3Wjq6yYqSEAei",
"name": "Google Sheets"
}
},
"typeVersion": 4.6
},
{
"id": "50964759-12c0-42e3-a38a-6a317293bfac",
"name": "已验证的添加到表格行",
"type": "n8n-nodes-base.googleSheets",
"position": [
752,
-32
],
"parameters": {
"columns": {
"value": {
"Date": "={{ $('Cleane Number').item.json.submitted_date }}",
"Name": "={{ $('Cleane Number').item.json.name }}",
"Email ": "={{ $('Cleane Number').item.json.email }}",
"Location": "={{ $('Cleane Number').item.json.location }}",
"validity": "verified",
"Business Name": "={{ $('Cleane Number').item.json.business_name }}",
"WhatsApp Number": "={{ $('Cleane Number').item.json.whatsapp }}"
},
"schema": [
{
"id": "Business Name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Business Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Location",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Location",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "WhatsApp Number",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "WhatsApp Number",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Email ",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Email ",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "validity",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "validity",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Date",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Date",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1H29z_8tnsu8AvCsI7o1SjiV-5LDTwiVVQk-BNr8SMk0/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1H29z_8tnsu8AvCsI7o1SjiV-5LDTwiVVQk-BNr8SMk0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1H29z_8tnsu8AvCsI7o1SjiV-5LDTwiVVQk-BNr8SMk0/edit?usp=drivesdk",
"cachedResultName": "Send WhatsApp Confirmation on Form Submission (Rapiwa API)"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "gFH3Wjq6yYqSEAei",
"name": "Google Sheets"
}
},
"typeVersion": 4.6
},
{
"id": "deaa6822-f6d6-42c4-a2cd-64698c77611b",
"name": "等待1",
"type": "n8n-nodes-base.wait",
"position": [
768,
320
],
"webhookId": "6c474e54-eb3c-4fcd-b455-948322cd0121",
"parameters": {
"amount": 2
},
"typeVersion": 1.1
},
{
"id": "0c2f6847-5472-4f5a-9fa1-e63fca06e2c1",
"name": "格式化 Webhook 响应数据",
"type": "n8n-nodes-base.code",
"position": [
-1296,
128
],
"parameters": {
"jsCode": "const result = $input.all().map(item => {\n const body = item.json.body || {};\n\n // Get current date in YYYY-MM-DD format\n const submitted_date = new Date().toISOString().split('T')[0];\n\n return {\n business_name: body.business_name,\n location: body.location,\n whatsapp: body.whatsapp,\n email: body.email,\n name: body.name,\n submitted_date: submitted_date\n };\n});\n\nreturn result;\n"
},
"typeVersion": 2
},
{
"id": "0f832810-51fd-408a-9b41-68c12d0aaf9d",
"name": "使用 Rapiwa 发送消息",
"type": "n8n-nodes-base.httpRequest",
"position": [
528,
-32
],
"parameters": {
"url": "=https://app.rapiwa.com/api/send-message",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "number",
"value": "={{ $json.data.phone }}"
},
{
"name": "message_type",
"value": "text"
},
{
"name": "message",
"value": "=Hi {{ $('Cleane Number').item.json.name }}, \nThanks! Your form has been submitted successfully. "
}
]
},
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "jnaHCyYia9OAFozh",
"name": "Rapiwa Bearer Auth"
}
},
"typeVersion": 4.2
},
{
"id": "6a2c5979-109d-4e30-9c40-109aeef24632",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2656,
-480
],
"parameters": {
"width": 944,
"height": 3136,
"content": "# 通过 Rapiwa API 发送表单提交的 WhatsApp 确认"
},
"typeVersion": 1
},
{
"id": "bf94c923-f333-4ea5-8cd1-82433fd9e92f",
"name": "使用 Rapiwa 检查有效的 WhatsApp 号码",
"type": "n8n-nodes-base.httpRequest",
"position": [
-416,
144
],
"parameters": {
"url": "=https://app.rapiwa.com/api/verify-whatsapp",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "number",
"value": "={{ $json.whatsapp }}"
}
]
},
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "jnaHCyYia9OAFozh",
"name": "Rapiwa Bearer Auth"
}
},
"typeVersion": 4.2
},
{
"id": "7b625fbd-b299-4183-bb65-85c8bfa020a1",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1664,
-480
],
"parameters": {
"color": 4,
"width": 544,
"height": 816,
"content": "## 通过 Webhook 触发"
},
"typeVersion": 1
},
{
"id": "c0e6db0e-ba2f-448e-a948-c6adb0d6301a",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1088,
-480
],
"parameters": {
"color": 5,
"width": 320,
"height": 816,
"content": "## 批量处理"
},
"typeVersion": 1
},
{
"id": "cacbf378-6483-42ac-a76a-ad221b657d37",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-736,
-480
],
"parameters": {
"color": 4,
"width": 560,
"height": 816,
"content": "## 清理 WhatsApp 号码"
},
"typeVersion": 1
},
{
"id": "1e2ba823-daa4-4760-872e-f2565e8148d7",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-144,
-480
],
"parameters": {
"color": 2,
"width": 432,
"height": 816,
"content": "## 条件逻辑"
},
"typeVersion": 1
},
{
"id": "7a599350-0eb0-4566-bd19-a3204d06e815",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
-480
],
"parameters": {
"color": 4,
"width": 592,
"height": 688,
"content": "## 发送 WhatsApp 确认"
},
"typeVersion": 1
},
{
"id": "a31d310f-f7b6-48f9-9c5f-6fdfd30fae5d",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
240
],
"parameters": {
"color": 3,
"width": 832,
"height": 448,
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "91d019e7-75a4-4288-b1ea-3e0a97479fc1",
"connections": {
"If": {
"main": [
[
{
"node": "Send Message Using Rapiwa",
"type": "main",
"index": 0
}
],
[
{
"node": "unverified append row in sheet",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "Format Webhook Response Data",
"type": "main",
"index": 0
}
]
]
},
"Cleane Number": {
"main": [
[
{
"node": "Check valid whatsapp number Using Rapiwa",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Cleane Number",
"type": "main",
"index": 0
}
]
]
},
"Send Message Using Rapiwa": {
"main": [
[
{
"node": "verified append row in sheet",
"type": "main",
"index": 0
}
]
]
},
"Format Webhook Response Data": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"verified append row in sheet": {
"main": [
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"unverified append row in sheet": {
"main": [
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Check valid whatsapp number Using Rapiwa": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 潜在客户开发, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用Rapiwa API从Shopify发送自动WhatsApp订单确认
使用Rapiwa和Google Sheets从Shopify发送自动WhatsApp订单确认
If
Code
Wait
+5
18 节点SpaGreen Creative
内容创作
通过 Rapiwa API 发送 WooCommerce 新分类 WhatsApp 提醒
通过 Rapiwa API 和 Google Sheets 发送 WooCommerce 分类提醒到 WhatsApp
If
Code
Wait
+7
19 节点SpaGreen Creative
内容创作
Shopify自动发送WhatsApp感谢消息和忠诚度优惠券(使用Rapiwa API)
使用Rapiwa从Shopify自动发送WhatsApp感谢消息和忠诚度优惠券
If
Code
Wait
+5
17 节点SpaGreen Creative
内容创作
使用Rapiwa自动化Shopify弃购车WhatsApp提醒(含产品链接)
自动化Shopify弃购车WhatsApp提醒:通过Rapiwa包含产品链接
If
Code
Wait
+5
19 节点SpaGreen Creative
内容创作
使用Rapiwa API实现Shopify订单履约并通过WhatsApp发送跟踪链接
通过WhatsApp自动化Shopify订单履约通知
If
Code
Wait
+5
17 节点SpaGreen Creative
内容创作
使用Rapiwa API从Google表格自动化发送WhatsApp欢迎消息
使用Google表格和Rapiwa为销售线索自动化发送WhatsApp欢迎消息
If
Code
Wait
+6
17 节点SpaGreen Creative
客户培育
工作流信息
难度等级
高级
节点数量17
分类2
节点类型8
作者
SpaGreen Creative
@spagreenSpaGreen Creative is a leading software company specializing in SaaS solutions, AI automation, and Laravel/Vue.js development. With 800+ eCommerce platforms and 8,000+ global clients, we deliver powerful tools for OTT, CRM, ERP, and WhatsApp marketing. We combine innovation and tech to build scalable digital products.
外部链接
在 n8n.io 查看 →
分享此工作流