Webhook events
We currently support the following webhook events:
webhook:verifymessage:createdconversation:createdconversation:updatedcustomer:created(coming soon!)customer:updated(coming soon!)
See below to learn more about each event, and view example payloads.
webhook:verify#
The webhook:verify event is sent when setting up your webhook URL. In order to verify your URL, it will need to respond with the payload sent with the event.
Example:
In order to get your URL verified, it will need to respond with the randomly generated string in the payload. In a NodeJS backend, this might look something like:
message:created#
The message:created event is sent whenever a new message is created. A message may be created from any channel: the chat widget, the dashboard, Slack, etc.
Example:
conversation:created#
The conversation:created event is sent whenever a new conversation is started.
Example:
conversation:updated#
The conversation:updated event is sent whenever a conversation is updated.
Things to note:
- the
payloadincluded in this event represents the entire conversation record, not the diff - this event may get fired if a database update is triggered, even if the data hasn't changed
Example:
customer:created#
The customer:created event is sent whenever a new customer record is created.
Not yet implemented.
customer:updated#
The customer:updated event is sent whenever a customer is updated.
Not yet implemented.