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

# Websites

A **website knowledge base** connects an agent to information from a website. VIVI supports two types of website knowledge bases:

<CardGroup cols={2}>
  <Card title="Indexed Website" color="#0066ff" icon="globe" iconType="regular">
    The sitemap is crawled and pages are indexed for fast retrieval. Best for stable content where speed matters.
  </Card>

  <Card title="Realtime Website" color="#0066ff" icon="bolt" iconType="regular">
    Content is fetched live each time the agent is queried. Best for frequently changing content where accuracy matters more than speed.
  </Card>
</CardGroup>

***

## Set Up

<video autoPlay muted loop playsInline className="w-full aspect-video rounded-xl" src="https://mintcdn.com/ksg-ea85c748/YTCasSYS81Yq-Eip/videos/vivi_creating_websites.mp4?fit=max&auto=format&n=YTCasSYS81Yq-Eip&q=85&s=3bdcfe75963c771e0b67fe826a5a23e8" data-path="videos/vivi_creating_websites.mp4" />

Navigate to the **Knowledge Base** tab and click **Add New**. Select either **Indexed Website** or **Realtime Website** from the Category dropdown menu, then add your URL(s) into the **Website URL** box and click **Test**. Fill in any additional sections marked as required.

<Danger>
  Some websites may fail the Test URL function, indicating they are inaccessible. A site is considered inaccessible if it uses CAPTCHAs, anti-bot protections, or other access restrictions.
</Danger>

***

## Indexed Websites

Indexed website knowledge bases crawl the entire sitemap and index the identified pages. This provides faster responses since the information is pre-stored rather than fetched in real-time.

### Re-indexing

When changes are made to your webpages, you will need to re-index to update the knowledge base.

<Warning>
  **Avoid re-indexing your entire site multiple times.** Re-indexing the full sitemap is resource-intensive and unnecessary in most cases. Instead, re-index only the specific pages or folders that have changed.
</Warning>

You can choose to re-index:

<CardGroup cols={3}>
  <Card title="Individual Pages" icon="file" iconType="regular" color="#0066ff">
    Re-index a single page that has been updated.
  </Card>

  <Card title="Site Folders" icon="folder" iconType="regular" color="#0066ff">
    Re-index a specific section or folder of your site.
  </Card>

  <Card title="Entire Site" icon="globe" iconType="regular" color="#0066ff">
    Re-index the full sitemap. Use sparingly — only when a large-scale restructure has occurred.
  </Card>
</CardGroup>

***

## Realtime Websites

Realtime websites fetch content live from the website URL each time the agent is queried. This provides the most up-to-date information but may be slower due to live tool calls.

***

## Best Practices

* **Re-index regularly** (for indexed websites) if your website content changes frequently to ensure your agent has current information.
* Avoid using URLs that point to downloadable files like `.pdf`, `.docx`, etc. Instead, download the file and upload it via a **Document Knowledge Base**.
* Always **test** a new URL by asking the agent about it and validating the returned response for accuracy.
* If you want to limit your agent to certain parts of your site, use the **exact URL** to a specific page instead of a home page.
* **Write clear, informative descriptions** to help your agents use your knowledge base properly, such as what topics are contained and when the agent should use it.
