Imports ML Utterances into a bot.
To use this API, app needs the Bot Builder API scope of Utterances Import.
OR the Admin API Scope of Utterances Import under Test and Train.
POST https://{{host}}/api/public/bot/{{BotID}}/mlimport
Query Parameters
Parameter | Required/Optional | Description |
---|---|---|
host | Required | The bot environment URL, for example, https://bots.kore.ai |
BotID | Required | Bot ID or Stream ID of the bot to import into. You can access it from the General Settings page of the bot. |
Body Parameters
Parameter | Required/Optional | Description |
---|---|---|
fileName | Required | Full name of the ML Utterances file to import |
fileID | Required | The ID of the import file (provided by the cloud service where the file is uploaded). |
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}}/mlimport \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json' \ -d '{ "fileName":"MLUtterances.json", "fileId": "5beed4fd0b9a4b740c09dca2" }
Sample Response
{ "status": "pending", "streamId": "st-6ecb5ba2-5e31-5a40-b918-8cbee40f3fdb", "createdBy": "u-5dad2ccd-b271-5c00-a338-2e6e25e1ec91", "requestType": "MLimport", "_id": "bir-7ec861ee-5e6b-5165-b505-8820a275afdf", "statusLogs": [], "createdOn": "2019-06-27T12:03:30.748Z", "__v": 0 }