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
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 |
---|---|---|
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. |
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}}/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" }'
Sample Response
{ “_id”: <extractionId>, “status”: “success”}