Skip to content

Chat

Actions and triggers for using with the chat widget.

Categories: helpers

Type: chat/v1


Actions

Response to Chat Request

Name: responseToRequest

Converts the response to chat request.

Properties

NameLabelTypeDescriptionRequired
messageMessageSTRINGThe message of the response.null
attachmentsAttachmentsARRAY
Items [FILE_ENTRY]
The attachments of the response.null

Example JSON Structure

{
"label" : "Response to Chat Request",
"name" : "responseToRequest",
"parameters" : {
"message" : "",
"attachments" : [ {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
} ]
},
"type" : "chat/v1/responseToRequest"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Triggers

New Chat Request

Name: newChatRequest

.

Type: STATIC_WEBHOOK

Properties

NameLabelTypeDescriptionRequired
modeINTEGER
Options 1, 2
true

Output

Type: OBJECT

Properties

NameTypeDescription
conversationIdSTRING
messageSTRING
attachmentsARRAY
Items [FILE_ENTRY]

JSON Example

{
"label" : "New Chat Request",
"name" : "newChatRequest",
"parameters" : {
"mode" : 1
},
"type" : "chat/v1/newChatRequest"
}