> ## Documentation Index
> Fetch the complete documentation index at: https://sitegpt.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add your website

> Add pages from your website to your chatbot by crawling the site, importing a sitemap, or pasting a list of links.

Use this guide to add web pages to your chatbot's content. There are three ways to do it:

| Method | Use it when |
| - | - |
| **Scrape Website** | You want SiteGPT to start at one URL and follow links to find pages. |
| **Add from Sitemap** | Your site has a `sitemap.xml` that lists the pages you want. |
| **Add Multiple Links** | You know the exact pages you want. |

To add YouTube videos, see [Add YouTube videos](https://sitegpt.ai/docs/guides/content/add-youtube-videos.md). To learn what SiteGPT does with a page after it adds it, see [How answers work](https://sitegpt.ai/docs/concepts/how-answers-work.md).

## Before you start

* An active plan. Each plan has a page limit. See [Plans and limits](https://sitegpt.ai/docs/reference/plans-and-limits.md).
* The Super Admin, Admin, or Manager role on the chatbot. Agents cannot add content.
* The pages must be public, unless you add them with custom headers. See [Pages behind a login](#pages-behind-a-login).
* Every address must be a public `http://` or `https://` address. SiteGPT refuses `localhost`, private and local network addresses (for example `192.168.1.10`), and names that end in `.internal` or `.local`. See [Addresses that SiteGPT refuses](#addresses-that-sitegpt-refuses).

> [!NOTE]
>
> One page of quota is 2,500 characters of cleaned text. A long web page can use several pages of quota. The **Max Pages to Scrape** field counts URLs, not quota pages.

## Crawl a website

**1. Open the form**

In the chatbot sidebar, go to **Website Links** > **Scrape Website**.

**2. Enter the start URL**

In **Website URL**, enter the page to start from, for example `https://example.com`.

**3. Set the depth**

In **Recursion Depth**, enter a number from 1 to 5. Depth 1 adds the start page, the pages it links to, and the pages that those pages link to.

**4. Set the page cap**

In **Max Pages to Scrape**, enter the most URLs to add. The field cannot go above the pages left in your quota.

**5. Limit the crawl (optional)**

Fill in the filter fields you need. See [Crawl options](#crawl-options).

**6. Start the crawl**

Select **Add Links**. The message "Added website to the queue" appears.

## Import a sitemap

**1. Open the form**

In the chatbot sidebar, go to **Website Links** > **Add from Sitemap**.

**2. Enter the sitemap URL**

In **Sitemap URL**, enter the full address, for example `https://example.com/sitemap.xml`.

**3. Set the page cap**

In **Max Pages to Scrape**, enter the most URLs to add. The field cannot go above the pages left in your quota.

**4. Set options (optional)**

Fill in the filter fields you need. See [Crawl options](#crawl-options).

**5. Start the import**

Select **Add Links**. The message "Added sitemap to the queue" appears.

> [!WARNING]
>
> SiteGPT only adds sitemap URLs that have the same hostname as the sitemap. For example, a sitemap at `https://example.com/sitemap.xml` that lists `https://www.example.com/...` pages adds no pages. Use the sitemap address with the same hostname as the page URLs.

A sitemap index that points to other sitemaps is supported. SiteGPT follows the nested sitemaps.

## Add a list of links

**1. Open the form**

In the chatbot sidebar, go to **Website Links** > **Add Multiple Links**.

**2. Paste the URLs**

In **Links**, paste or enter the URLs, one per line. You can paste a column of links from a spreadsheet. The form repairs a pasted list. See [How the form reads a pasted list](#how-the-form-reads-a-pasted-list).

**3. Set options (optional)**

Fill in the scrape options you need. See [Crawl options](#crawl-options).

**4. Add the links**

Select **Add Links**. The message "Added links to the queue" appears.

You cannot add more URLs than the pages left in your quota. The form shows how many you can add. If the list has more links, the box shows "You can only add N more pages. You're trying to add M links.", and **Add Links** is turned off until you remove links.

Lists of links do not refresh on a schedule, even if you pick an **Auto Sync Frequency** in the form. To refresh them, [resync](https://sitegpt.ai/docs/guides/content/keep-content-up-to-date.md#resync-content-now) them.

### How the form reads a pasted list

When you paste at the end of the list, or paste over the whole list, the form repairs the list at once. It also repairs the list when you leave the **Links** box. The form:

* Removes empty lines, for example the empty last line that a spreadsheet adds when you copy cells.
* Puts each link on its own line. Links separated by spaces, tabs, or nothing at all become separate links.
* Removes quotes and brackets around a link, and commas and semicolons between links on one line. Brackets and quotes that are part of the link stay. A comma or semicolon at the end of a line stays part of the link.
* Joins a link that a copy split over two lines.
* Adds `https://` to an address without it, for example `www.example.com/page`.
* Keeps each link one time.

Only `http://` and `https://` links count. The form removes other text, for example a page title under a link, and shows "Skipped, not a link:" with that text under the box. The message goes away when you change the list. The count under the box counts the links after the repair.

Long links stay on one line in the box. Scroll sideways to see the end of a long link.

The API, the CLI, the SDKs, and the MCP server do not repair lists. Each URL that you send there must be a valid, public `http` or `https` URL. See [Addresses that SiteGPT refuses](#addresses-that-sitegpt-refuses).

## If adding the links fails

When **Scrape Website**, **Add from Sitemap**, or **Add Multiple Links** cannot start the import, the form shows why at the top of the form:

| Message | Forms | What to do |
| - | - | - |
| "urls: Add at least one link, such as [https://example.com/pricing](https://example.com/pricing)" | Multiple Links | The list has no link that the form can read. Paste full page addresses. |
| "You can only add N more pages." | Multiple Links | When SiteGPT checked, the list had more links than the pages left in your quota, for example because content was added in another tab. Remove links, or [free up pages](https://sitegpt.ai/docs/guides/troubleshooting.md#page-limit-reached). The Website and Sitemap forms do not show this message. They add no more URLs than the pages you have left. |
| "You added links many times in a short while. Try again in N minutes." | All | You started many imports in a short time. Wait the number of minutes in the message. A list that the form refuses because it has no link does not count. |
| "This account has no active plan, so content operations are unavailable." | All | The chatbot owner's plan is not active. See [Manage your plan and billing](https://sitegpt.ai/docs/guides/account/billing.md). |
| "URLs must be public http(s) addresses; internal, local and private addresses are not allowed:" and the address | All | The website, sitemap, or a link in the list is a local or private address. SiteGPT adds nothing. Trying again does not help. Use a public address, or remove that link. See [Addresses that SiteGPT refuses](#addresses-that-sitegpt-refuses). |
| "We could not add this website. Reload the page and try again. If it keeps failing, contact support." (or "this sitemap", or "these links") | All | Something else failed. Reload the page and try again. |

## Addresses that SiteGPT refuses

SiteGPT adds content only from public web addresses that start with `http://` or `https://`. It refuses these addresses in the dashboard, API v2, the older APIs, the CLI, and the MCP server:

* `localhost`, and names that end in `.localhost`, `.internal`, or `.local`.
* IP addresses of private and local networks, for example `10.0.0.1`, `192.168.1.1`, `172.16.0.1`, and `127.0.0.1`.
* Names that point to an address written in the name, for example names under `nip.io`, `sslip.io`, or `localtest.me`.

The **Scrape Website**, **Add from Sitemap**, and **Add Multiple Links** forms then show "URLs must be public http(s) addresses; internal, local and private addresses are not allowed:" and the address. Trying again does not help. Use the public address of the site. API v2 and the CLI return `400 URL_NOT_PUBLIC` with the same message. See [Errors from content operations](https://sitegpt.ai/docs/api-reference/v2/conventions.md#errors-from-content-operations).

To add pages from an internal site, upload them as files instead. See [Upload files](https://sitegpt.ai/docs/guides/content/upload-files.md).

## Crawl options

The forms share most options. Some options exist only on some forms. In the table, **All** means the Website, Sitemap, and Multiple Links forms.

| Option | Forms | What it does |
| - | - | - |
| **URL paths to include** | Website, Sitemap | Adds only URLs that contain one of these texts, one per line. `/blog` matches any URL with `/blog` in its path. It is a plain text match, not a wildcard or pattern. |
| **URL paths to exclude** | Website, Sitemap | Skips URLs that contain one of these texts. Exclude is checked before include. |
| **Allowed Domains** | Website | Adds links to these other hostnames, one per line. SiteGPT adds those pages but does not follow links on them. |
| **Extract main content only** | All | On by default. Keeps the main content of each page and leaves out headers, footers, sidebars, and navigation. |
| **Skip pages that are already trained** | All | Leaves pages that are already in the chatbot's content alone instead of adding them again. |
| **HTML/CSS selectors to include** | All | Keeps only content inside matching elements, one selector per line. For example, `main` or `.content`. |
| **HTML/CSS selectors to exclude** | All | Removes matching elements before training, one selector per line. For example, `footer` or `.sidebar`. |
| **Custom Headers (Optional)** | All | Sends HTTP headers when SiteGPT fetches each page. Enter one `Name: Value` per line. |
| **Auto Sync Frequency** | All | Crawls again on a schedule. It has no effect for a list of links. See [Keep content up to date](https://sitegpt.ai/docs/guides/content/keep-content-up-to-date.md). |
| **Auto Scan Frequency** | Sitemap | Checks the sitemap on a schedule for added and removed URLs. See [Keep content up to date](https://sitegpt.ai/docs/guides/content/keep-content-up-to-date.md). |

The auto-sync and auto-scan fields show only if your plan includes them.

### Hostnames must match exactly

A crawl follows links only on the exact hostname of the start URL. `www.example.com` and `example.com` are different hostnames. So are subdomains such as `docs.example.com`.

* Start the crawl on the hostname your pages use.
* To also add pages from another hostname, list it in **Allowed Domains**.

### Pages behind a login

SiteGPT sends your custom headers each time it fetches a page. You can use this to add pages that need a login, such as pages for signed-in customers:

1. Sign in to your website in your browser, and copy the session cookie or access token that your site uses.
2. Choose **Add Multiple Links** and paste the exact URLs of the pages you want.
3. In **Custom Headers (Optional)**, add the header, for example `Cookie: session=YOUR_SESSION_VALUE` or `Authorization: Bearer YOUR_TOKEN`.

Keep these points in mind:

* Add the pages as a list of links. Custom headers are not sent while SiteGPT looks for links to follow, so a crawl or a sitemap cannot find pages that are linked only behind a login.
* Session cookies and tokens expire. When they expire, a resync of these pages fails. Add a fresh value to update the pages.
* Everything you add can appear in answers to anyone who can reach the chatbot. Only add private pages to a chatbot whose visitors may see that content.
* Custom headers are available in the dashboard only. The API and CLI accept only the `User-Agent`, `Accept`, and `Accept-Language` headers.

You can also [upload the content as files](https://sitegpt.ai/docs/guides/content/upload-files.md) or [add a text snippet](https://sitegpt.ai/docs/guides/content/add-text-snippet.md).

### What a crawl does not do

* It does not read `robots.txt`, `nofollow`, or canonical tags.
* It does not add image or video files as pages. Image alt text in a page stays in the text.
* URLs with different query strings, such as `?utm_source=...`, count as different pages. Exclude them with **URL paths to exclude**.

If your site links to PDF files that the chatbot must learn from, [upload the PDFs](https://sitegpt.ai/docs/guides/content/upload-files.md).

PDF files that the crawl finds on your site are added too. SiteGPT reads their text, and each PDF counts toward your pages like any other document. Scanned PDFs that contain only images give no text. Tables and complex layouts in a PDF can lose their formatting. PDFs on other domains are added only if you list that domain in **Allowed Domains**. To leave PDFs out, add `.pdf` to **URL paths to exclude**.

## Check that it works

1. Go to **Website Links** > **Links List**.
2. Wait for the new links to change from **Backlog** or **Processing** to **Success**.
3. Ask the chatbot a question that one of the new pages answers.

## Fix failed links

A row with a **Failed** badge could not be added. Point to the **Failed** badge to see the reason. Common reasons:

> [accordion] The website blocked access to this page
>
> The site blocks automated visitors, or the page needs a login. If you control a bot-protection service, ask your site admin to allow SiteGPT's requests. For pages behind a login, see [Pages behind a login](#pages-behind-a-login).

> [accordion] The page could not be found (404)
>
> The URL is wrong or the page no longer exists. Check that the URL opens in a private browser window. Delete the link if the page is gone.

> [accordion] The page took too long to respond
>
> Resync the link later.

> [accordion] Limit Reached
>
> Your plan's page limit was reached. Delete content you do not need, or upgrade. See [Plans and limits](https://sitegpt.ai/docs/reference/plans-and-limits.md).

> [accordion] The crawl added pages I did not want
>
> Delete the unwanted links. Then add the site again with **URL paths to exclude** or **URL paths to include**, and turn on **Skip pages that are already trained**.

> [accordion] A link stays in Processing
>
> SiteGPT checks for documents that stay in processing. After 2 days, it tries the document again by itself, or marks it **Failed** with "Processing stopped before it finished. Resync the document to train it." It tries a document again by itself at most two times. If processing stops each time, it marks the document **Failed** with the same message and does not try again. Resync the link. If the link fails again in the same way, the page may be too large to train.

> [accordion] Pages contain menus, cookie banners, or image data
>
> Add the unwanted parts to **HTML/CSS selectors to exclude**, for example `nav`, `footer`, or `img`. Then resync the links.

To try failed links again, select them in **Links List** and select **Resync N Selected**. To try all failed links, use the resync button on the **Failed** status card.

## Change settings for links you already added

1. In **Links List**, select the links.
2. Select **Update Config**.
3. Change the scrape options.
4. Select **Update Configuration**. SiteGPT adds those URLs again with the new settings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.