To initiate the training of the knowledge graph.
Method | POST |
Endpoint | https://{{host}}/api/public/bot/{{BotID}}/faqs/train |
Content Type | application/json |
Authorization |
|
API Scope |
|
Path Parameters
Parameter | Description | Mandate |
---|---|---|
host | The environment URL. For example, https://bots.kore.ai |
Required |
BotId | Bot ID or Stream ID can be accessed under General Settings on the Bot Builder. | Required |
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" }'
Body Parameters
Parameter | Description | Mandate |
---|---|---|
language | The Bot language which is identified by the language acronym. For example, en for English and de for German. The user can set the default language of the bot. | Required |
Sample Response
{ "_id": "ds-1xxxxxxd-31xx-5xx1-83xx-0dxxxxxxxxxx", "message": "in-progress", "status": "in-progress", "__v": 0, "lastModifiedBy": "u-adxxxxxx-exx1-5xxd-axxc-21xxxxxxxxxx", "modifiedOn": "2022-07-29T08:20:31.569Z" }