Skip to content

ML Utterances Train API

To initiate the ML training for a bot.

Method POST
Endpoint https://{{host}}/api/public/bot/{{BotID}}/ml/train
Content Type application/json
Authorization auth: {{JWT}}

See How to generate the JWT Token.

API Scope
  • Bot Builder: Train ML
  • Admin Console: Test and Train > Train ML

Query Parameters

PARAMETER DESCRIPTION MANDATE
host The environment URL. For example, https://bots.kore.ai Required
BotID The Bot ID or Stream ID to be accessed under General Settings on the Bot Builder. Required

Sample Request

curl -X POST 'https://{{host}}/api/public/bot/{{BotId}}/ml/train' \
  --header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  --header 'bot-language: de'

Note

If the bot language is not included in the header, the default English language is considered for the training. Find the list of supported bot languages here.

Body Parameters

No Body Parameters are passed.

Sample Response

[
    {
        "message": "Training Queued.",
        "Training_ID": "5dxxxxxxxxxxxxxxxxxxxxxx"
    }
]