Add new text data sources to the knowledge base.
curl --request POST \ --url https://api.chatling.ai/v2/chatbots/{chatbotId}/knowledge-base/data-sources/texts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "texts": [ "<string>" ] }'
{ "status": "success", "data": { "texts_added": 45 } }
The chatbot ID.
Array of texts to add to the knowledge base.
The status of the request. Will be success if the request was successful, otherwise error.
success
error
Show properties
The number of texts that were added successfully.