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}}
See How to generate the JWT Token. |
API Scope |
- Bot Builder: Manage Knowledge Graph
- Admin Console: Manage Knowledge Graph
|
curl --location 'https://bots.kore.ai/api/public/bot/st-2be3c498-d718-5160-853c-0166b82bc41c/qna/import?language=en' \
--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
--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"
}'
curl --location 'https://bots.kore.ai/api/public/bot/st-2be3c498-d718-5160-853c-0166b82bc41c/qna/import?language=en' \
--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
--header 'content-type: application/json' \
--header 'Cookie: AWSALB=ywKTJVAcCplRMGaJXRvhZ4gUvOCrfYhOjeqvdYirqAyRQyP9WpTDeNwZI1tDwgoP/CiA6G6j2DxXGWIbCEWdjaiq1ehA2Xo/YxwOBDi02Ix9cbcGYum8P1bxBSq1; AWSALBCORS=ywKTJVAcCplRMGaJXRvhZ4gUvOCrfYhOjeqvdYirqAyRQyP9WpTDeNwZI1tDwgoP/CiA6G6j2DxXGWIbCEWdjaiq1ehA2Xo/YxwOBDi02Ix9cbcGYum8P1bxBSq1' \
--data '{
"fileId":"64c0facd1913a83c147847ca",
"name": "Test2"
}'
Sample Response
{
“_id”: <extractionId>,
“status”: “success”
}