Skip to main content

Add text or a .txt/.md file to the knowledge base

POST 

/api/v1/chatbots/:chatbotId/text

Adds text or Markdown straight into the chatbot's knowledge base — no file upload needed. Send a single text string (with an optional fileName) or a batch of items (for example curated question/answer pairs). Each entry becomes its own searchable, listable, deletable knowledge source. Processing is synchronous — the response reports per-entry results. Long entries are split automatically. Required scope: documents:write.

Request

Responses

All entries were added.