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

# Knowledge Base

> Learn how to give agents access to your documents and websites

## Upload a document

You can upload a document to your agent's knowledge base by clicking the "Upload Knowledge Files" button in the create/edit agent flow.

Documents are automatically chunked and indexed as necessary.

## Crawl a website

PlayAI Agents can also crawl a website and answer questions about the content and navigate the user to the relevant pages.

<Steps>
  <Step title="Enable crawling">
    On the last page of the create/edit agent flow, check the "Crawl website" checkbox and enter the URL of the website you want to crawl.

    <Frame>
      <img src="https://mintcdn.com/playhtinc/oLfqv-LO9FzqCeTi/media/crawl-a-website/enable-crawling.png?fit=max&auto=format&n=oLfqv-LO9FzqCeTi&q=85&s=22328d58be8bab120e947d54581946ba" alt="Enable crawling" width="1680" height="1680" data-path="media/crawl-a-website/enable-crawling.png" />
    </Frame>
  </Step>

  <Step title="Click the 'Crawl' button to start the crawling process">
    Stay on the page until the crawling process is complete. This can take a while if the website has many pages.

    <Frame>
      <img src="https://mintcdn.com/playhtinc/oLfqv-LO9FzqCeTi/media/crawl-a-website/click-crawl.png?fit=max&auto=format&n=oLfqv-LO9FzqCeTi&q=85&s=e07bfcfaa14311c2c595e4322fd3da18" alt="Click 'Crawl'" width="966" height="338" data-path="media/crawl-a-website/click-crawl.png" />
    </Frame>
  </Step>

  <Step title="Wait for crawling to complete">
    Your embed should now be able to answer questions about the crawled website and navigate the user to relevant pages on the site.

    <Frame>
      <img src="https://mintcdn.com/playhtinc/oLfqv-LO9FzqCeTi/media/crawl-a-website/crawling-completed.png?fit=max&auto=format&n=oLfqv-LO9FzqCeTi&q=85&s=caf8d55a47f2f553cc8c86fcc3e17d7a" alt="Click 'Crawl'" width="968" height="268" data-path="media/crawl-a-website/crawling-completed.png" />
    </Frame>
  </Step>
</Steps>

## Delete a crawled website

Go into the "Knowledge" tab of the create/edit agent flow and click the trash icon next to the website you want to delete under the "Custom Knowledge" section.

<Frame>
  <img src="https://mintcdn.com/playhtinc/oLfqv-LO9FzqCeTi/media/crawl-a-website/delete-website.png?fit=max&auto=format&n=oLfqv-LO9FzqCeTi&q=85&s=07a1e840f765e5415bbefa4618a3ca1e" alt="Delete website" width="1400" height="1400" data-path="media/crawl-a-website/delete-website.png" />
</Frame>
