# Docs and files

The quickest way to give answerable's agent your product knowledge: import your docs site by its address, and upload documents that aren't online. Neither needs anything built on your side. Add them under **Knowledge → Docs and files → Add knowledge**, as an admin.

The agent searches imported docs alongside your help center's articles, what it learned from your team's replies, and any [docs search](https://staging.preview.answerable.co/docs/knowledge/docs-search.md), reads the sections it relies on, and may quote them to customers. **Import only public pages, and upload only what any customer may read.**

## Docs sites

Choose **Docs site** and give the address of your docs, such as `example.com/docs`. answerable first finds the site's pages and shows how many there are; once you start the import, it reads them in the background and splits them into sections the agent can search. Imported sites are refreshed every day, and **Refresh** reads one again at once.

### How answerable reads a site

- **Scope:** only pages under the address given, after the start page's redirects. `example.com/docs` imports `/docs/…` and nothing else on the site. An address that redirects to a single article (`docs.example.com` to `/docs/introduction`, say) imports the site, not just that article.
- **Finding pages:** the sitemaps robots.txt lists, `/sitemap.xml`, then `/llms.txt`; without either, the links on the start page, followed up to 3 links deep. A sitemap with `lastmod` dates lets refreshes skip unchanged pages.
- **Size:** larger sites are imported a part at a time (`example.com/docs/developers/api`, say). The limits are below.
- **Politeness:** one page at a time, a second apart, or robots.txt's `Crawl-delay` up to 10 seconds. `429` and `503` are retried after `Retry-After`. Requests send `User-Agent: answerable/1.0 (+https://answerable.co)`, and `ETag` and `Last-Modified` are used to ask for a page only if it changed.
- **Respected:** robots.txt rules for `answerable` (or `*`), `noindex` and `nofollow` in a `robots` or `answerable` meta tag, `noindex` in an `X-Robots-Tag` header, and `rel="canonical"`.
- **Content:** HTML (the main content: navigation, headers, and footers are left out), Markdown, and plain text. Pages must work without signing in and show their text without JavaScript.

## Uploaded files

Choose **Files** for documents that aren't online, such as internal guides you're happy for customers to see, or policies. answerable reads PDF, Word (`.docx`), Markdown, plain text, and HTML files. Each file's text is split into sections the agent searches like a site's pages. Remove a file and the agent stops using it at once.

## Limits

| In a workspace | Trial | Pro |
| --- | --- | --- |
| Docs sites | 3 | 10 |
| Files | 50 | 500 |
| Knowledge text | 10 million characters | 50 million characters |
| Files' storage, all together | 250 MB | 2 GB |
| Sections, sites and files together | 20,000 | 20,000 |

| For each site and file | Up to |
| --- | --- |
| Pages in a site | 1,000 |
| A page's size (larger pages are skipped) | 2 MB |
| Text kept from a page | 100,000 characters |
| Text kept from a site | 20 million characters |
| A file's size | 25 MB |
| Text kept from a file | 3 million characters |

What a workspace can hold depends on its plan. The text answerable keeps from each site, page, and file counts toward the workspace's knowledge text. Uploaded files also count toward its file storage at the size they were uploaded, including files that couldn't be read, since answerable keeps every original for downloading.

## Checklist

- [ ] The docs are public and server-rendered
- [ ] A sitemap lists every docs page, ideally with `lastmod`
- [ ] robots.txt doesn't disallow `answerable` from the docs
- [ ] Pages answer with `ETag` or `Last-Modified`, so refreshes stay cheap
- [ ] Uploaded files hold nothing a customer shouldn't read
