1. Home
  2. Kore.ai Conversational Platform
  3. SDKs & APIs
  4. Using Kore.ai APIs
  5. ML Utterances Import API

ML Utterances Import API

Imports ML Utterances into a bot

POST https://{{host}}/api/public/bot/{{bot_id}}/import

Query Parameters

Parameter Required/Optional Description
host Required The bot environment URL, for example, https://bots.kore.ai
bot_id 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":"Revised_Sample_MLUtterances.json",

"fileId": "5beed4fd0b9a4b740c09dca2"

}
Was this article helpful to you? Yes No