Use cases
- Create and update knowledge sources — detect documents that have been created or changed and import them from cloud-based document repositories, for example, SharePoint or Confluence.
- API integration — automate knowledge imports from REST APIs.
Knowledge connector API functions
upsertKnowledgeSource
Syntax: api.upsertKnowledgeSource(params)
Creates or updates a knowledge source with the specified name, description, source tags, and number of knowledge chunks. Supports knowledge synchronization.
createKnowledgeSource (deprecated)
Syntax: api.createKnowledgeSource(params)
Creates a new knowledge source with the specified name, description, source tags, and number of knowledge chunks.
deleteKnowledgeSource
Syntax: api.deleteKnowledgeSource(params)
Deletes a knowledge source.
createKnowledgeChunk
Syntax: api.createKnowledgeChunk(params)
Creates a knowledge chunk in a knowledge source, containing text content and optional chunk metadata.