지식 그래프에 특정 질문 추가.

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

POST https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?language=en

경로 매개 변수

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

쿼리 매개 변수

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

본문 매개 변수

매개 변수 필수/선택 사항 설명
faqs 선택 사항

다음 항목이 있는 배열입니다.

  • questionPayload
    • question
  • answerPayload
    • text
    • 유형
    • channel
  • knowledgeTaskId
  • subQuestions
  • responseType
  • subAnswers
  • streamId
  • parent
  • leafterm
  • qsId

권한 부여

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

콘텐츠 유형 응답

application/json

샘플 요청

curl -X POST \
  https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?language=en \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json' \
  -d '{
    "faqs": [	
     {
      "questionPayload": {
         "question": "You will receive an SMS alert on your registered mobile number once the registration is done."     
        },
      "answerPayload": [{
            "text": "Will I get a confirmation of my registration?",
            "type": "basic",
            "channel": "default"
         }],
        "knowledgeTaskId": "5afa79639466e4369e3c809f",
        "subQuestions": [],
        "responseType": "message",
        "subAnswers": [],
        "streamId": "st-0af60d2d-dab9-59a3-9380-b1923644b5e5",
        "parent": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
        "leafterm": "tarak",
        "qsId": "qna-d2eff43d-e942-5d70-9218-ffdc840f9c41"
    }
    ]
}'

샘플 응답

{ 
      “status”: “success”} 

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スコープ] を必要とします。

POST https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?language=en

パスパラメータ

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

クエリパラメータ

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

本文パラメータ

パラメータ 必須/任意 説明
faqs 任意 以下の項目で配列します。

  • questionPayload
    • question
  • answerPayload
    • text
    • type
    • チャネル
  • knowledgeTaskId
  • subQuestions
  • responseType
  • subAnswers
  • streamId
  • parent
  • leafterm
  • qsId

認証

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

応答のコンテンツタイプ

application/json

サンプルリクエスト

curl -X POST \ https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?language=en \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json' \ -d '{ "faqs": [ { "questionPayload": { "question": "You will receive an SMS alert on your registered mobile number once the registration is done."}, "answerPayload": [{ "text": "Will I get a confirmation of my registration?", "type": "basic", "channel": "default" }], "knowledgeTaskId": "5afa79639466e4369e3c809f", "subQuestions": [], "responseType": "message", "subAnswers": [], "streamId": "st-0af60d2d-dab9-59a3-9380-b1923644b5e5", "parent": "be36bc3a-3055-417c-9d2d-0ab321fead9d", "leafterm": "tarak", "qsId": "qna-d2eff43d-e942-5d70-9218-ffdc840f9c41" } ] }'

サンプル応答

{ “status”: “success”}

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 add specific questions to the Knowledge graph.

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

POST https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?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.

Body Parameters

Parameter Required/Optional Description
faqs Optional Array with the following items:

  • questionPayload
    • question
  • answerPayload
    • text
    • type
    • channel
  • knowledgeTaskId
  • subQuestions
  • responseType
  • subAnswers
  • streamId
  • parent
  • leafterm
  • qsId

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}}/faqs/bulk?language=en \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json' \
  -d '{
    "faqs": [	
     {
      "questionPayload": {
         "question": "You will receive an SMS alert on your registered mobile number once the registration is done."     
        },
      "answerPayload": [{
            "text": "Will I get a confirmation of my registration?",
            "type": "basic",
            "channel": "default"
         }],
        "knowledgeTaskId": "5afa79639466e4369e3c809f",
        "subQuestions": [],
        "responseType": "message",
        "subAnswers": [],
        "streamId": "st-0af60d2d-dab9-59a3-9380-b1923644b5e5",
        "parent": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
        "leafterm": "tarak",
        "qsId": "qna-d2eff43d-e942-5d70-9218-ffdc840f9c41"
    }
    ]
}'

Sample Response

{ 
      “status”: “success”} 

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