1. Home
  2. Kore.ai Conversational Platform
  3. SDKs & APIs
  4. Using Kore.ai APIs
  5. Import Bot as a New Bot API
  6. Import Bot into an Existing Bot API

Import Bot into an Existing Bot API

Used to import bot definition file into an existing bot for upgrading to new version or restoring to an earlier version.

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

Query Parameters


Parameter Description
host Environment URL, for example, https://bots.kore.ai
bot_id Bot ID or Stream ID. You can access it from the General Settings page of the bot.

Body Parameters

Parameter Description
botDefinition “Fileid”
configInfo “Fileid”
botFunctions “Fileid” – Optional Field
importOptions All bot components are imported by default. If needed, you may specify the components to be included in the import.

“exportOptions”: {

“tasks”: [




“nlpData”: [





“settings”: [







Invoke the API with JWT in the header with the following syntax:

auth: {JWT}

Response content type


Sample Request

curl -X POST \
  http://{{host}}/api/public/bot/{{bot_id}}/import \
  -H 'content-type: application/json' \
  -d '{
  "botDefinition" : "5b7ed2b87cab5c48ea9794f9",
  "configInfo" : "5b7ed2d77cab5c48ea9794fa",

Sample Response

    "streamRefId": "c685t327-8f93-588b-97bb-3399fa998bca",
    "statusLogs": [
            "taskType": "importRequest",
            "taskName": "Sample Task",
            "status": "success"
    "createdBy": "u-3ae8bd39-a63e-5b2c-b55b-85864a8202c3",
    "requestType": "Botimport",
    "_id": "bir-00b2baf0-7e02-523b-b317-79a372b91fc6",
    "status": "pending",
    "createdOn": "2018-12-05T07:40:51.956Z",
    "__v": 0

Was this article helpful to you? Yes No