Back to API List
To extract the Knowledge Graph from the imported file or URL.
Method
POST
Endpoint
https://{{host}}/api/public/bot/{{botId}}/qna/import?language=en
Content Type
application/json
Authorization
auth: {{YOUR_JWT_ACCESS_TOKEN}}
See How to generate the JWT Token .
API Scope
App Builder: Manage Knowledge Graph
Admin Console: Manage Knowledge Graph
Path Parameters
PARAMETER
REQUIRED
DESCRIPTION
host
Required
The environment URL. For example, https://platform.kore.ai
BotId
Required
Bot ID or Stream ID can be accessed under General Settings on the App Builder.
Query Parameters
PARAMETER
REQUIRED
DESCRIPTION
language
Required
The Bot language which is identified by the language acronym. For example, en for English and de for German. The user can set the default language of the bot.
curl -- loca t io n 'h tt ps : //platform.kore.ai/api/public/bot/st-2be3c498-d718-5160-853c-0166b82bc41c/qna/import?language=en' \
-- header 'au t h : {{ YOUR_JWT_ACCESS_TOKEN }} ' \
-- header 'co ntent - t ype : applica t io n /jso n ' \
-- da ta ' {
"fileUrl" : "https://www.ibank.com/nri-banking/money_transfer/faq/m2i-rewards-program/loyalty-program.page%22,
" na me ":" Tes t "
}'
curl -- loca t io n 'h tt ps : //platform.kore.ai/api/public/bot/st-2be3c498-d718-5160-853c-0166b82bc41c/qna/import?language=en' \
-- header 'au t h : {{ YOUR_JWT_ACCESS_TOKEN }} ' \
-- header 'co ntent - t ype : applica t io n /jso n ' \
-- header 'Cookie : AWSALB=ywKTJVAcCplRMGaJXRvhZ 4 gUvOCr f YhOjeqvdYirqAyRQyP 9 WpTDeNwZI 1 t DwgoP/CiA 6 G 6 j 2 DxXGWIbCEWdjaiq 1e hA 2 Xo/YxwOBDi 02 Ix 9 cbcGYum 8 P 1 bxBSq 1 ; AWSALBCORS=ywKTJVAcCplRMGaJXRvhZ 4 gUvOCr f YhOjeqvdYirqAyRQyP 9 WpTDeNwZI 1 t DwgoP/CiA 6 G 6 j 2 DxXGWIbCEWdjaiq 1e hA 2 Xo/YxwOBDi 02 Ix 9 cbcGYum 8 P 1 bxBSq 1 ' \
-- da ta ' {
"fileId" : "64c0facd1913a83c147847ca" ,
"name" : "Test2"
} '
Body Parameters
PARAMETER
REQUIRED
DESCRIPTION
fileUrl
Required
The URL pointing to the location of the FAQs to be extracted.
fileId
Required
The File id pointing to the FAQ file’s location.
name
Required
The name provided to the FAQ.
Sample Response
{
"_id" : <ex tra c t io n Id> ,
"status" : "success"
}