> For the complete documentation index, see [llms.txt](https://docs.eesel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eesel.ai/integrations/knowledge/uploading-files.md).

# Uploading Files

Upload files to your AI agent's knowledge. It answers from your PDFs, Word documents and text files, or from knowledge you write in eesel, and cites them.

Upload documents, or write them in eesel, and your agent answers from them wherever it works.

{% hint style="info" %}
**Using Claude Code, Codex or Cursor?** Ask it to upload a document with [eesel CLI](https://docs.eesel.ai/apis-and-developer-resources/cli). Point it to the [setup guide](https://docs.eesel.ai/getting-started/set-up-from-a-coding-agent).

**Using Claude.ai or ChatGPT?** Use the eesel connector (MCP). See [Claude and other assistants](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-claude-and-other-assistants.md) or [ChatGPT](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-chatgpt.md). If the eesel connector is already linked to the correct workspace, keep using it. For steps it cannot complete, use the dashboard.

**CLI details for your coding tool:** Select the right workspace and agent, then run `npx @eesel/cli files upload ./policy.pdf` for the file you want to add. Check the processing result and `eesel files ls`, then test a question the document answers. Uploading starts processing; it does not mean the content is ready yet. You can also use the dashboard upload area below.
{% endhint %}

## What your agent sees

Files are a knowledge source. Your agent reads the text of each file, indexed when you upload it and searched when a question comes in.

* **The text of each file.** PDFs from their text layer, Word documents without their images, CSV data, plain text and Markdown as written.
* **Files you and your agent write in eesel**, as soon as they are saved.
* **Each file has a setting.** A file or folder in **Files** is **On**, **Team only** (used only when someone on your team asks) or **Off** (never used).
* **Not there:** pictures inside a document, and any text in a scanned PDF. A scan with no text layer is refused at upload with a message saying so.
* **Answers, not attachments, for customers.** By default your agent answers customers from your files but does not send them the file or a link to it.

### Sources

Every file you upload or create becomes a source your agent can answer from. Every other integration on the agent is also a source. So one answer can draw on your helpdesk, your website and your files at once. See [Integrations](https://docs.eesel.ai/integrations/overview.md).

**Re-uploading replaces the old version.** A file is stored under its filename, so uploading a file with the same name overwrites it. That is how you update an uploaded document. Two names that differ only in capitals or punctuation, such as `Refund Policy.pdf` and `refund-policy.pdf`, count as the same name, so eesel stops the upload and asks you to rename one.

### Supported formats

For **uploaded** files:

| Format         | Extension          | Notes                                                                 |
| -------------- | ------------------ | --------------------------------------------------------------------- |
| **PDF**        | `.pdf`             | Text is read from the PDF's text layer                                |
| **Word**       | `.docx`            | Text and formatting. Images inside are left out                       |
| **Plain text** | `.txt`             | Any plain text file                                                   |
| **Markdown**   | `.md`, `.markdown` | Kept as written                                                       |
| **CSV**        | `.csv`             | Comma-separated data files                                            |
| **HTML**       | `.html`            | Kept as written, up to 5MB. Upload from **Files** in the left sidebar |

Other formats, including spreadsheets and legacy `.doc` files, are turned away when you pick them, with a message naming the supported types. Save them as PDF, Word, text or CSV first.

{% hint style="warning" %}
**Scanned PDFs can't be read.** Text is read from the PDF's own text layer, and there is no image-to-text conversion. A PDF that is really a photo or a scan of a page fails to upload, with a message saying it has no readable text. Test a PDF by trying to select text in it. If you cannot, run it through OCR or export a text-based version.
{% endhint %}

This applies to files you upload as knowledge. A screenshot or photo a customer attaches to a live conversation is a different thing, and your agent can look at that one on the channels listed in [Images and attachments](https://docs.eesel.ai/integrations/images-and-attachments.md).

## What it can do

### Triggers

Files have no triggers, so an upload does not start your agent. To have it act on incoming work, create an [automation](https://docs.eesel.ai/automations-and-schedules/automations-and-schedules.md) on an integration that has triggers.

### Actions

| Action                | What it does                                                                                                                                                                                   |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Create a file         | Writes a new file in **Files**, such as a summary, a list it compiled, or notes from a scheduled job                                                                                           |
| Edit a file           | Adds to or rewrites a text file in **Files**, such as one you or it wrote. If you edit the same file at the same moment, your edit is kept and the agent's version is saved as a separate copy |
| Share a download link | Gives you a link to a file. A Markdown or HTML file can also be downloaded as PDF or Word                                                                                                      |

## Add files to eesel

{% stepper %}
{% step %}

### Upload your files

Open the **Files** section in the left sidebar and click the plus icon. Drag your documents into the upload area, or browse for them. Each uploaded file can be up to **25MB**. You can also ask your agent in chat to take some documents. It opens the upload for you.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-a34bd11986951152eb329f759662a5bd41173722%2Ffiles-upload-modal.png?alt=media" alt="The dashboard chat with the Upload Files modal open in front of it, showing a drag and drop area, a Choose a file button, the 25MB limit, and three files ready to upload"><figcaption><p>The upload area, opened from the chat, with files ready to go.</p></figcaption></figure>

**Check it worked.** The **Files** list in the left sidebar shows the new file by name. From a terminal, `eesel files` lists it.
{% endstep %}

{% step %}

### Ask it something

Ask your agent a question the uploaded documents answer. It replies from them and names the files it used in its answer. You can also pass a customer's question straight to your agent here. It answers, then offers to draft the reply.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-14be3e06372bac51b7f8b4bcee78143f8b1e046c%2Ffiles-test-chat.png?alt=media" alt="The dashboard chat where the user passes on a customer question, and the agent answers from the uploaded files and offers to draft a reply"><figcaption><p>The agent answers from your uploaded files and names the ones it used.</p></figcaption></figure>
{% endstep %}

{% step %}

### Let it write files too

Ask your agent in chat to write a document and save it. Use this for a summary it built, a list it compiled, or the notes from a scheduled job. Anything it writes lands in the same **Files** list, where you can open, read and edit it. The editor shows a save state, plus **Share** and **Export** controls.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-bb6f355b08f924e8d1b0f8f51fba3bd24bb80b2b%2Ffiles-agent-written.png?alt=media" alt="A policy document the agent wrote, open in the Files editor with Saved, Share and Export controls, and the chat that asked for it listed under Recents"><figcaption><p>A file your agent wrote and saved, open in the Files editor.</p></figcaption></figure>
{% endstep %}

{% step %}

### Use it where your team works

Your agent answers from these files anywhere you have invited it. In Slack, a teammate mentions it with a question and it replies in the thread from the same uploaded documents.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-392fcb168e6c78acc76c4421e7916e37586d25c8%2Ffiles-slack-thread.png?alt=media" alt="A Slack thread where a teammate mentions eesel with a policy question and eesel replies in the thread with the answer from the uploaded files"><figcaption><p>The same knowledge, answered in a Slack thread.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## Creating files in the platform

1. Open the **Files** section in the left sidebar
2. Click **Create** to start a new file
3. Write or paste your content
4. Save. The file is available as knowledge straight away

Created files are text formats such as `.md`, `.txt`, `.csv`, `.json` and `.html`, up to **5MB** each.

### Exporting

The **Export** menu in the Files editor copies a file or downloads it in its own format. A Markdown or HTML file can also be downloaded as a PDF, and your agent can hand you a PDF or Word copy of one. An uploaded PDF or Word file opens as the text eesel read from it, so you can copy or download that text.

## Tips

**Use PDFs for policies and manuals**, as long as the text is selectable.

**Create files for knowledge that lives nowhere else.** If it exists in no other app, write it in eesel.

**Keep files focused.** One large file of mixed content is harder to answer from than a few focused ones.

## Things to know

* **Uploads are up to 25MB each.** Files created in eesel, and uploaded HTML files, are up to 5MB.
* **Scanned PDFs are refused.** There is no image-to-text conversion, so a PDF with no text layer fails to upload with a message saying so.
* **Only the supported formats.** PDF, Word (`.docx`), CSV, plain text, Markdown and HTML for uploads.
* **Same name, same file.** Uploading a file with an existing name overwrites it. Names that differ only in capitals or punctuation are refused until you rename one.
* **`instructions.md` is taken.** That name holds your agent's instructions, so a file can't be uploaded under it.
* **Customers get answers, not files.** By default your agent answers customers from a file but doesn't send them the file or a link to it. Your team can get the file itself.

## Troubleshooting

<details>

<summary>File not processing?</summary>

Check the format is one in the table above, and the file is not password-protected. The **Files** list shows why a file failed. For a PDF with no readable text, run it through OCR or export a text-based version.

</details>

<details>

<summary>Content not appearing in answers?</summary>

Give it a few minutes, because a large file takes time to process. Then test in the dashboard chat by asking a question that only that file answers.

</details>

## FAQ

<details>

<summary>How do I upload files to my AI agent?</summary>

Open **Files** in the left sidebar of the eesel dashboard, click the plus icon, and drag your documents in or browse for them. Your agent answers from them as soon as they are processed. You can also ask your agent in chat to take some documents, and it opens the upload for you. See [Add files to eesel](#add-files-to-eesel).

</details>

<details>

<summary>Which file types can I upload to eesel?</summary>

PDF, Word (`.docx`), CSV, plain text (`.txt`) and Markdown (`.md`), up to 25MB each, and HTML up to 5MB. Files you write in eesel are text formats such as `.md`, `.txt`, `.csv`, `.json` or `.html`, up to 5MB. See [Supported formats](#supported-formats).

</details>

<details>

<summary>Why is my agent not answering from an uploaded PDF?</summary>

A scan with no text layer fails to upload, and the **Files** list says so. Try selecting text in the PDF. If you cannot, run it through OCR or export a text-based version. A large file can also take a few minutes to process.

</details>

<details>

<summary>How do I update a file I uploaded to eesel?</summary>

Upload the new version with the same filename. It replaces the old one. You can also open a file you wrote in eesel and edit it in place.

</details>

<details>

<summary>Can my agent create files by itself?</summary>

Yes. It can create new files and edit existing ones. They appear in your **Files** list alongside the ones you made. If you both edit the same file at the same moment, your edit is kept and the agent's version is saved as a separate copy.

</details>

<details>

<summary>Can I export a file I created in eesel?</summary>

Yes. The **Export** menu downloads it in its own format, and a Markdown or HTML file also as a PDF. Ask your agent for a Word copy. An uploaded file can be copied or downloaded as the text eesel read from it.

</details>

<details>

<summary>Can I use my uploaded files from Claude or ChatGPT?</summary>

Yes, through eesel. Once your files are uploaded, you can talk to your eesel agent from Claude, ChatGPT or Cursor, and it answers from them. See [Use eesel from Claude and other assistants](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-claude-and-other-assistants.md), [Use eesel from ChatGPT](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-chatgpt.md) and [Claude Code and MCP clients](https://docs.eesel.ai/apis-and-developer-resources/claude-code-and-mcp-clients.md).

</details>

## Related pages

* [Internal operations](https://docs.eesel.ai/use-cases/internal-operations.md)
* [Website](https://docs.eesel.ai/integrations/knowledge/website.md)
* [Instructions and Memory](https://docs.eesel.ai/instructions-and-memory/instructions-and-memory.md)
* [Integrations overview](https://docs.eesel.ai/integrations/overview.md)
* [Set up from Claude Code or the terminal](https://docs.eesel.ai/getting-started/set-up-from-a-coding-agent.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eesel.ai/integrations/knowledge/uploading-files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
