ML 발화 내보내기 복사본의 다운로드 링크를 가져옵니다.

이 API를 사용하려면 앱에 발화 내보내기의 봇 빌더 API 범위가 필요합니다. 또는 테스트 및 훈련 아래의 발화 내보내기 의 관리자 API 범위가 필요합니다.

GET https://{{host}}/api/public/bot/{{BotID}}/mlexport/status

경로 매개 변수

매개 변수 필수/선택 사항 설명
host 필수 환경 URL(예: https://bots.kore.ai)
BotID 필수 봇 ID 또는 스트림 ID. 봇의 일반 설정 페이지에서 이를 액세스할 수 있습니다.

권한 부여

다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {{JWT}}

콘텐츠 유형 응답

application/json

샘플 요청

curl -X GET \
  https://{{host}}/api/public/bot/{{bot ID}}/mlexport/status \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json' \

샘플 응답

{
    "_id": "ds-aadcadee-befe-559c-b15f-31b87b0d8e63",
    "status": "SUCCESS",
    "percentageComplete": 100,
    "streamId": "st-6ecb5ba2-5e31-5a40-b918-8cbee40f3fdb",
    "createdBy": "u-5dad2ccd-b271-5c00-a338-2e6e25e1ec91",
    "jobType": "ML_UTTERANCE",
    "action": "EXPORT",
    "fileType": "CSV",
    "statusLogs": [],
    "lMod": "2019-06-27T06:49:15.726Z",
    "createdOn": "2019-06-27T06:49:15.572Z",
    "__v": 0,
    "downloadUrl": ""
}

機械学習の発話のエクスポートコピーのダウンロードリンクを取得します。

このAPIを使用するために、アプリは [発話のインポート] のボットビルダーのAPIスコープを必要とします。あるいは、[テストとトレーニング] にある [発話のエクスポート] の管理者のAPIスコープを必要とします。

GET https://{{host}}/api/public/bot/{{BotID}}/mlexport/status

パスパラメータ

パラメータ 必須/任意 説明
ホスト 必須 環境URL(例: https://bots.kore.ai)
ボットID 必須 ボットIDまたはストリームID。ボットの [一般設定] ページからアクセスすることができます。

認証

以下の構文を使用して、JWTをヘッダーに含むAPIを呼び出します。 auth: {{JWT}}

応答のコンテンツタイプ

application/json

サンプルリクエスト

curl -X GET \ https://{{host}}/api/public/bot/{{bot ID}}/mlexport/status \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json' \

サンプル応答

{ "_id": "ds-aadcadee-befe-559c-b15f-31b87b0d8e63", "status": "SUCCESS", "percentageComplete": 100, "streamId": "st-6ecb5ba2-5e31-5a40-b918-8cbee40f3fdb", "createdBy": "u-5dad2ccd-b271-5c00-a338-2e6e25e1ec91", "jobType": "ML_UTTERANCE", "action": "EXPORT", "fileType": "CSV", "statusLogs": [], "lMod": "2019-06-27T06:49:15.726Z", "createdOn": "2019-06-27T06:49:15.572Z", "__v": 0, "downloadUrl": "" }

Gets the download link of the ML Utterances export copy.

To use this API, app needs the Bot Builder API scope of Utterances Export.
OR the Admin API Scope of Utterances Export under Test and Train.

GET https://{{host}}/api/public/bot/{{BotID}}/mlexport/status

Path Parameters

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

Authorization

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

auth: {{JWT}}

Response Content Type

application/json

Sample Request

curl -X GET \
  https://{{host}}/api/public/bot/{{bot ID}}/mlexport/status \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json' \

Sample Response

{
    "_id": "ds-aadcadee-befe-559c-b15f-31b87b0d8e63",
    "status": "SUCCESS",
    "percentageComplete": 100,
    "streamId": "st-6ecb5ba2-5e31-5a40-b918-8cbee40f3fdb",
    "createdBy": "u-5dad2ccd-b271-5c00-a338-2e6e25e1ec91",
    "jobType": "ML_UTTERANCE",
    "action": "EXPORT",
    "fileType": "CSV",
    "statusLogs": [],
    "lMod": "2019-06-27T06:49:15.726Z",
    "createdOn": "2019-06-27T06:49:15.572Z",
    "__v": 0,
    "downloadUrl": ""
}