To add specific questions to Knowledge graph.
To use this API, app needs the Admin API Scope of KnowlegdeGraph.
POST https://{{host}}/api/public/stream/{{streamId}}/faqs/bulk?language=en
Path Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
| host | Required | Environment URL, for example, https://bots.kore.ai |
| streamId | Required | Bot ID or Stream 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 |
|---|---|---|
| faqs | Optional | Array with the following items:
|
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/stream/{{streamId}}/faqs/bulk?language=en \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json' \
-d '{
"faqs": [
{
"questionPayload": {
"question": "You will receive an SMS alert on your registered mobile number once the registration is done."
},
"answerPayload": [{
"text": "Will I get a confirmation of my registration?",
"type": "basic",
"channel": "default"
}],
"knowledgeTaskId": "5afa79639466e4369e3c809f",
"subQuestions": [],
"responseType": "message",
"subAnswers": [],
"streamId": "st-0af60d2d-dab9-59a3-9380-b1923644b5e5",
"parent": "be36bc3a-3055-417c-9d2d-0ab321fead9d",
"leafterm": "tarak",
"qsId": "qna-d2eff43d-e942-5d70-9218-ffdc840f9c41"
}
]
}'
Sample Response
{
“status”: “success”}
