Back to API List To create a new bot in the account owner’s Builder Tool using the File IDs generated when uploading the files to the local server. You can import 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. Refer to Upload File API for uploading and obtaining the File ID.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 only from the Admin Console.
| Field | Value |
|---|---|
| Method | POST |
| Endpoint | https://{{host}}/api/public/bot/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 | Description | Required |
|---|---|---|
host | The environment URL. For example, https://platform.kore.ai | Required |
Sample Request
Case 1: JSONBody Parameters
| Parameter | Description | Required |
|---|---|---|
uploadMode | Mode of Upload (JSON or ZIP). | Required |
botDefinition | Bot definition file ID. | Required (if uploadMode is JSON) |
configInfo | Bot configuration file ID. | Required (if uploadMode is JSON) |
botFunctions | Bot functions file ID. | Optional (if uploadMode is JSON) |
icon | Bot icon file ID. | Required (if uploadMode is JSON) |
zipInfo | Zip file ID. | Required (if uploadMode is ZIP) |
name | Bot name. If not provided, it’s fetched from the existing bot’s copy. | Optional |
purpose | customer or employee. If not provided, it’s fetched from the existing bot’s copy. | Optional |