Agent Assist Learning Question
Agent Assist Learning Questions
- Agent Assist Learning Questions Manage
GET bot/agentAssistLearningQuestions
GET bot/agentAssistLearningQuestions/{id}
POST bot/agentAssistLearningQuestions
DELETE bot/agentAssistLearningQuestions/{id}
Model
Agent Assist Learning Question JSON Format
Agent Assist Learning Question is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
guid | Id of the learning question. |
chatId |
guid | Id of the chat. |
question |
string | Questions for bot training. |
agentResponse |
string | Agent response for bot training. |
suggestionType |
string | Allowed values are "none", "publicCannedMessage", "KBArticle", "chatbotIntent". |
score |
float | Score of the suggestion. |
createdTime |
datetime | Time when the learning question was created. |
publicCannedMessageId |
guid | Id of the matched public canned message. |
articleId |
guid | Id of the matched KB article. |
intentId |
guid | Id of the matched intent in chatbot. |
knowledgeBaseId |
guid | Id of the matched KB. |
chatbotId |
guid | Id of the matched chatbot. |
intent |
intent | Reference to Chatbot Intent. |
article |
article | Reference to KnowledgeBase_Article. |
publicCannedMessage |
publicCannedMessage | Reference to Global_PublicCannedMessage. |
Endpoint
Get the list of Agent Assist Learning Questions
GET bot/agentAssistLearningQuestions
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
question |
string | query | no | Question for bot training. |
dateRange |
dateTime | query | no | Filter by date interval. |
score |
float | query | no | The score of suggestion. |
include |
string | query | no | Allowed values are "chatbotIntent", "article", "publicCannedMessage". |
Response:
An array of Agent Assist Learning Question
Example
Sample Request:
curl https://api15.comm100.io/v4/bot/agentAssistLearningQuestions \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Get a single Agent Assist Learning Question
GET bot/agentAssistLearningQuestions/{id}
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Allowed values are "chatbotIntent", "article", "publicCannedMessage". |
Response:
Example
Sample Request:
curl https://api15.comm100.io/v4/bot/agentAssistLearningQuestions/7dc75f7b-a82e-4048-9256-bb775a49bf35 \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Create a new Agent Assist Learning Question
POST bot/agentAssistLearningQuestions
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
chatId |
guid | body | no | Id of the chat. |
question |
string | body | no | Questions for bot training. |
agentResponse |
string | body | no | Agent response for bot training. |
suggestionType |
string | body | yes | Allowed values are "none", "publicCannedMessage", "KBArticle", "chatbotIntent". |
score |
float | body | yes | Score of the suggestion. |
createdTime |
datetime | body | no | Time when the learning question was created. |
publicCannedMessageId |
guid | body | no | Id of the matched public canned message. |
articleId |
guid | body | no | Id of the matched KB article. |
intentId |
guid | body | no | Id of the matched intent in chatbot. |
knowledgeBaseId |
guid | body | no | Id of the matched KB. |
chatbotId |
guid | body | no | Id of the matched chatbot. |
Response:
Example
Sample Request:
curl https://api15.comm100.io/v4/bot/agentAssistLearningQuestions \
-X
'POST'
\
-H
'Authorization: Bearer {access_token}'
\
-H
'Content-Type: application/json'
\
-D
'{"chatId":"8c9b6c0c-f72e-4b56-b524-64f37be3d604","question":"I want to buy a clothes.","agentResponse":"What clothes you want to buy?","suggestionType":"chatbotIntent","score":60.0,"createdTime":"2021-04-09T09:30:26.553Z","publicCannedMessageId":"00000000-0000-0000-0000-000000000000","articleId":"00000000-0000-0000-0000-000000000000","intentId":"00000000-0000-0000-0000-000000000000","knowledgeBaseId":"00000000-0000-0000-0000-000000000000","chatbotId":"c2b618b1-9167-44c7-a399-a4974558fee8"}'
Response:
HTTP/1.1 201 Created
Remove the Agent Assist Learning Question
DELETE bot/agentAssistLearningQuestions/{id}
Parameters:
No Parameters
Response:
No Content
Example
Sample Request:
curl https://api15.comm100.io/v4/bot/agentAssistLearningQuestions/7dc75f7b-a82e-4048-9256-bb775a49bf35 \
-X
'DELETE'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 204 No Content