Skip to main content
Knowledge commands manage the content SiteGPT uses to answer questions. Run this first when exploring:

Knowledge resources

ResourcePurpose
knowledge documentsList, inspect, edit, resync, delete, and measure ingested documents. Alias: knowledge docs.
knowledge linksAdd one or more exact URLs.
knowledge websiteCrawl a website from a starting URL.
knowledge sitemapAdd URLs from a sitemap.
knowledge youtubeAdd YouTube video URLs.
knowledge textReplace the chatbot text knowledge document.
knowledge filesUpload local files.
knowledge sync-jobsManage recurring content sync and sitemap scan jobs.
knowledge sourcesManage external data-source connections. Alias: knowledge connections.
knowledge custom-responsesManage dashboard Custom Responses.

Add knowledge

Use this when you know the exact pages to train:

Crawl a website

Use this when you have a starting URL and want SiteGPT to discover pages:
Website options:
OptionDescription
--depth <1-5>Maximum crawl depth. Default: 3.
--max-links <1-1000>Maximum URLs to queue. Default: 50, capped by remaining quota.
--include-path <path>Include path pattern. Repeatable.
--exclude-path <path>Exclude path pattern. Repeatable.
--allowed-domain <domain>Allowed domain. Repeatable.

Add a sitemap

Prefer sitemap ingestion when the website exposes a sitemap:
Sitemap options:
OptionDescription
--max-links <1-1000>Maximum URLs to queue. Default: 50, capped by remaining quota.
--include-path <path>Include path pattern. Repeatable.
--exclude-path <path>Exclude path pattern. Repeatable.
--sync <frequency>Refresh known page content. Values: NEVER, DAILY, WEEKLY, MONTHLY. Default: NEVER.
--scan <frequency>Scan sitemap for added/deleted URLs. Values: NEVER, DAILY, WEEKLY, MONTHLY. Default: NEVER.
Sync and scan frequencies are plan-gated. Unsupported requests may be downgraded by the API with warnings.

Add YouTube videos

Upload local files

The CLI reads local files and uploads them. Pass file paths, not remote URLs.

Add or update text knowledge

text update creates or replaces the chatbot’s text knowledge document:
text add is accepted as an alias, but text update is clearer because the text block is replaced.

Scrape options

These options work with links, website, sitemap, and document config updates:
OptionDescription
--only-main-content <boolean>Extract main content only. Accepts true, false, 1, 0, yes, no, on, off. Default: true for new URL ingestion.
--include-selector <selector>CSS selector to include. Repeatable.
--exclude-selector <selector>CSS selector to exclude. Repeatable.
--header "Name: value"Send request header. Repeatable. Allowed names: User-Agent, Accept, Accept-Language.
--sync <frequency>Auto-sync page content. Values: NEVER, DAILY, WEEKLY, MONTHLY.
Example:

Documents

Documents are individual trained, pending, failed, or queued knowledge items.

List documents

knowledge docs is accepted as an alias for knowledge documents. Filters:
OptionDescription
--query <text>Search by document name/content.
--source <source>Filter by source. Repeatable.
--status <status>Filter by ingestion status. Repeatable.
--type <type>Filter by document type. Repeatable.
--limit <1-100>Limit results. Default: 50.
--cursor <cursor>Continue from a previous response.
Allowed source values:
Allowed status values:
Allowed type values:

Get document details

--content includes raw and parsed text when available. Use --max-content-chars <1-500000> to limit included text.

Edit document content

documents update is accepted as an alias for documents edit.

Resync documents

Delete documents

documents remove is an alias for documents delete. Bulk selector options:
OptionDescription
--document <id>Select a document ID. Repeatable.
--document-id <id>Alias for --document. Repeatable.
--state <state>Values: all, trained, pending, failed.
--allSelect every matching document. Use carefully.
Filters--query, --source, --status, and --type can narrow bulk operations.

Update document config

Document stats

Sync jobs

Sync jobs are recurring maintenance jobs. Auto-sync refreshes known content. Sitemap auto-scan discovers URL additions/deletions.
Aliases:
  • knowledge jobsknowledge sync-jobs
  • knowledge sync-jobs disableknowledge sync-jobs delete
List filters:
OptionValues
--source <source>URLS_LIST, SITEMAP, WEBSITE, YOUTUBE, GITHUB; repeatable
--sync <frequency>DAILY, WEEKLY, MONTHLY; repeatable
--scan <frequency>NEVER, DAILY, WEEKLY, MONTHLY; repeatable
--limit <1-100>Default: 50
--cursor <cursor>Continue pagination
Deleting a sync job disables recurring sync/scan. It does not delete existing knowledge documents.

Custom responses

Custom Responses are manual question-and-answer overrides in the Knowledge section.
Filters:
OptionValues
--query <text>Search questions.
--state <state>ALL, OPEN, UPDATED. Default: ALL.
--source <source>DOWNVOTED_BY_USER, MANUALLY_ADDED, MARKED_BY_ADMIN. Repeatable.
Fields:
OptionDescription
--question <question>Custom response question.
--answer <answer>Custom response answer.
--original-answer <answer>Optional original answer when adding a custom response.

Full reference