> For the complete documentation index, see [llms.txt](https://guides.clickatell.com/clickatell-ai-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.clickatell.com/clickatell-ai-user-guide/training/upload-and-manage-documents.md).

# Upload and manage documents

Assistants are trained on documents that you upload and manage in the *Document Manager* tab. Each document is linked to an [assistant](/clickatell-ai-user-guide/assistants/overview.md), allowing that assistant to generate accurate and helpful responses based on specific information.

## Assistants and how they can be trained

**Scenario 1:** [General assistant](/clickatell-ai-user-guide/assistants/overview.md#general-assistant) uses general documentation for context and calls LLM for the response.

**Scenario 2:** Assistant uses its own **and** general documentation for context and calls LLM for the response.

**Scenario 3:** Assistant uses **only** its own documentation for context and calls LLM for the response.

**Scenario 4:** Assistant uses [curated responses](/clickatell-ai-user-guide/training/create-curated-responses.md) **and** its own documentation for context. If an answer is found among curated responses, it is sent directly to the end-user, bypassing the LLM.

{% hint style="info" %}
Check the "*Use General Context*" tickbox under the advanced settings when [setting up/editing your assistant](/clickatell-ai-user-guide/assistants/set-up-your-assistants.md) to ensure it uses the general assistant's general documentation in addition to its own.
{% endhint %}

## Adding documents to an assistant

1. On the *Document Manager* tab, select the [assistant ](/clickatell-ai-user-guide/assistants/set-up-your-assistants.md)you want to train from the drop-down and click *Upload*.

<figure><img src="https://3035875572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWRgvijy1ATGVCMu4fQU%2Fuploads%2FlsB3q6dqDC2x0szhJXNp%2Fimage.png?alt=media&amp;token=9e38640e-86d7-4c29-a899-90a54a19aa05" alt=""><figcaption></figcaption></figure>

2. Add the files containing the information you want to the selected assistant trained on. You can:
   * Upload PDF files, plain text files (.txt), and markdown files (.md).&#x20;
   * Enter a URL to convert a webpage to a text file (.txt).

<figure><img src="https://3035875572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWRgvijy1ATGVCMu4fQU%2Fuploads%2FAcMfb0IaGbZhKe9f0chI%2Fimage.png?alt=media&amp;token=b9e3ef94-a64e-4742-8a76-b8c6bde1ee5e" alt=""><figcaption></figcaption></figure>

You can add multiple files at once:

<figure><img src="https://3035875572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWRgvijy1ATGVCMu4fQU%2Fuploads%2Fj5xUH1SYGYe08ACXFwE7%2Fimage.png?alt=media&amp;token=7d0ac903-df67-4915-885a-98b7313d798a" alt=""><figcaption></figcaption></figure>

3. Once the upload is complete, return to the *Document Manager* page and click ***Sync**.*

{% hint style="info" %}

* After syncing, changes may take up to **5 minutes** to reflect in the assistant's answers.
* You can add/remove/disable documents at any stage. Remember to sync your changes to ensure the assistant uses the latest information.
* To update a document, remove the outdated one, upload the new one, and sync.
  {% endhint %}

4. You can disable, download, or delete the documents from the *Document Manager* tab.

<figure><img src="https://3035875572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWRgvijy1ATGVCMu4fQU%2Fuploads%2FaTCcL6CBrp2WbkZIwXem%2Fimage.png?alt=media&amp;token=3f9414b3-4cfa-4654-9187-dd8030a75190" alt=""><figcaption></figcaption></figure>
