Подсказки бота для агентов, которые они могут использовать в чатах агент-клиент.
Пример curl
$ curl 'http: //localhost:8080/api/v1/chatbot/hints' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"sessionId": "1",
"messageIndex": 1,
"hints": [
{
"text": "hint 1",
"score": 0.1
},
{
"text": "hint 2",
"score": 0.9
}
]
}'
HTTP запрос
POST /api/v1/chatbot/hints HTTP/1.1
Content-Type: application/json
Authorization: Bearer <token>
Content-Length: 157
Host: localhost: 8080
{
"sessionId": "1",
"messageIndex": 1,
"hints": [
{
"text": "hint 1",
"score": 0.1
},
{
"text": "hint 2",
"score": 0.9
}
]
}
Пример успешного HTTP ответа
HTTP/1.1 200 OK