WAHA WhatsApp Chat Trigger
AI-generatedOverview
This node triggers workflows when specific WhatsApp chat events occur. It listens for incoming webhook calls from a configured WhatsApp instance and activates the workflow if the event matches one of the selected chat events. This is useful for automating responses or processes based on changes in chat status, such as archiving, unarchiving, or deleting chats.
Practical examples include:
- Automatically logging archived chats to a database.
- Sending notifications when a chat is unarchived.
- Triggering cleanup operations when a chat is deleted.
Properties
| Name | Meaning |
|---|---|
| Remember to configure WhatsApp instance (session or server) to send events to Webhook URL | Informational notice reminding users to set up their WhatsApp instance to send events to this node's webhook URL. |
| Events | The chat events to listen for. Options: Chat Archive, Chat Unarchive, Chat Delete. |
Output
The node outputs JSON data containing the full body of the webhook request under the json field. This includes details about the WhatsApp chat event that triggered the workflow. The output structure reflects the original webhook payload received from the WhatsApp instance.
No binary data output is produced by this node.
Dependencies
- Requires a WhatsApp instance (either session-based or server-based) configured to send chat event webhooks to the node’s webhook URL.
- No additional external services or API keys are required within the node itself.
- Proper webhook URL configuration in the WhatsApp instance is essential for operation.
Troubleshooting
Common Issue: No workflow trigger despite chat events occurring.
- Cause: The WhatsApp instance may not be correctly configured to send events to the webhook URL.
- Resolution: Verify that the WhatsApp instance is set up to send chat event webhooks to the correct URL provided by this node.
Common Error: Workflow does not trigger for certain events.
- Cause: The event type might not be selected in the "Events" property.
- Resolution: Ensure the desired chat events are selected in the node’s properties.
Error Handling: If an event is received that is not among the selected events, the node returns an empty response and does not trigger the workflow.