To add specific questions to the Knowledge graph.
| Method | POST |
| Endpoint | https://{{host}}/api/public/bot/{{botId}}/faqs/bulk?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}}/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": "5axxxxxxxxxxxxxxxxxxxxxx",
"subQuestions": [],
"responseType": "message",
"subAnswers": [],
"streamId": "st-0xxxxxxd-dxx9-5xx3-9xx0-b1xxxxxxxxxx",
"parent": "bxxxxxxa-3xx5-4xxc-9xxd-0axxxxxxxxxx",
"leafterm": "tarak",
"qsId": "qxa-dxxxxxxd-exx2-5xx0-9xx8-fxxxxxxxxxx1"
}
]
}'
Body Parameters
| Parameter | Description | Mandate |
|---|---|---|
| faqs |
An array with the following parameter values:
|
Required |
Sample Response
{
“status”: “success”
}