POST
/
chatbots
/
{chatbotId}
/
knowledge-base
/
data-sources
/
faqs
curl --request POST \
  --url https://api.chatling.ai/v2/chatbots/{chatbotId}/knowledge-base/data-sources/faqs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "faqs": [
    {
      "q": "<string>",
      "a": "<string>"
    }
  ]
}'
{
    "status": "success",
    "data": {
        "faqs_added": 45
    }
}

Request parameters

Path

chatbotId
string
required

The chatbot ID.

Body

faqs
array
required

Array of FAQs to add to the knowledge base.

Response

status
string

The status of the request. Will be success if the request was successful, otherwise error.

data
object
{
    "status": "success",
    "data": {
        "faqs_added": 45
    }
}