---
title: "Adding knowledge"
description: "The sources your bot answers from, what each one reads, and how to keep them up to date."
url: https://tufu.ai/docs/knowledge/
---

# Adding knowledge

The sources your bot answers from, what each one reads, and how to keep them up to date.

Knowledge is what your bot answers from. Add it under **Knowledge → Add knowledge**, then pick which bots use it on
each bot's **Behavior** page; the Knowledge page shows which bots use each source. While your team has a single bot,
new knowledge is added to it automatically.

Team admins add and delete knowledge. Everyone on the team can browse and rebuild it.

![The Knowledge page: a help center website and its pages, the bots that use it, and how much your knowledge holds](https://tufu.ai/static/images/docs/knowledge-sources.png)

## Kinds of knowledge

| Kind | What it reads | Good for |
|---|---|---|
| **Website** | Pages from a list of addresses, or every page in a `sitemap.xml` | Your help center, docs site, FAQ, shipping and returns pages |
| **Files** | PDFs, Word (.docx), PowerPoint (.pptx) and Excel (.xlsx) files, CSV, JSON, Markdown and plain text you upload | Manuals, policies, product sheets, price lists |
| **Text** | Text you paste or type into tufu | A policy or notes that don't live anywhere else |
| **Questions and answers** | Questions with your answers, one pair at a time | The questions customers ask most |
| **GitHub repo** | Markdown or PDF files in a public GitHub repository | Docs kept in a repo |
| **Zip file from a link** | A zip of Markdown docs at a public link | Docs exported from another tool |
| **Slack** | Threads from the Slack channels tufu can see | Answers your team already gave |
| **Confluence** | Pages from one Confluence space | An internal or public wiki |

### Website

Enter your homepage and tufu finds the rest: the sitemap your site lists, or else the links on your homepage. You can
also enter page addresses one per line, or a sitemap such as `https://yoursite.com/sitemap.xml`.

A new website source is read in two goes. First the 50 pages most likely to answer customers (your homepage, then
help, FAQ, shipping, returns, pricing and contact pages), so your bot answers within minutes; then the rest. The
Knowledge page and the source show how far it's got. tufu reads the main text of each page (not its menus, sidebars or footer) and remembers its address and headings, so
answers link straight to the page, and to the section when the page gives its headings an anchor. On a WordPress site
tufu reads pages and posts through WordPress's own API when it's open.

### Files

Upload one file or several at once. Each file shows up in the source, where you can add more files later or remove
one.

Spreadsheets are read row by row. Put the column names in the first row of each Excel sheet or CSV file: tufu reads
every row after it as those names with the row's values, so your bot knows which value is which. Each sheet of a
workbook is a section of its own. A JSON file is read as its values, each with the keys that lead to it. Old .doc,
.ppt and .xls files can't be read: save them as .docx, .pptx or .xlsx first.

### Text

Paste or type the text and give it a name. A line that starts with `#` starts a new section, as a heading does in
Markdown. To change the text later, open the source, edit it and press **Save**: tufu reads it again straight away.

### Questions and answers

Write a question and its answer, and press **Add a question** for the next one. Each question is a page of its own,
which your bot answers from. Open the source later to change, add or remove questions; when you save, tufu reads
again only the questions you changed. Answers you write from [Knowledge gaps](https://tufu.ai/docs/knowledge-gaps/) are kept in a
source of their own, so you don't need to copy them here.

### GitHub repo and Zip file

Enter the repository as `owner/name`, or the zip's public link. Choose which files to read: **Text** (Markdown and
other text files), **PDF**, or **Custom**, a regular expression such as `.*\.md$`.

### Slack

Connect your Slack workspace first (see [Slack](https://tufu.ai/docs/slack/)). tufu learns from threads, the questions people asked
and the answers they got, in the public channels it can see. Private channels, direct messages and handoff threads are
never used as knowledge.

### Confluence

Enter your Confluence address and the space key. For a private space, add your Confluence username and an API token.

## Boost

Every source has a **Boost** from 0 to 10. When several sources match a question, a higher boost makes that source
more likely to be used. Leave it at 0 unless one source should win, like your official help center over old Slack
threads.

## Keeping knowledge fresh

When your docs change, open the source and press **Re-read**. Uploaded files have no Re-read: to change one, upload the new
version. tufu reads it again and your bots use the new
version; pages that didn't change aren't processed twice. The source's page shows what it has read (every page or
file, with its passages, and a search to find one), when it last read it, how long that took, and how many passages
the last read added or removed.

On a paid plan, Website, GitHub and Confluence sources can also refresh on their own. Pick a speed under **Refresh** when
you add one, or later in its settings: every week on Starter, up to every day on Team, up
to every 6 hours on Scale. A new source starts at every week, which we recommend unless your pages change
often. If a scheduled read fails, your bots keep answering from the last version that worked, and your team's admins get an email.

## Limits

Knowledge is measured in megabytes of text: the text tufu reads from your pages and files, not their file size. A
PDF full of screenshots counts only the text in it. Rebuilding a source replaces its text, so it never counts twice.
The Knowledge page shows how much your knowledge holds.

| | Free | Team |
|---|---|---|
| Knowledge | 2 MB of text, about 700 pages | 100 MB of text, about 30,000 pages |

On every plan, an uploaded file can be up to 25 MB, and a website source reads up to
5,000 pages.

When your knowledge is full, your bots keep answering from everything in it, but new sources and files wait until
there's room: delete a source you no longer need, or move to Team. Text or questions that don't fit aren't saved, and
the form says how much room is left. A build that runs out of room, or
reaches a website's page limit, stops, keeps what it read, and says so on the source. See
[Plans, answers and packs](https://tufu.ai/docs/plans/).

## Privacy

Knowledge belongs to your team. Bots on other teams never see it, and tufu doesn't train AI models on it. To read
your knowledge, tufu's own search model indexes it, whatever model your bots answer with, under terms and settings that
don't allow training on it. The providers that process your data are listed on our
[Subprocessors](https://tufu.ai/subprocessors/) page. See also
[Bring your own model](https://tufu.ai/docs/own-ai-key/#data-privacy-by-provider).
