Using Documents
Overview#
Most of what your agent needs to know is probably written down already — a returns policy, a product manual, a price list. Upload those files and the agent answers from them.
Files are the right source when the information lives offline or behind a login, where the agent could not reach it from a web page.
What you can upload#
| Type | Formats | Choose |
|---|---|---|
| Documents | PDF, DOCX, TXT, MD, JSON | Documents |
| Spreadsheets | CSV, XLSX, XLS | Spreadsheet |
Each file can be up to 10 MB, and the files in one upload can add up to 10 MB between them. Larger sets go up in more than one batch.
Files keep their own names in your knowledge, so there is nothing to name.
Uploading files#
- Open the agent in the builder and go to Knowledge.
- Open the Add source menu and choose Upload files. For a spreadsheet, choose Spreadsheet at the top of the dialog.
- Drop your files onto the upload area, or choose them from your computer.
- Check the list of files and remove any you picked by mistake. Picking the same file twice adds it once.
- Choose Add source.
The files are now in the agent's knowledge, but the agent does not use them yet. Train the agent to put them into its answers — see Retrain Your Agent.
Adding several sources?
Add them all first, then train once. Each training run processes every source together.
If a file is refused#
| Message | What to do |
|---|---|
| Some files were skipped | The files it names are not a type this option accepts. If they are spreadsheets, it says so — add them under Spreadsheet instead. |
| Some files are too big | The named files are over 10 MB. Split them, or save them as a smaller format. |
| Those files add up to more than 10 MB | Each file is fine, but together they are too much for one upload. Add them in two batches. |
Files that make good answers#
- Upload the current version. An old policy uploaded alongside a new one gives the agent two answers to choose from. Remove what is out of date and retrain.
- Keep an eye on the storage meter. The bar above your sources shows how much of your knowledge allowance is used.
Every agent's sources are also listed under Knowledge in the sidebar, in a folder of their own. See Knowledge Folder and Manage Sources.