POST
/
chatbots
/
{chatbotId}
/
knowledge-base
/
data-sources
/
links
curl --request POST \
  --url https://api.chatling.ai/v2/chatbots/{chatbotId}/knowledge-base/data-sources/links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "links": [
    {}
  ],
  "exclude_classes": [
    {}
  ],
  "exclude_ids": [
    {}
  ],
  "exclude_header": true,
  "exclude_footer": true
}'
{
    "status": "success",
    "data": {
        "links_added": 105,
        "duplicate_links_removed": []
    }
}

Request parameters

Path

chatbotId
string
required

The chatbot ID.

Body

links
array
required

Array of webpage links to add to the knowledge base.

exclude_classes
array

Exclude sections of webpages based on their HTML class names.

exclude_ids
array

Exclude sections of webpages based on their HTML IDs.

exclude_header
boolean

Exclude the header section of webpages.

exclude_footer
boolean

Exclude the footer section of webpages.

Response

status
string

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

data
object
{
    "status": "success",
    "data": {
        "links_added": 105,
        "duplicate_links_removed": []
    }
}