# Document

Once you've created a topic, the next step is to provide content for it. This content will consist of several documents that contain the knowledge used to train the bot. The bot then analyzes and selects relevant information from these documents in order to provide answers to related questions.

Select and click on the specific topic, and the interface will display the screen to add documents to the topic

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2FFfzjwmspWNYXQbP6oKBA%2Fimage.png?alt=media&#x26;token=f76f09b7-4867-44b8-a520-374614488d24" alt=""><figcaption><p>Interface to add documents for topic</p></figcaption></figure>

To add new documents, use the **'Add Document'** button at the top left of the screen to display the '**ADD DOCUMENT'** pop-up

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2F4jNAkhtmJMEanekhYrlX%2Fimage.png?alt=media&#x26;token=d8c91441-072c-4168-b5a0-5deacc1484f0" alt=""><figcaption><p>'<strong>ADD DOCUMENT'</strong> pop-up</p></figcaption></figure>

Enter the name of your document

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2Fq0UIRkEryu5H2mAmt7jy%2Fimage.png?alt=media&#x26;token=5f260816-5dde-44c1-ba5a-1295d47f8d53" alt=""><figcaption><p>Click and enter a document name, or skip to get the default name</p></figcaption></figure>

The document should be named for convenience of storing and searching, with a short and accurate name.

* Please make sure to enter the required document content. This content will be used by the chatbot to analyze and develop responses to customers' queries. Therefore, it is important to enter the content in a comprehensive, detailed, and consistent manner. The more consistent and rich the data, the clearer and more accurate the Bot's response will be.&#x20;

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2FWdJ1hqRsWoBQj85s4pZC%2Fimage.png?alt=media&#x26;token=7b80454e-dd6c-4a6b-b183-280cc6cf6e07" alt=""><figcaption><p>Enter content of document</p></figcaption></figure>

The input content is limited to 1,400 tokens. The amount of tokens will depend on the account package that the user has registered

After entering the data content -> Click **Add** to save the created content

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2FHAIGOgxBX61AesTaWD2u%2Fimage.png?alt=media&#x26;token=c6603fdc-0b34-48be-9b6d-d539d9a69388" alt=""><figcaption><p>Click <strong>Add</strong> to save the created content</p></figcaption></figure>

After creating the document, the list of created documents will be displayed on the topic screen

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2FyGLAdVv1M3OAhCD3Zun7%2Fimage.png?alt=media&#x26;token=a1aa94c5-1f4e-4e51-8ba1-12c62700e980" alt=""><figcaption><p>Created document list</p></figcaption></figure>

The documents, after being created, will be automatically trained for the Bot.&#x20;

Only when the data is successfully trained can the bot use this data as a reference data source.

If there is an error while training, you need to re-train the bot by clicking the Retrain button<img src="https://content.gitbook.com/content/xKm9k8XBKg4q6QdkW4P1/blobs/IVWf2FiVzQTCP3K8WZv8/image.png" alt="" data-size="line">

\---

**Edit document**

To edit the document, click on the Options button "..." to select the **Edit** document

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2FzNY1Se6h0r8UnNmHxTNl%2Fimage.png?alt=media&#x26;token=2995a29c-45d7-4632-af68-4c20603d0010" alt=""><figcaption><p>Click on the Options button "..." to select the <strong>Edit</strong> document</p></figcaption></figure>

After click on **Edit** -> the system will display the **Edit Content** pop-up

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2FnABU1GPwgFc7txXVttTx%2Fimage.png?alt=media&#x26;token=fa8bea29-4c05-41cf-b396-16ebffc738b3" alt=""><figcaption><p>Enter the content need to change -> click on <strong>Edit</strong> button to save changes</p></figcaption></figure>

\---

**Remove document**

<figure><img src="https://3402843854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxKm9k8XBKg4q6QdkW4P1%2Fuploads%2F7cH9Asvex9IgmARhALrX%2Fimage.png?alt=media&#x26;token=c59a6cfd-22bc-43d0-a525-ed80a73b8965" alt=""><figcaption><p>Click on the Options button "..." to select the <strong>Remove</strong> document</p></figcaption></figure>

To delete the document, click on the Options button "..." to select **Remove** -> the system will display a pop-up to confirm whether you are sure to remove the topic or not

Since the removal cannot be undone, you must take caution to avoid data loss and time-consuming fixes.
