Skip to content

WhatsApp 触发器节点(WhatsApp Trigger node)#

使用 WhatsApp 触发节点来响应 WhatsApp 中的事件,并将 WhatsApp 与其他应用集成。n8n 内置支持多种 WhatsApp 事件,包括账户、消息和电话号码事件。

🌐 Use the WhatsApp Trigger node to respond to events in WhatsApp and integrate WhatsApp with other applications. n8n has built-in support for a wide range of WhatsApp events, including account, message, and phone number events.

本页面列出了 WhatsApp 触发器节点可以响应的事件列表以及更多资源的链接。

🌐 On this page, you'll find a list of events the WhatsApp Trigger node can respond to, and links to more resources.

凭证

你可以在此处找到此节点的认证信息。

示例和模板

有关使用示例和模板以帮助你入门,请参阅 n8n 的 WhatsApp 集成 页面。

事件(Events)#

  • 账户审核更新
  • 账户更新
  • 业务能力更新
  • 消息模板质量更新
  • 消息模板状态更新
  • 消息
  • 调用号码名称更新
  • 调用号码质量更新
  • 安全
  • 模板类别更新

n8n 提供了一个适用于 WhatsApp 的应用节点。你可以在 这里 查看该节点文档。

🌐 n8n provides an app node for WhatsApp. You can find the node docs here.

在 n8n 网站上查看示例工作流及相关内容

🌐 View example workflows and related content on n8n's website.

有关他们的 API 详细信息,请参考 WhatsApp 的文档

🌐 Refer to WhatsApp's documentation for details about their API.

常见问题(Common issues)#

以下是 WhatsApp 触发器节点的一些常见错误和问题,以及解决或故障排除步骤。

🌐 Here are some common errors and issues with the WhatsApp Trigger node and steps to resolve or troubleshoot them.

工作流仅在测试或生产环境中运行(Workflow only works in testing or production)#

WhatsApp 只允许你为每个应用注册一个 webhook。这意味着每次你从测试 URL 切换到生产 URL(反之亦然)时,WhatsApp 都会覆盖已注册的 webhook URL。

🌐 WhatsApp only allows you to register a single webhook per app. This means that every time you switch from using the testing URL to the production URL (and vice versa), WhatsApp overwrites the registered webhook URL.

如果你尝试测试一个在生产环境中也处于激活状态的工作流,可能会遇到问题。WhatsApp 只会将事件发送到两个 webhook URL 中的一个,另一个将永远不会收到事件通知。

🌐 You may have trouble with this if you try to test a workflow that's also active in production. WhatsApp will only send events to one of the two webhook URLs, so the other will never receive event notifications.

要解决此问题,你可以在测试时禁用工作流:

🌐 To work around this, you can disable your workflow when testing:

停止生产流量

此解决方法会暂时禁用你的生产工作流程以进行测试。在其被停用期间,你的工作流程将不再接收生产流量。

  1. 前往你的工作流页面。
  2. 在顶部面板切换 激活 开关以暂时禁用工作流程。
  3. 使用测试 Webhook URL 测试你的工作流。
  4. 测试完成后,切换 Inactive 开关以再次启用工作流。生产用的 webhook URL 应该会恢复正常工作。