WhatsApp 触发器节点#
¥WhatsApp Trigger node
使用 WhatsApp Trigger 节点响应 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.
Examples and templates
有关使用示例和模板以帮助你入门,请参阅 n8n 的 WhatsApp 集成 页面。
¥For usage examples and templates to help you get started, refer to n8n's WhatsApp integrations page.
事件#
¥Events
- 账户审核更新
¥Account Review Update
- 账户更新
¥Account Update
- 业务能力更新
¥Business Capability Update
- 消息模板质量更新
¥Message Template Quality Update
- 消息模板状态更新
¥Message Template Status Update
- 消息
¥Messages
- 调用号码名称更新
¥Phone Number Name Update
- 调用号码质量更新
¥Phone Number Quality Update
- 安全
¥Security
- 模板类别更新
¥Template Category Update
相关资源#
¥Related resources
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 中的一个,因此另一个 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:
Halts production traffic
此变通方案会暂时禁用你的生产工作流以进行测试。你的工作流在停用期间将不再接收生产流量。
¥This workaround temporarily disables your production workflow for testing. Your workflow will no longer receive production traffic while it's deactivated.
- 前往你的工作流页面。
¥Go to your workflow page. 2. 切换顶部面板中的“激活”开关以暂时禁用工作流。
¥Toggle the Active switch in the top panel to disable the workflow temporarily. 3. 使用测试 Webhook URL 测试你的工作流。
¥Test your workflow using the test webhook URL. 4. 测试完成后,请切换“非活动”开关以重新启用工作流。生产环境的 webhook URL 应该恢复正常工作。
¥When you finish testing, toggle the Inactive toggle to enable the workflow again. The production webhook URL should resume working.