Incoming WhatsApp Chat Event
By utilizing this event node, a new workflow instance is started whenever a user initiates a new chat or an existing chat is loaded to continue the user dialogue.
Usage​
Create an event node that triggers for a new incoming message, handle the messsage issued by the
chat e.g. by processing whatsapp.message_recv and send an answer message.
Variables​
These values are automatically set when a new chat is started:
| Variable | Description |
|---|---|
whatsapp.phone_number_id | The ID that the event provides from incoming messages |
whatsapp.message_recv | The received message |
whatsapp.message_from_name | Name of the message sender |
whatsapp.recipient_phone | Phone number of recipient |
whatsapp.location_latitude | Location data (latitude), optional |
whatsapp.location_longitude | Location data (longitude), optional |
whatsapp.message_timestamp | Timestamp of the message |
See also WhatsApp Chat for documentation on sending a whatsapp message.