> 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="/files/admK6eoKAFKzU7HqgGvw" 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="/files/UacIxnqktAVMIxaKZiZn" alt=""><figcaption></figcaption></figure>

You can add multiple files at once:

<figure><img src="/files/fkICciGWgEVDOknI2WaB" 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="/files/jmH4K2JmlwukJT9HYtnl" alt=""><figcaption></figcaption></figure>
