# Upload files (/docs/knowledge/upload-files)

> Upload PDFs, Word, Excel, PowerPoint, text, Markdown, CSV, HTML or images as knowledge, then review and publish them.

Type: how-to | Status: ga | Last reviewed: 2026-11-21 | Minimum role: builder

Uploading is the quickest way to bring existing documents into Knowledge.

## How do I train my AI agent on PDFs and documents? [#how-do-i-train-my-ai-agent-on-pdfs-and-documents]

Select Knowledge, choose Upload files, and drag in your files or browse for them. You can upload several at once. Each file goes through Processing, then shows Needs setup. Open it, configure its guidelines and publish it, so your agent can answer from it.

## Upload [#upload]

1. Select **Knowledge**, then choose **Upload files**.
2. Drag files into the upload area ("Drop files here or click to browse"), or choose them. You can select several at once.
3. Wait for each file to upload (**Uploading…**) and move through **Processing**.
4. When the status is **Needs setup**, open the item and [configure and publish it](/docs/knowledge/configure-and-publish).

<Screenshot src="/media/knowledge/upload.png" alt="The Upload files drop zone with accepted formats and limits" caption="Upload files" captured="2026-11-02" />

## Accepted files [#accepted-files]

PDF, DOCX, XLSX, PPTX, plain text, Markdown, CSV, HTML, and images (PNG, JPEG, WebP, TIFF). The file's extension and real type must agree. A file can be up to 25 MB and up to 100 pages, and a workspace holds up to 40 documents. See [Limits and formats](/docs/knowledge/limits-and-formats).

## What happens to the file [#what-happens-to-the-file]

1. It is uploaded and checked by a safety scan. A file that fails the scan is held back and shown as **Failed**; it is never searchable.
2. It is read, including layout such as tables and headings.
3. It is split into passages that keep their page or section, and indexed.
4. It appears in the library as **Needs setup**.

Citations can later show the document name and page; see [Citation modes](/docs/knowledge/citation-modes).

## Preparing good files [#preparing-good-files]

- Prefer text-based PDFs. Scanned pages are harder to read; export a text version if you can.
- One topic per file works better than one huge handbook.
- Remove outdated pages before uploading.
- Give files clear names. The name shows in citations and in the library.

## Spreadsheets [#spreadsheets]

Excel and CSV files can be uploaded as knowledge. For data you want the agent to read and change, use [Records](/docs/records) instead.

## Sending the original file to customers [#sending-the-original-file-to-customers]

If a file is meant for customers, you can let the assistant send it when asked. See [Guideline fields](/docs/knowledge/guideline-fields).

## If it fails [#if-it-fails]

See [Upload or indexing failed](/docs/knowledge/troubleshooting-upload).
