Skip to main content
As of Cognigy.AI 2026.5.0, the createKnowledgeSource function is deprecated. For Knowledge Connectors, use upsertKnowledgeSource to create or update Knowledge Sources that also support knowledge synchronization.

Syntax

api.createKnowledgeSource(params)

Description

Creates a Knowledge Source in a Knowledge Store. A Knowledge Source is a container for Knowledge Chunks to organize and manage your AI Agents’ knowledge. Parameters:
  • params: CreateKnowledgeSourceParams — configuration object for the Knowledge Source. The object contains the following parameters:
Returns: Promise<{ knowledgeSourceId: string }> — a promise that resolves to an object containing the ID of the created Knowledge Source.

Example

Last modified on April 29, 2026