노드로 지식 작업 목록을 가져옵니다.

이 API를 사용하려면 앱에 KnowlegedGraph의 관리자 API 범위가 필요합니다.

GET https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en

경로 매개 변수

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

쿼리 매개 변수

매개 변수 필수/선택 사항 설명
language 필수 봇 언어(예: 영어는 "en", 독일어는 "de").

권한 부여

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

콘텐츠 유형 응답

application/json

샘플 요청

curl -X POST \
  https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json' 

샘플 응답

[
    {
        "_id": "5afa79639466e4369e3c809f",
        "createdOn": "2018-05-15T06:08:35.732Z",
        "modifiedOn": "2020-01-03T07:54:13.583Z",
        "state": "configured",
        "editable": true,
        "taxonomy": [
            {
                "parent": [],
                "synonyms": [],
                "isDummy": false,
                "editLocked": false,
                "nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
                "label": "tarak",
                "level": "l0",
                "faqCount": 5
            }
        ],
        "nodesToPublish": [],
        "publishRoot": false,
        "version": "1.0",
        "adminTaskStatus": "active",
        "name": "tarak",
        "description": "This is used to make ontology",
        "isGraph": true,
        "visibility": {
            "namespace": "private",
            "namespaceIds": [
                "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9"
            ]
        },
        "streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx",
        "metadata": {
            "taxonomy": [
                {
                    "nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
                    "label": "tarak",
                    "class": "bgblack",
                    "level": "l0",
                    "parent": [],
                    "synonyms": [],
                    "nodes": []
                }
            ]
        },
        "createdBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9",
        "lastModifiedBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9",
        "botName": "tarak",
        "language": "en",
        "refId": "16560829-31a6-5d9f-8761-3d40e5b91016",
        "__v": 0,
        "deletedNodesToPublish": [],
        "publishedOn": "2020-01-03T07:54:13.583Z",
        "versionComment": null,
        "parentId": "5e0ef3256eaec30a6f4aefc3",
        "_resolve": [
            "createdBy"
        ],
        "lock": {
            "islocked": "false"
        },
        "traitCount": 0,
        "faqCount": 5
    }
]

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

ノードを含むナレッジタスクのリストを取得します。

このAPIを使用するために、アプリは [ナレッジグラフ] の [管理者APIスコープ] を必要とします。

GET https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en

パスパラメータ

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

クエリパラメータ

パラメータ 必須/任意 説明
language 必須 ボットの言語(例:英語の「en」、ドイツ語の「de」)です。

認証

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

応答のコンテンツタイプ

application/json

サンプルリクエスト

curl -X POST \ https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json'

サンプル応答

[ { "_id": "5afa79639466e4369e3c809f", "createdOn": "2018-05-15T06:08:35.732Z", "modifiedOn": "2020-01-03T07:54:13.583Z", "state": "configured", "editable": true, "taxonomy": [ { "parent": [], "synonyms": [], "isDummy": false, "editLocked": false, "nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d", "label": "tarak", "level": "l0", "faqCount": 5 } ], "nodesToPublish": [], "publishRoot": false, "version": "1.0", "adminTaskStatus": "active", "name": "tarak", "description": "これはオントロジーの作成に使用されます", "isGraph": true, "visibility": { "namespace": "private", "namespaceIds": [ "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9" ] }, "streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx", "metadata": { "taxonomy": [ { "nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d", "label": "tarak", "class": "bgblack", "level": "l0", "parent": [], "synonyms": [], "nodes": [] } ] }, "createdBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9", "lastModifiedBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9", "botName": "tarak", "language": "en", "refId": "16560829-31a6-5d9f-8761-3d40e5b91016", "__v": 0, "deletedNodesToPublish": [], "publishedOn": "2020-01-03T07:54:13.583Z", "versionComment": null, "parentId": "5e0ef3256eaec30a6f4aefc3", "_resolve": [ "createdBy" ], "lock": { "islocked": "false" }, "traitCount": 0, "faqCount": 5 } ]

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

To get a listing knowledge Tasks with the nodes.

To use this API, the app needs the Admin API Scope of KnowlegdeGraph.

GET https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en

Path Parameters

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

Query Parameters

Parameter Required/Optional Description
language Required The bot language, for example, “en” for English and “de” for German.

Authorization

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

auth: {{JWT}}

Response Content Type

application/json

Sample Request

curl -X POST \
  https://{{host}}/api/public/bot/{{botId}}/knowledgeTasks?language=en \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json' 

Sample Response

[
    {
        "_id": "5afa79639466e4369e3c809f",
        "createdOn": "2018-05-15T06:08:35.732Z",
        "modifiedOn": "2020-01-03T07:54:13.583Z",
        "state": "configured",
        "editable": true,
        "taxonomy": [
            {
                "parent": [],
                "synonyms": [],
                "isDummy": false,
                "editLocked": false,
                "nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
                "label": "tarak",
                "level": "l0",
                "faqCount": 5
            }
        ],
        "nodesToPublish": [],
        "publishRoot": false,
        "version": "1.0",
        "adminTaskStatus": "active",
        "name": "tarak",
        "description": "This is used to make ontology",
        "isGraph": true,
        "visibility": {
            "namespace": "private",
            "namespaceIds": [
                "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9"
            ]
        },
        "streamId": "st-xxxxx-xxx-xxx-xxx-xxxxx",
        "metadata": {
            "taxonomy": [
                {
                    "nodeId": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
                    "label": "tarak",
                    "class": "bgblack",
                    "level": "l0",
                    "parent": [],
                    "synonyms": [],
                    "nodes": []
                }
            ]
        },
        "createdBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9",
        "lastModifiedBy": "u-9920e136-19d6-5bd8-b68f-acd455d7d7f9",
        "botName": "tarak",
        "language": "en",
        "refId": "16560829-31a6-5d9f-8761-3d40e5b91016",
        "__v": 0,
        "deletedNodesToPublish": [],
        "publishedOn": "2020-01-03T07:54:13.583Z",
        "versionComment": null,
        "parentId": "5e0ef3256eaec30a6f4aefc3",
        "_resolve": [
            "createdBy"
        ],
        "lock": {
            "islocked": "false"
        },
        "traitCount": 0,
        "faqCount": 5
    }
]

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed