Request / Response Format  

The following are the Request and Response format of the bot: 

Request payload when a visitor lands on the website

InputsTypeDescription
visitorMapDetails of the website visitor
handlerStringA trigger handler is initiated (Value: trigger)
org_idStringWhich will contain the org ID of the portal
requestMapDetails of the chat message request

 

InputsTypeDescription
messageMapDetails of the message in the conversation (Attribute: text)
visitorMapDetails of the website visitor
operationString

Details of the operations happen during the chat conversation (values: chat, message)

chat -For the first message of the visitor

message - For subsequent replies from visitor

handlerStringThe message handler is initiated (Value : message)
org_idStringWhich will contain the org ID of the portal
requestMapDetails of the chat message request
attachmentsArray

List of files attached in the chat message request.

Note: If this is not added, an empty array will be returned.

Request payload when a context gets completed

InputsTypeDescription
answersStringDetails of the message in the conversation (Attribute: text)
visitorMapDetails of the website visitor
context_idStringID of the context currently used
handlerStringThe context handler is initiated (Value : context)
org_idStringWhich will contain the org ID of the portal

Visitor Objects Format: 

The visitor object is a map containing the profile information of the website visitor. Learn More

Attachment Object format

The attachment is a collection object, which contains the files that are shared by the visitor during the conversation as a message. Learn More

Message Object Format

Each text message in the conversation will be considered as the message object. Learn More

Response format

The input and output responses given by the bot during the conversation. Learn More