WhatsAPI Trigger icon

WhatsAPI Trigger

Handle WhatsApi trigger via webhooks

Overview

This node acts as a trigger for WhatsApi events via webhooks. It listens for specific WhatsApi events, particularly the 'messages.upsert' event, and triggers workflows when such events are received. This is useful for automating processes based on incoming WhatsApi messages, such as responding to messages, logging them, or integrating with other systems.

Use Case Examples

  1. Automatically respond to new WhatsApi messages when the 'messages.upsert' event occurs.
  2. Log incoming WhatsApi messages to a database for record-keeping.
  3. Trigger notifications or other workflows based on WhatsApi message events.

Output

JSON

  • workflowData - Array of arrays containing JSON data for each supported event type, with the 'messages.upsert' event data included in the output.

Troubleshooting

  • If the webhook URL is not correctly configured in WhatsApi, the node will not receive events. Ensure the webhook URL matches the one set in WhatsApi.
  • If an unsupported event type is received, the node will not trigger any workflow. Only 'messages.upsert' events are supported.
  • Ensure the incoming webhook payload contains the 'event' field; otherwise, the node will ignore the request.

Links

Discussion