# 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/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/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/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/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/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>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.clickatell.com/clickatell-ai/training/upload-and-manage-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
