AI

Create file knowledge source

Changed on

This endpoint creates a file knowledge source for an AI copilot by uploading a file. The copilot can then reference the content of the file when responding. Corresponds to liveblocks.createFileKnowledgeSource.

put/ai/copilots/{copilotId}/knowledge/file/{name}

Request

  • Base URL: https://api.liveblocks.io/v2
  • URL: https://api.liveblocks.io/v2/ai/copilots/{copilotId}/knowledge/file/{name}
  • Auth: none declared

Path parameters

copilotIdstring required

ID of the AI copilot

Example:cp_abc123
namestring required

Name of the file

Example:document.pdf

Response

Success. Returns the ID of the created knowledge source.

idstring

Changes