WhatsApp MB Trigger icon

WhatsApp MB Trigger

Use WhatsApp Cloud API

Overview

This node acts as a trigger for WhatsApp Cloud API events, specifically for receiving messages and verifying tokens. It listens for incoming webhook requests from WhatsApp, processes message and status updates, and outputs them for further workflow automation. This is useful for automating responses, logging messages, or integrating WhatsApp communication into other systems.

Use Case Examples

  1. Automatically process incoming WhatsApp messages to trigger customer support workflows.
  2. Verify webhook tokens during WhatsApp API setup to ensure secure communication.
  3. Capture message statuses to track delivery and read receipts.

Output

JSON

  • businessNumberId - The WhatsApp business phone number ID associated with the message or status.
  • from - The sender's WhatsApp ID for received messages.
  • text - The text content of the received message or button payload.
  • id - The unique ID of the received message.
  • statusName - The status name of the message (e.g., delivered, read) for status updates.
  • recipientId - The recipient's WhatsApp ID for status updates.

Dependencies

  • Requires WhatsApp Cloud API credentials with an API key for authentication.

Troubleshooting

  • Ensure the webhook URL is correctly configured in the WhatsApp Cloud API settings to receive events.
  • Verify that the token used for webhook verification matches the one set in the credentials to avoid authorization errors.
  • Check that the incoming webhook payload structure matches the expected format to prevent processing errors.

Links

Discussion