> For the complete documentation index, see [llms.txt](https://docs.wonderchat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wonderchat.io/setup-guides/training-your-chatbot/how-to-add-or-delete-webpages-or-websites-from-your-chatbot.md).

# Managing Webpages and Websites

Quick Guide on How to Add or Delete Webpages from your Chatbot

You can add whole websites, single pages, part of a site or a sitemap to your agent at any time. For example, your help center may live on a subdomain apart from your main website, or you may want the agent to read a new blog post straight away.

***

## Adding webpages to your agent

1. Go to **Agents** and click **Edit** on your agent's card.
2. Open **Data Source** and choose **URL**.
3. Click **Add**. The **Webpages** window opens.

You can also open it from the **Agents** page: click the pencil next to **Pages** on the agent's card.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-c8d04cd4c43c291632609a9d49f3201cd1c61085%2Fwebpages-crawl-settings.png?alt=media" alt="The Webpages window with a URL, the What to crawl menu and Crawl settings open"><figcaption><p>Add pages and choose what to crawl</p></figcaption></figure>

### Choose what to crawl

Under **Pages to add**, enter a URL and pick what to crawl from the menu next to it:

| Option                | What it adds                                                                              |
| --------------------- | ----------------------------------------------------------------------------------------- |
| **This page only**    | Just that page, for example `https://acme.com/pricing`.                                   |
| **Entire site**       | Every page Wonderchat can reach from that address, for example `https://acme.com`.        |
| **Subdirectory only** | Only pages under a path you enter, for example only pages under `https://acme.com/blog/`. |
| **Sitemap**           | Every page listed in a sitemap, for example `https://acme.com/sitemap.xml`.               |

Click **Add another URL** to add more. If you paste several URLs at once, each goes on its own row.

You no longer need to add an asterisk (`*`) to a URL to crawl a whole site. Choose **Entire site** instead.

Plain-text and markdown files are crawled too, such as a site's `llms.txt` and the `.md` pages it lists.

### Import a list of URLs

Click **Import a list** and drop a `.csv` or `.txt` file, or click to choose one. Put one URL per line. In a CSV you can add the crawl type (for example `Entire site` or `Subdirectory only`) and a subdirectory after each URL. Lines that can't be read are listed so you can fix them.

### Crawl settings

Click **Crawl settings** to change how the pages are loaded:

* **Use the JavaScript crawler**: slower. Turn it on if your pages need JavaScript to show their content.
* **Include images**: the agent can show images from these pages in its answers.
* **Sign-in**: for pages behind a login. See [Private Sites Crawling](https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/how-to-crawl-and-update-private-sites.md).

Click **Add pages** to start the crawl.

### Linked PDFs

On the **Data Source** tab under **URL**, turn on **Include linked PDFs** to also add the PDFs your pages link to. Each PDF counts as a page. This is on the **Scale** plan and above.

***

## Viewing and downloading your pages

On the **Data Source** tab under **URL**, click **View all URLs** (or click the page count on the agent's card on the **Agents** page). The **Pages** window lists every page the agent has learned from. Search the list, or click the download icon (**Download URLs**) to save the list as a file.

***

## Deleting webpages from your agent

1. On the **Data Source** tab under **URL**, click **Delete**.
2. Under **Pages to delete**, enter one URL per line.
3. Click **Delete pages**.

To delete a whole site or folder, end the URL with an asterisk:

* `https://acme.com/blog/*` deletes every page under `/blog/`.
* `https://acme.com/pricing` deletes only that page.

***

## FAQs

1. **How many websites can I add?**

As many as you like. The agent stores your pages until it reaches your plan's page limit.

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>
