通过非官方 API 批量验证 WhatsApp 号码
中级
这是一个Lead Generation领域的自动化工作流,包含 11 个节点。主要使用 If, Code, Wait, Limit, HttpRequest 等节点。 使用 Google Sheets 和 WasenderAPI 批量验证 WhatsApp 号码
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "CuBmYtNjobSBPXCt",
"meta": {
"instanceId": "281fe883012e72eba57c771d5dbf7c3138ca3fe3633c5ba2adf6169821825dd4",
"templateCredsSetupCompleted": true
},
"name": "通过非官方 API 批量验证 WhatsApp 号码",
"tags": [
{
"id": "8UZKwEpVhvJhLDmj",
"name": "Dev",
"createdAt": "2025-07-19T17:50:54.267Z",
"updatedAt": "2025-07-19T17:50:54.267Z"
}
],
"nodes": [
{
"id": "34af5c80-f216-4384-b0e7-e256863dc5c9",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
528,
32
],
"parameters": {
"options": {}
},
"executeOnce": false,
"typeVersion": 3
},
{
"id": "3aa6f527-27c6-40b5-92e5-213795bb72fc",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
1616,
80
],
"webhookId": "a6455832-dc54-4bf5-8710-6bfcc752302f",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "099b92b8-9432-4ede-a542-c960f68fbfdc",
"name": "限制",
"type": "n8n-nodes-base.limit",
"position": [
352,
32
],
"parameters": {
"maxItems": 60
},
"typeVersion": 1
},
{
"id": "e2842b7a-c5fa-4f6b-ac88-0818b27e63b4",
"name": "每 5 分钟触发一次",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-272,
32
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "a96ec4d1-85ec-411f-a17e-67dc9e7dee36",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1232,
-496
],
"parameters": {
"color": 4,
"width": 704,
"height": 1644,
"content": "# 📘 通过非官方 API 批量验证 WhatsApp 号码"
},
"typeVersion": 1
},
{
"id": "21401f12-03b5-4f15-bf81-04f210c7dac1",
"name": "如果",
"type": "n8n-nodes-base.if",
"position": [
960,
48
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "99a8cf5b-869c-410f-93df-4c52f45d6986",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $json.data.exists }}",
"rightValue": "true"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "66958bcb-2d2b-4d96-888b-07677a192505",
"name": "获取所有待验证的联系人",
"type": "n8n-nodes-base.googleSheets",
"position": [
48,
32
],
"parameters": {
"options": {},
"filtersUI": {
"values": [
{
"lookupColumn": "Status"
}
]
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 2104188169,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iF2bDuwCp5NoauMXSCH_0NAB6nrK55lf8tJwhZdzT5g/edit#gid=2104188169",
"cachedResultName": "Contacts"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1iF2bDuwCp5NoauMXSCH_0NAB6nrK55lf8tJwhZdzT5g",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iF2bDuwCp5NoauMXSCH_0NAB6nrK55lf8tJwhZdzT5g/edit?usp=drivesdk",
"cachedResultName": "WhatsApp Number Verify Via Unofficial API"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "hIOzlTOST3U7PqR8",
"name": "Google Sheets account"
}
},
"notesInFlow": false,
"retryOnFail": false,
"typeVersion": 4.6
},
{
"id": "61482a96-fa92-4d90-9061-5d7f833393ba",
"name": "使用 HTTP 请求验证 WhatsApp 号码",
"type": "n8n-nodes-base.httpRequest",
"position": [
768,
48
],
"parameters": {
"url": "=https://www.wasenderapi.com/api/on-whatsapp/{{ $json['WhatsApp No'] }}@s.whatsapp.net",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "eEnvhbO5JFh46Shb",
"name": "WasenderAPI"
}
},
"executeOnce": false,
"typeVersion": 4.2
},
{
"id": "8eec2dff-16ac-4769-951e-58d3f28ddcce",
"name": "设置状态",
"type": "n8n-nodes-base.code",
"position": [
1184,
-80
],
"parameters": {
"jsCode": "return { txt: \"Verified\" };\n"
},
"typeVersion": 2
},
{
"id": "12b2ef86-e2b0-4516-9b1c-a29ef79cf556",
"name": "设置状态1",
"type": "n8n-nodes-base.code",
"position": [
1184,
64
],
"parameters": {
"jsCode": "return { txt: \"Unverified\" };\n"
},
"typeVersion": 2
},
{
"id": "07d39b85-46dc-454f-b5a2-7e5652c9c775",
"name": "将已检查行的状态更改为已检查",
"type": "n8n-nodes-base.googleSheets",
"position": [
1408,
80
],
"parameters": {
"columns": {
"value": {
"Status": "Checked",
"row_number": "={{ $('Loop Over Items').item.json.row_number }}",
"Verified/Unverified": "={{ $json.txt }}"
},
"schema": [
{
"id": "SL",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "SL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "WhatsApp No",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "WhatsApp No",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Name",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Profile Image URL",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Profile Image URL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Verified/Unverified",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Verified/Unverified",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Status",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Status",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "number",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"row_number"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 2104188169,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iF2bDuwCp5NoauMXSCH_0NAB6nrK55lf8tJwhZdzT5g/edit#gid=2104188169",
"cachedResultName": "Contacts"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1iF2bDuwCp5NoauMXSCH_0NAB6nrK55lf8tJwhZdzT5g",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iF2bDuwCp5NoauMXSCH_0NAB6nrK55lf8tJwhZdzT5g/edit?usp=drivesdk",
"cachedResultName": "WhatsApp Number Verify Via Unofficial API"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "hIOzlTOST3U7PqR8",
"name": "Google Sheets account"
}
},
"typeVersion": 4.6
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "44bff38d-9ddb-4654-842a-cff4b0681712",
"connections": {
"If": {
"main": [
[
{
"node": "Set Status",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Status1",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Limit": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Set Status": {
"main": [
[
{
"node": "Change State of Rows in Checked",
"type": "main",
"index": 0
}
]
]
},
"Set Status1": {
"main": [
[
{
"node": "Change State of Rows in Checked",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Verify WhatsApp Number Using HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Trigger Every 5 Minute": {
"main": [
[
{
"node": "Fetch All Pending Contacts for Verifing",
"type": "main",
"index": 0
}
]
]
},
"Change State of Rows in Checked": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Fetch All Pending Contacts for Verifing": {
"main": [
[
{
"node": "Limit",
"type": "main",
"index": 0
}
]
]
},
"Verify WhatsApp Number Using HTTP Request": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 潜在客户开发
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用Rapiwa API从Google表格自动化发送WhatsApp欢迎消息
使用Google表格和Rapiwa为销售线索自动化发送WhatsApp欢迎消息
If
Code
Wait
+6
17 节点SpaGreen Creative
客户培育
使用Rapiwa API的批量WhatsApp营销自动化(非官方集成)
使用Rapiwa API从Google Sheets批量发送WhatsApp消息
If
Code
Wait
+6
20 节点SpaGreen Creative
社交媒体
通过Rapiwa API发送表单提交的WhatsApp确认
基于Rapiwa API和Google表格的WhatsApp号码验证与确认系统
If
Code
Wait
+5
17 节点SpaGreen Creative
潜在客户开发
潜在客户开发与邮件工作流
使用Google Maps、SendGrid和AI自动化B2B潜在客户开发与邮件营销
If
Set
Code
+21
141 节点Ezema Kingsley Chibuzo
潜在客户开发
使用Rapiwa自动化Shopify弃购车WhatsApp提醒(含产品链接)
自动化Shopify弃购车WhatsApp提醒:通过Rapiwa包含产品链接
If
Code
Wait
+5
19 节点SpaGreen Creative
内容创作
通过 Rapiwa API 发送 WooCommerce 新分类 WhatsApp 提醒
通过 Rapiwa API 和 Google Sheets 发送 WooCommerce 分类提醒到 WhatsApp
If
Code
Wait
+7
19 节点SpaGreen Creative
内容创作
工作流信息
难度等级
中级
节点数量11
分类1
节点类型9
作者
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 6,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 查看 →
分享此工作流