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

# Add URLs

> Scrape content from websites to add to your knowledge base.

# Add URLs

The **Links** tab in the Document Manager lets you add web content to your knowledge base. Instead of copying and pasting from websites, BestChatBot scrapes the content for you.

<Frame>
  <iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/B-Iy7NfHv5E" title="Turn Your Website Into an AI Agent for Your Business (Auto-Updating)" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</Frame>

## Scraping Methods

BestChatBot offers three ways to add web content:

<CardGroup cols={3}>
  <Card title="Direct URL" icon="link">
    Paste a single page URL. The bot scrapes just that page.
  </Card>

  <Card title="Sitemap" icon="sitemap">
    Provide a sitemap URL and BestChatBot discovers all pages automatically.
  </Card>

  <Card title="Crawl" icon="spider">
    Enter a starting URL and BestChatBot crawls the site following links to discover pages.
  </Card>
</CardGroup>

## How to Add URLs

<Steps>
  <Step title="Open Document Manager">
    Go to **Document Manager** from the dashboard sidebar and switch to the **Links** tab.
  </Step>

  <Step title="Choose Your Method">
    Select whether you want to add a **Direct URL**, **Sitemap**, or **Crawl**.
  </Step>

  <Step title="Enter the URL">
    Paste the URL into the input field. For example:

    * **Direct:** `https://yoursite.com/faq`
    * **Sitemap:** `https://yoursite.com/sitemap.xml`
    * **Crawl:** `https://yoursite.com/docs`
  </Step>

  <Step title="Configure URL Filters (Optional)">
    Narrow down which pages get added using URL patterns. The available options depend on the method:

    * **Crawl** — open **Advanced options** to set **Include paths** and **Exclude paths**. Only pages matching an include pattern are kept; pages matching an exclude pattern are skipped.
    * **Sitemap** — set a single **URL Pattern** to keep only the matching entries. Leave it empty to import every URL in the sitemap.

    Patterns use glob-style wildcards (`*`) and are matched against the page path. For example, `docs/*` keeps everything under `/docs`, and `*/blog/*` matches any blog path.

    <Note>Enter **one pattern per field**. To target several distinct sections, run separate scrapes.</Note>
  </Step>

  <Step title="Start Scraping">
    Click the button to begin scraping. You'll see progress as pages are discovered and processed.

    <Note>Scraping time depends on the number of pages. A single page takes seconds; a full site crawl may take several minutes.</Note>
  </Step>

  <Step title="Rebuild Knowledge Base">
    After scraping completes, remember to **Rebuild Knowledge Base** so the bot can use the new content.

    <Warning>Changes to your URLs (new scrapes or deletions) are **not applied** until you rebuild. The bot continues using the previous version of the knowledge base until then.</Warning>
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/bestchatbot/97kdRjnWT0Lew0EI/images/add-urls-screen.png?fit=max&auto=format&n=97kdRjnWT0Lew0EI&q=85&s=3ad4c984a8cc50aee3607707d6613c3c" alt="Links tab showing Crawl Website, Single URL, and Sitemap options with scraped URLs" width="1404" height="740" data-path="images/add-urls-screen.png" />
</Frame>

## Scraped Pages Limits

Each plan includes a set number of pages you can add from URLs. Every URL in your knowledge base counts toward this limit — whether it was added as a direct URL, discovered from a sitemap, or found during a crawl.

| Plan     | Scraped Pages |
| -------- | ------------- |
| Free     | 5             |
| Starter  | 30            |
| Pro      | 75            |
| Business | 150           |

<Tip>Use **Direct URL** for your most important pages first. Save crawling for when you need full coverage.</Tip>

## Managing Scraped Content

Scraped pages appear alongside uploaded documents in your knowledge base. You can:

* View the URL and scrape date
* Delete individual scraped pages
* Re-scrape a URL to get updated content

<Frame>
  <img src="https://mintcdn.com/bestchatbot/YGTok5EETDkINur7/images/child-urls.png?fit=max&auto=format&n=YGTok5EETDkINur7&q=85&s=f9c672671b6cdd8067e4d9a1b8710449" alt="A crawled source expanded to show its discovered child URLs, each with a pending status" width="2169" height="1221" data-path="images/child-urls.png" />
</Frame>

## Next Steps

<CardGroup cols={2}>
  <Card title="Rebuild Knowledge Base" icon="rotate" href="/knowledge-base/rebuild">
    Process your new content.
  </Card>

  <Card title="Upload Documents" icon="file-arrow-up" href="/knowledge-base/upload-documents">
    Add PDFs, DOCX, TXT, or MD files.
  </Card>
</CardGroup>
