By subscribing to this webhook, you would receive the normalized events that WOZTELL pre-processed for all supported platforms.
Text message:
Video message:
Apart from the message event, you can also receive message status update by subscribing to the inbound messages, such as the SENT
, DELIVERED
and READ
events from WhatsApp.
When the message status becomes READ
:
body
Property | Type | Description |
---|---|---|
type | String | Can be either BOT or MANUAL . Indicating whether the outbound message is from the chatbot or from API/Broadcast |
member | String | ID of the member |
channel | String | ID of the channel |
app | String | ID of the app |
meta | Object | apiSource that includes information of the source integration |
memberExtraData | Object | Extra member data and an valid member path |
customHeadersData | Object | Custom header key and custom header value |
messageEvent | Object | messageEvent object containing the normalised message |
messageEvent
Property | Type | Description |
---|---|---|
from | String | ID of the sender |
to | String | ID of the recipient |
timestamp | Number | Unix timestamp |
type | String | Message type |
data | Object | Message data for the corresponding message type |
messageId | String | Message ID from the external platform (this property might not exist) |
meta
Property | Type | Description |
---|---|---|
agentUserId | String | ID of the user who sent the message. |
source | Object | The information of the source integration; identical to apiSource |
apiSource | Object | The information of the source integration; to be deprecated soon |
_source_
Property | Type | Description |
---|---|---|
integrationId | String | Type of source integration |
build | Number | Version of the integration |
appIntegration | String | ID of the integration |
The agentUserId
in the outbound message can be used to obtain the team member information with the Open API query:
The chatbot response messages will be sent to your designated webhook.
The messages sent via SendResponse API will be sent to your designated webhook.
The messages sent via the Broadcast will be sent to to your designated webhook.
By subscribing to these events, you would receive the events whenever there is status change on a member of this channel.
The Member Update Events include: Member Create
, Member Subscription Status Update
, Member Livechat Status Update
, Member Meta Update
, Member Temp Data Update
and Member Tags Update
.
body
Property | Type | Description |
---|---|---|
eventType | String | MEMBER_UPDATE |
functionName | String | NORMAL_UPDATE_MEMBER : update the member manually in members page;BOT_UPDATE_MEMBER : update the member with bot |
member | String | ID of the member |
channel | String | ID of the channel |
app | String | ID of the app |
before | Object | Status of the member before the change |
after | Object | Status of the member after the change |
When multiple members are updated in batch at the a time, you would receive the event type BATCH_MEMBER_UPDATE
.
body
Property | Type | Description |
---|---|---|
eventType | String | BATCH_MEMBER_UPDATE |
functionName | String | The batch update function, including OPEN_API_BATCH_CREATE_CHAT , OPEN_API_UPDATE_MEMBERS , OPEN_API_BATCH_UPDATE_MEMBERS , NORMAL_UPDATE_MEMBERS , BATCH_ADD_TAGS , BATCH_DELETE_TAGS , BATCH_REPLACE_TAGS |
members | Array | Array of member IDs |
channel | String | ID of the channel |
app | String | ID of the app |
update | Object | Details of the member update |
By subscribing to this, you would receive events whenever a node is triggered in this channel.
body
Property | Type | Description |
---|---|---|
eventType | String | NODE_TRIGGER |
app | String | ID of the app |
channel | String | ID of the channel |
member | String | ID of the member |
timestamp | String | Time when the node is triggered |
node | String | nodeId |
compositeId | String | Unique ID of a node |
tree | String | ID of the tree |
messageEvent | Object | messageEvent object containing the normalised message |
The new channel webhook system allows better control over the events received by your webhook. In the channel's "Environment" page, you can manage your webhooks subscribed to each environment of a channel.
To edit your webhook, click on "more" and select "Remove".