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: {{JWT}}
|
| 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 (Extraction using URL)
curl --location 'https://bots.kore.ai/api/public/bot/st-2be3c498-d718-5160-853c-0166b82bc41c/qna/import?language=en' \ --header 'auth: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkiLCJuYW1lIjoiam9obiIsImFwcElkIjoiY3MtZmU2NTBlMjctZWIxOS01OTE3LWIxY2UtNDVlZGJmYjYzNGJhIn0.Dy3CzfVMMhr0Wq1xhO1YaorUpwkd3IK44J_pBwMqHTk' \ --header 'content-type: application/json' \ --data '{ "fileUrl":"https://www.icicibank.com/nri-banking/money_transfer/faq/m2i-rewards-program/loyalty-program.page%22, "name":"Test" }'
Sample Request (Extraction using File)
curl --location 'https://bots.kore.ai/api/public/bot/st-2be3c498-d718-5160-853c-0166b82bc41c/qna/import?language=en' \ --header 'auth: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.ey JzdWIiOiIxMjM0NTY3ODkiLCJuYW1l Ijoiam9obiIsImFwcElkIjoiY3MtZm U2NTBlMjctZWIxOS01OTE3LWIxY2Ut NDVlZGJmYjYzNGJhIn0.Dy3CzfVMMhr0Wq1xhO1YaorUpwkd3I K44J_pBwMqHTk' \ --header 'content-type: application/json' \ --header 'Cookie: AWSALB=ywKTJVAcCplRMGaJXRvhZ4gUvOCrfYhOjeqvdYirqAyRQyP9WpTDeNwZI1tDwgoP/CiA6G6j2DxXGWIbCEWdjaiq1ehA2Xo/YxwOBDi02Ix9cbcGYum8P1bxBSq1; AWSALBCORS=ywKTJVAcCplRMGaJXRvhZ4gUvOCrfYhOjeqvdYirqAyRQyP9WpTDeNwZI1tDwgoP/CiA6G6j2DxXGWIbCEWdjaiq1ehA2Xo/YxwOBDi02Ix9cbcGYum8P1bxBSq1' \ --data '{ "fileId":"64c0facd1913a83c147847ca", "name": "Test2" }'
Body Parameters
| Parameter | Description | Mandate |
|---|---|---|
| fileUrl | The URL pointing to the location of the FAQs to be extracted. | Required |
| fileId | The File id pointing to the FAQ file’s location. | Required |
| name | The name provided to the FAQ. | Required |
Sample Response
{
“_id”: <extractionId>,
“status”: “success”
}