Back to API List To import the bot definition file to an existing bot for a current version upgrade or previous version restoration. You can import into a bot using either individual Definition, Config, Functions and Icon files, or you can directly use the zip file that’s created while performing bot export. In this case you need to upload the zip file and use the File ID thus generated.Documentation Index
Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
This API requires the JWT generated by an application created on the Admin Console.
| Field | Value |
|---|---|
| Method | POST |
| Endpoint | https://{{host}}/api/public/bot/{{BotID}}/import |
| Content Type | application/json |
| Authorization | auth: {{JWT}} See How to generate the JWT Token. |
| API Scope | App Builder: Not Applicable; Admin Console: Bot Definition > Bot Import |
Query Parameters
| Parameter | Required | Description |
|---|---|---|
host | Required | The environment URL. For example, https://platform.kore.ai |
BotID | Required | The Bot ID or Stream ID. You can access it under General Settings on the App Builder. |
Sample Request for the Universal Bot
Sample Request
Body Parameters
| Parameter | Required | Description |
|---|---|---|
botDefinition | Required | Bot Definition File ID. |
configInfo | Required | Bot Configuration File ID. |
botFunctions | Optional | Bot functions file ID. |
importOptions | Required | The system imports all bot components by default. If needed, you can specify which components to include in the import. Accepted fields: tasks, nlpData, settings. |
options | Optional | Incremental import options for the ML utterances, whether to replace or append. |