Chatbot Message When Providing Possible Answer
Chatbot Message When Providing Possible Answer
- Chatbot Message When Providing Possible Answer Manage
GET bot/chatbots/{id}/chatbotMessageWhenProvidingPossibleAnswer
PUT bot/chatbots/{id}/chatbotMessageWhenProvidingPossibleAnswer
Model
Chatbot Message When Providing Possible Answer JSON Format
Chatbot Message When Providing Possible Answer is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
chatbotId |
guid | Id of the chatbot. |
message |
string | The defined message which is displayed before listing the possible answers. |
noOfSuggestions |
integer | Number of suggestions. |
chatbot |
chatbot | Reference to Bot_Chatbot. |
Endpoint
Get a single Chatbot Message When Providing Possible Answer
GET bot/chatbots/{id}/chatbotMessageWhenProvidingPossibleAnswer
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed value is "chatbot". |
Response:
Example
Sample Request:
curl https://api15.comm100.io/v4/bot/chatbots/e8bf0d25-eed6-4a46-a417-368e15019609/chatbotMessageWhenProvidingPossibleAnswer \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Update the Chatbot Message When Providing Possible Answer
PUT bot/chatbots/{id}/chatbotMessageWhenProvidingPossibleAnswer
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
message |
string | body | yes | The defined message which is displayed before listing the possible answers. |
noOfSuggestions |
integer | body | no | Number of suggestions. |
Response:
Example
Sample Request:
curl https://api15.comm100.io/v4/bot/chatbots/e8bf0d25-eed6-4a46-a417-368e15019609/chatbotMessageWhenProvidingPossibleAnswer \
-X
'PUT'
\
-H
'Authorization: Bearer {access_token}'
\
-H
'Content-Type: application/json'
\
-D
'{"message":"Hmm..Do any of these topics match what you're looking for?","noOfSuggestions":1}'
Response:
HTTP/1.1 200 OK