curl --request POST \ --url https://{appId}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/knowledge-base/text \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data '{ "title": "Company Policy Document", "text": "This document outlines the company policies and procedures for remote work, including communication guidelines, working hours expectations, and performance metrics."}'
Creates a new text-based knowledge base entry. Use this endpoint to add custom text content that agents can reference during conversations. Processing: Accepts a title and text content, converts
POST
/
ai-agents
/
agent-builder
/
knowledge-base
/
text
Create Text Entry
curl --request POST \ --url https://{appId}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/knowledge-base/text \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data '{ "title": "Company Policy Document", "text": "This document outlines the company policies and procedures for remote work, including communication guidelines, working hours expectations, and performance metrics."}'