파일 또는 URL을 사용하여 추출을 가져옵니다.
이 API를 사용하려면 앱에 KnowlegedGraph의 관리자 API 범위가 필요합니다.for Bot Admin Console
POST https://{{host}}/api/public/bot/{{botId}}/qna/import?language=en
파일 또는 URL을 사용하여 추출을 가져옵니다.
이 API를 사용하려면 앱에 KnowlegedGraph의 관리자 API 범위가 필요합니다.for Bot Admin Console
POST https://{{host}}/api/public/bot/{{botId}}/qna/import?language=en
| 매개 변수 | 필수/선택 사항 | 설명 |
|---|---|---|
| host | 필수 | 환경 URL(예: https://bots.kore.ai) |
| botId | 필수 | 봇 ID입니다. 봇의 일반 설정 페이지에서 이를 액세스할 수 있습니다. |
| 매개 변수 | 필수/선택 사항 | 설명 |
|---|---|---|
| language | 필수 | 봇 언어(예: 영어는 "en", 독일어는 "de"). |
| 매개 변수 | 필수/선택 사항 | 설명 |
|---|---|---|
| fileUrl | 선택 사항 | 추출할 FAQ의 위치를 가리키는 URL입니다. |
| fileId | 선택 사항 | FAQ 파일의 위치를 가리키는 파일 ID입니다. |
| name | 선택 사항 | FAQ에 제공할 이름입니다. |
다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {{JWT}}
application/json
curl -X POST \
https://{{host}}/api/public/bot/{{botId}}/qna/import?language=en \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json' \
-d '{
"fileUrl":"https:///faqs-with-answers.htm", (or)
"fileId":"5exxxxxxxxc3a7291",
"name": "KGFile"
}'
{
“_id”: <extractionId>,
“status”: “success”}
ファイルまたはURLを使用して抽出内容をインポートします。
このAPIを使用するために、アプリは [ナレッジグラフ] の [管理者APIスコープ] を必要とします。
POST https://{{host}}/api/public/bot/{{botId}}/qna/import?language=en
| パラメータ | 必須/任意 | 説明 |
|---|---|---|
| ホスト | 必須 | 環境URL(例: https://bots.kore.ai) |
| botId | 必須 | ボットID。ボットの [一般設定] ページからアクセスすることができます。 |
| パラメータ | 必須/任意 | 説明 |
|---|---|---|
| language | 必須 | ボットの言語(例:英語の「en」、ドイツ語の「de」)です。 |
| パラメータ | 必須/任意 | 説明 |
|---|---|---|
| fileUrl | 任意 | 抽出されるFAQの場所を指すURLです。 |
| fileId | 任意 | FAQファイルの場所を指すファイルIDです。 |
| name | 任意 | FAQに与えられる名前です。 |
以下の構文を使用して、JWTをヘッダーに含むAPIを呼び出します。 auth: {{JWT}}
application/json
curl -X POST \ https://{{host}}/api/public/bot/{{botId}}/qna/import?language=en \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'content-type: application/json' \ -d '{ "fileUrl":"https:///faqs-with-answers.htm", (or) "fileId":"5exxxxxxxxc3a7291", "name": "KGFile" }'
{ “_id”: <extractionId>, “status”: “success”}
To import the extract using file or URL.
To use this API, the app needs the Admin API Scope of KnowlegdeGraph.
POST https://{{host}}/api/public/bot/{{botId}}/qna/import?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 |
|---|---|---|
| fileUrl | Optional | URL pointing to the location of the FAQs to be extracted. |
| fileId | Optional | File id pointing to the location of the FAQ file. |
| name | Optional | Name to be given to the FAQ. |
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}}/qna/import?language=en \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json' \
-d '{
"fileUrl":"https:///faqs-with-answers.htm", (or)
"fileId":"5exxxxxxxxc3a7291",
"name": "KGFile"
}'
{
“_id”: <extractionId>,
“status”: “success”}