지식 그래프에 특정 질문 추가.
이 API를 사용하려면 앱에 KnowlegedGraph의 관리자 API 범위가 필요합니다.
POST https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?language=en
지식 그래프에 특정 질문 추가.
이 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 | 선택 사항 |
다음 항목이 있는 배열입니다.
|
다음 구문을 포함한 헤더에 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”}
特定の質問をナレッジグラフに追加します。
このAPIを使用するために、アプリは [ナレッジグラフ] の [管理者APIスコープ] を必要とします。
POST https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?language=en
| パラメータ | 必須/任意 | 説明 |
|---|---|---|
| ホスト | 必須 | 環境URL(例: https://bots.kore.ai) |
| botId | 必須 | ボットID。ボットの [一般設定] ページからアクセスすることができます。 |
| パラメータ | 必須/任意 | 説明 |
|---|---|---|
| language | 必須 | ボットの言語(例:英語の「en」、ドイツ語の「de」)です。 |
| パラメータ | 必須/任意 | 説明 |
|---|---|---|
| faqs | 任意 | 以下の項目で配列します。
|
以下の構文を使用して、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”}
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
| 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. |
| Parameter | Required/Optional | Description |
|---|---|---|
| language | Required | The bot language, for example, “en” for English and “de” for German. |
| Parameter | Required/Optional | Description |
|---|---|---|
| faqs | Optional | Array with the following items:
|
Invoke the API with JWT in the header with the following syntax:
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”}