StubGreet

Diagnosis of the bot’s welcome message. The method only logs the incoming messages.

Curl Example

$ curl 'http: //localhost:8080/api/v1/chatbot/stub/greet' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
    "action": "INIT_CHAT",
    "clientId": "1",
    "threadsClientId": 1,
    "sessionId": "1",
    "questionId": 43,
    "receivedAt": "2022-05-18T08:45:06.917Z",
    "text": "Message greeting"
}'

HTTP Request

POST /api/v1/chatbot/stub/greet HTTP/1.1
Content-Type: application/json
Authorization: Bearer <token>
Content-Length: 191
Host: localhost: 8080
{
    "action": "INIT_CHAT",
    "clientId": "1",
    "threadsClientId": 1,
    "sessionId": "1",
    "questionId": 43,
    "receivedAt": "2022-05-18T08:45:06.917Z",
    "text": "Message greeting"
}

Example of a Successful HTTP Response

HTTP/1.1 200 OK
Stub
Next Article StubWebviewClosed