This article describes the basic information that edna Chat Center passes to a chatbot using web hooks. For more details information about these and other web hooks with detailed examples and possible answers, refer here.
INIT_CHAT Webhook
Once a chat with a client loads (is initialized), edna sends the INIT_CHAT
webhook to the chatbot.
The following client information is passed in the webhook:
action
– AlwaysINIT_CHAT
threadsClientId
– Internal client ID in ednachannelInfo.channelType
– Channel where the chat was initializedchannelInfo.authorized
– Attribure that indicates whether the client is authorized (true
/false
)platform
– Channel platform, only for the channels of the Mobile type (iOS/Android)sender
– Sender information, alwaysThreadsAPI
clientData
– Additional fields with client information
MESSAGE Webhook
Once a client sends a message to a chat that is routed to a chatbot, edna sends the MESSAGE
webhook with the following information:
action
– AlwaysMESSAGE
text
– Text of the client’s messageclientId
– External client ID (for authorized clients only)threadsClientId
– Internal client ID in ednasessionId
– Internal thread IDquestionId
– Internal ID of the client’s message in ednaquestionIndex
– Index of the client’s message in the threadchannelInfo.channelType
– Channel where the chat was initializedchannelInfo.authorized
– Attribute that indicates whether the client is authorized (true
/false
)platform
– Channel platform, applicable only for the channels of the Mobile type (iOS/Android)clientData
– Additional fields with client informationsegmentationInfo
– Object that contains additional information for the thread routing (segmentation custom parameter) after the botkey
– Segmentation parameter namevalue
– Segmentation parameter value
receivedAt
– Time when the message was receivedattachments
– Array with attachment objectsattachments.url
– Attachment URLattachments.name
– Attachment nameattachments.type
– Attachment typeattachments.size
– Attachment size
sender
– Sender information, alwaysThreadsAPI
settings.blockInput
– Parameter that defines whether the message input field is blocked when using quick replies (true
/false
)settings.masked
– Parameter that is used to mask digits in the linked client message (true
/false
)