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 |
|
API Scope |
|
Path Parameters
Parameter | Description | Mandate |
---|---|---|
host | The environment URL. For example, https://bots.kore.ai |
Required |
BotId | Bot ID or Stream ID can be accessed under General Settings on the Bot Builder. | Required |
Query Parameters
Parameter | Description | Mandate |
---|---|---|
language | 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. | Required |
Sample Request
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" }'
Body Parameters
Parameter | Description | Mandate |
---|---|---|
fileUrl | The URL pointing to the location of the FAQs to be extracted. | Optional |
fileId | The File id pointing to the FAQ file’s location. | Optional |
name | The name provided to the FAQ. | Optional |
Sample Response
{ “_id”: <extractionId>, “status”: “success” }