To initiate the training of the knowledge graph.
To use this API, app needs the Admin API Scope of Train FAQ under Test and Train.
POST https://{{host}}/api/public/bot/{{BotID}}/faqs/train
Path Parameters
Parameter | Required/Optional | Description |
---|---|---|
host | Required | Environment URL, for example, https://bots.kore.ai |
BotID | Required | Bot ID or Stream ID. You can access it from the General Settings page of the bot. |
Body Parameters
Parameter | Required/Optional | Description |
---|---|---|
language | Required | The bot language, for example, “en” for English and “de” for German. |
Authorization
Invoke the API with JWT in the header with the following syntax:
auth: {{JWT}}
Response Content Type
application/json
Sample Request
curl -X POST \ https://{{host}}/api/public/bot/{{bot_id}}/faqs/train \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json' \ -d '{ "language":"en" }'
Sample Response
{ "_id": "5d13600c1e22bc5eaec93e76", "callName": "streams/st-6ecb5ba2-5e31-5a40-b918-8cbee40f3fdb/knowledgetask/5d1359fb64dd501a8ad729f9/trainBot", "message": "training triggered", "status": "in-progress", "__v": 0, "modifiedOn": "2019-06-27T06:56:10.432Z", "lastModifiedBy": "u-5dad2ccd-b271-5c00-a338-2e6e25e1ec91" }