diff --git a/apps/docs/content/docs/knowledgebase/connectors.mdx b/apps/docs/content/docs/knowledgebase/connectors.mdx index 828d59cf760..cad5d765522 100644 --- a/apps/docs/content/docs/knowledgebase/connectors.mdx +++ b/apps/docs/content/docs/knowledgebase/connectors.mdx @@ -53,6 +53,7 @@ API-key and personal-access-token connections use the credential shown in their | Mintlify | Access Token only when the documentation site needs a bearer token. Public sites can sync from `llms.txt` without one. | | Databricks | Create a [personal access token](https://docs.databricks.com/aws/en/dev-tools/auth/pat) under **Settings → Developer → Access tokens → Manage**; enter the workspace host separately. | | Workday Help | Register an API client for integrations and enter `clientSecret:refreshToken`; configure client ID, tenant host, and tenant name separately. | +| Website | Nothing for a public site. A site behind a gateway can take one **Request Header** line, such as `X-Api-Key: value`. See [Website](#website). | Enter a key directly or type `{{` to select an accessible secret. A reference must be the whole value, such as `{{SOURCE_API_KEY}}`. Sim resolves it at setup and stores an encrypted token snapshot. Updating the secret later does not update that connection. @@ -75,6 +76,7 @@ Fill in the service's source fields. Examples: - **Sentry:** set a query such as `is:unresolved`, environment, or time window. A custom host supports self-hosted Sentry. - **Obsidian:** enter the vault URL and, optionally, a folder path. The plugin's local default is `https://127.0.0.1:27124`. - **Fireflies:** optionally filter by host email or cap the transcript count. +- **Website:** enter the site URL and choose how pages are found. Optional fields narrow the paths and cap the link depth and page count. See [Website](#website). Sim Cloud cannot connect to localhost or private-network vault URLs. An Obsidian connection needs an allowed public HTTPS endpoint. On self-hosted deployments, the vault must be reachable from the Sim server and allowed by its [outbound-network policy](/platform/self-hosting/security#the-ssrf-boundary). @@ -204,6 +206,59 @@ The default admission limit is **500 new or changed images per sync**. Remaining Image extraction follows [model billing](/platform/costs): BYOK usage is billed by the provider, while platform-key usage follows the deployment's Sim billing policy. Choose **Don't index** to stop image indexing; the next sync removes indexed images. Switching back processes them again and incurs the applicable model usage. +## Website + +The Website connector syncs the pages of one website, such as a help center, benefits site, or public documentation, into a knowledge base. It reads the HTML each page serves and keeps the knowledge base in step with the site on later syncs. + +### Configure the site + +| Field | Behavior | +| --- | --- | +| **Website URL** | Required. Only pages on this host and under this path are synced. The apex and `www` hosts count as one site, and a redirect from HTTP to HTTPS stays on it. `https://example.com/help` syncs `/help` and the pages beneath it, but not `/help-old`. | +| **Page Discovery** | **Sitemap, or follow links when there is none** (the default), **Sitemap only**, or **Follow links from the website URL**. | +| **Sitemap URL** | A sitemap to read instead of the ones Sim discovers. It must be on the site's own host. | +| **Include Paths** | Comma-separated path prefixes to sync, such as `/benefits, /help/*/faq`. `*` matches any characters. Leave empty to sync every page in scope. | +| **Exclude Paths** | Comma-separated path prefixes never to sync. | +| **Max Link Depth** | How many links away from the website URL a crawl reads pages. The default is 3 and the maximum is 10. | +| **Max Pages** | The most pages indexed. The default is 500 and the maximum is 5,000. | + +Each page can populate two metadata tags: **Section**, the first segment of its path (`/benefits/dental` is in `benefits`), and **Last Modified**, from the sitemap. + +**Request Header** sends one `Name: value` header with every request, for a site behind a gateway that accepts a service credential. Cookies are refused, because a session cookie is a person's sign-in. Everything the header unlocks becomes searchable by everyone with access to the knowledge base, so use a credential meant for a service. Headers the request sets itself, such as `Host` and `User-Agent`, cannot be overridden. + + +Sim Cloud can only sync sites on the public internet. On self-hosted deployments, the site must be reachable from the Sim server and allowed by its [outbound-network policy](/platform/self-hosting/security#the-ssrf-boundary). + + +### How pages are found + +Sim reads the sitemaps the site's `robots.txt` declares. When it declares none, Sim tries `sitemap.xml` under the website URL's path and at the host root. A page whose sitemap entry has a `` date is fetched again only when that date changes. A page without one is fetched on each sync and reprocessed only when its text has changed. + +Following links starts at the website URL and reads each in-scope page once, breadth-first, up to **Max Link Depth**. It skips links marked `rel="nofollow"` and links on pages that ask not to be followed. When a page names another in-scope page as its canonical URL, that page is indexed in its place, and the same page reached through different URLs is indexed once. A large or slow site is crawled across several sync runs, which history shows as **Continuing**. + +With the default discovery, a site with no usable sitemap is crawled instead. **Sitemap only** fails setup when the site has no sitemap with pages in scope. + +### What is indexed + +Sim reads the HTML the server returns and does not run JavaScript, so a page that builds its content in the browser can sync with little or no text. Content in the page's `
` or `
` region is preferred over the whole page, and headings, lists, and tables keep their structure. + +A page is left out, and any copy indexed before is removed, when it: + +- Returns 404 or 410. +- Redirects outside the configured scope. +- Asks not to be indexed with `noindex` in a robots meta tag or an `X-Robots-Tag` header. +- Has no text, or is larger than 2 MiB. + +### Crawling etiquette + +Requests identify themselves as `SimBot/1.0` and follow the site's `robots.txt`, including `Crawl-delay` (up to 10 seconds between requests). Rules for `SimBot` apply, otherwise the rules for all crawlers. A crawl reads at most 4 pages at a time. + +If `robots.txt` returns a 4xx status other than 429, such as 404, every page is allowed. A 429, a server error, or a network failure fails the sync rather than guessing. + +### Removed pages + +Pages that leave the site or the configured scope leave search after a complete sync. A sync that reached **Max Pages**, crawled because the sitemap was unavailable, or could not read some pages does not treat unlisted pages as deleted, so a partial run never removes pages it did not reach. + ## Available connectors The source picker lists the available services. Built-in connectors include: @@ -212,7 +267,7 @@ The source picker lists the available services. Built-in connectors include: | --- | --- | | Productivity | Coda, Notion, Confluence, Asana, Linear, Plane, Jira, Jira Service Management, Monday, Trello, ClickUp, Google Calendar, Google Sheets, Google Forms, Microsoft Excel, Typeform | | Cloud storage | Google Drive, Dropbox, OneDrive, SharePoint, Box, Amazon S3, SFTP | -| Documents | Google Docs, Google Slides, Mintlify, WordPress, Webflow, DocuSign | +| Documents | Google Docs, Google Slides, Mintlify, WordPress, Webflow, Website, DocuSign | | Development | GitHub, GitLab, Bitbucket, Azure DevOps, Sentry | | Communication | Slack, Discord, Microsoft Teams, Google Chat, Reddit, X, YouTube | | Email | Gmail, Outlook |