Add a knowledge source
cs_add_knowledge_sourceAdd a knowledge source to a Copilot Studio agent using one of four kinds: public-site, sharepoint, graph-connector, or files. Specify name, optional site or file paths, and other settings to make content searchable.
Instructions
Add knowledge as YAML: kind 'public-site' (Bing-scoped website, max 2 path levels), 'sharepoint' (direct folder URL), 'graph-connector' (Microsoft Graph connector via environment variable), or 'files' (copy documents into knowledge/files for upload on push). Dataverse, AI Search and SQL knowledge are portal-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| site | No | ||
| files | No | Absolute paths of documents (pdf, docx, txt, ...) | |
| overwrite | No | ||
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| description | No | ||
| connectionName | No | ||
| includeSubPages | No | ||
| triggerCondition | No | Power Fx condition restricting when this source is searched | |
| contentSourceDisplayName | No | ||
| connectionEnvironmentVariable | No |