# Train your AI Chatbot

<figure><img src="/files/g5y00MqoMRmgKHYMpnkV" alt="In the &#x22;Train Your AI Chatbot&#x22; page of the AI Chatbot creation process, there are options to ask questions to your AI Chatbot, see its responses, correct any wrong responses, and even upload pre-set Q&#x26;A files."><figcaption><p>In the "Train Your AI Chatbot" page of the AI Chatbot creation process, there are options to ask questions to your AI Chatbot, see its responses, correct any wrong responses, and even upload pre-set Q&#x26;A files.</p></figcaption></figure>

After uploading data and assigning a template to your AI Chatbot, it's time to help your AI Chatbot learn and evolve from its knowledge base through **training**.&#x20;

Similar to how muscles are trained and "practiced" getting used to new activities, a AI Chatbot new interactions to "practice" its responses and learn from new knowledge.

In Captivate Chat, the ***Train Your AI Chatbot*** page lets you stress-test your AI Chatbot with questions and correct any mistakes in real time.

{% hint style="warning" %}
**It only uses ingested information!**

**Train Your AI Chatbot** lets you test your AI Chatbot's understanding of your ingested knowledge. It will not reflect what you prompted in **Select Type** regarding personality and formats.

This will explain why it doesn't "respond" in a similar manner as the AI Chatbot in **Select Type**.&#x20;
{% endhint %}

{% hint style="info" %}
**Talk to your AI Chatbot - it literally uses your inputs to learn!**

Our AI Chatbots are capable of performing what's called **NLP** or natural language processing. This process combines their internal programming (machine learning) and linguistics to help them "learn" from interactions.&#x20;

Providing new questions and answers, as well as feedback, to your AI Chatbot slowly "shapes" its thought processes - allowing it to perform exactly how you need it to.&#x20;
{% endhint %}

To access the *Train Your AI Chatbot* page, click ![Click "Train" on the side bar of the AI Chatbot creation process to access the "Train Your AI Chatbot" page.](/files/LkUdSmaPfA6iy18KAi9L) on the side bar of the AI Chatbot creation process.

The *Train your AI Chatbot* page has these major components:&#x20;

***

## Enter your test question

<figure><img src="/files/ZGYk8sGaRKmu8C1GVHgq" alt="In the &#x22;Enter your test question&#x22; part of the &#x22;Train Your AI Chatbot&#x22; page, you can give your AI Chatbot a test question that it will answer."><figcaption><p>In the "Enter your test question" part of the "Train Your AI Chatbot" page, you can give your AI Chatbot a test question that it will answer.</p></figcaption></figure>

<figure><img src="/files/YMkkWE4dEX6X00EQ6tNA" alt="In the &#x22;Enter your test question&#x22; part of the &#x22;Train Your AI Chatbot&#x22; page, you can give your AI Chatbot a test question that it will answer."><figcaption><p>In the "Enter your test question" part of the "Train Your AI Chatbot" page, you can give your AI Chatbot a test question that it will answer.</p></figcaption></figure>

Write a test question in ***Enter Your Test Question*** that will gauge the Chatbot's response based on the current information in its knowledge base.

Once done, click ![Click "Submit" in the "Enter your test question" part of the "Train Your AI Chatbot" page to submit a test question to your AI Chatbot.](/files/Z1m0XWHJGS6xpHQapbtE)

***

## **Current Answer**

<figure><img src="/files/Pe9Qnj4fJhcJtAVeH0TE" alt="After you submit a test question, the &#x22;Current Answer&#x22; part of the &#x22;Train Your AI Chatbot&#x22; page will reveal your AI Chatbot&#x27;s answer according to its current knowledgebase and modified prompts."><figcaption><p>After you submit a test question, the "Current Answer" part of the "Train Your AI Chatbot" page will reveal your AI Chatbot's answer according to its current knowledgebase and modified prompts.</p></figcaption></figure>

The ***Current Answer*** will contain a response of your test question based on the Chatbot's current database.

***

## **Correct Answer**

<figure><img src="/files/Spr10BKS0t96yIVVcH2L" alt="Use the &#x22;Correct Answer&#x22; section of the &#x22;Train Your AI Chatbot&#x22; page to replace the answer of the &#x22;Current Answer&#x22; section beside it. Click &#x22;+Add to Q&#x26;A&#x22; to override the &#x22;Current Answer&#x22; with the &#x22;Correct Answer.&#x22;"><figcaption><p>Use the "Correct Answer" section of the "Train Your AI Chatbot" page to replace the answer of the "Current Answer" section beside it. Click "+Add to Q&#x26;A" to override the "Current Answer" with the "Correct Answer."</p></figcaption></figure>

Use the ***Correct Answer*** to put a new answer if the response in the *Current Answer* is wrong or has to be modified.

Once done, click ![Click "+Add to Q\&A" to override the "Current Answer" with the "Correct Answer."](/files/gqDZ1HsRc3x9M8mMGNVO)

***

## Trained Questions and Answers

<figure><img src="/files/a0YvHTbLjukGrwffGvg6" alt="The &#x22;Trained Questions and Answers&#x22; part of the &#x22;Train Your AI Chatbot&#x22; page will contain the Test Question and the Correct Answer you&#x27;ve just submitted."><figcaption><p>The "Trained Questions and Answers" part of the "Train Your AI Chatbot" page will contain the Test Question and the Correct Answer you've just submitted.</p></figcaption></figure>

The ***Trained Questions and Answers*** segment contains the list of Questions, Correct Answers, and Messages that have been inserted by the user.&#x20;

### **+Add with CSV**

Insert your own list of questions and answers as a CSV file instead of manually typing them.  To do this, click ![Click the "+Add with CSV" button to submit a CSV spreadsheet file containing Q\&As that your AI Chatbot will refer to.](/files/u8DOOwFh9JxHKwulb5oW).

<figure><img src="/files/yywcqFHjVn4qXu7F6WdJ" alt=""><figcaption><p>Use the "Submit Additional Q&#x26;A" window to upload a CSV spreadsheet of Q&#x26;A pairs you want your AI Chatbot to use. Click the "+Add Q&#x26;A" button after uploading your CSV file to officially insert your Q&#x26;A pairs into your AI Chatbot via the "Train Your AI Chatbot" page.</p></figcaption></figure>

After clicking ![Click the "+Add with CSV" button to submit a CSV spreadsheet file containing Q\&As that your AI Chatbot will refer to.](/files/akIbcdmFWFIsRflhifkT), a pop-up window should appear.

In the ***Submit additional Q\&A*** windo&#x77;**:**&#x20;

* Drag the appropriate CSV (up to 100MB) containing the list of training questions and answers.
* Click ![Use the "Submit Additional Q\&A" window to upload a CSV spreadsheet of Q\&A pairs you want your AI Chatbot to use. Click the "+Add Q\&A" button after uploading your CSV file to officially insert your Q\&A pairs into your AI Chatbot via the "Train Your AI Chatbot" page.](/files/KwI5zBffYFMTJ0ULDhTy)

### CSV Format

<figure><img src="/files/uev6f5Vts5yc0EAjt0KS" alt="A preview of a CSV file in the form of a spreadsheet that can be uploaded into the +Add Q&#x26;A window of the Train Your AI Chatbot page when creating an AI Chatbot. Notice how Column A is delegated to a question and Column B is assigned to contain answers with no complex formatting."><figcaption><p>A preview of a CSV file in the form of a spreadsheet that can be uploaded into the +Add Q&#x26;A window of the Train Your AI Chatbot page when creating an AI Chatbot. Notice how Column A is delegated to a question and Column B is assigned to contain answers with no complex formatting.</p></figcaption></figure>

When uploading a CSV file to the *+Add Q\&A* window of the *Train Your Chatbot* page, there's no need for complex formatting. As a CSV or **comma separated values** file, you can simply upload a file containing the following:

* **Spreadsheet:** You can create a simple spreadsheet where Column A lists questions and Column B lists answers. Similar to a traditional spreadsheet, the items in Column B will answer the questions beside them in Column A. It should appear like this:

| Questions                                     | Answers |
| --------------------------------------------- | ------- |
| How many letters are in the English alphabet? | 26      |
| What color is an apple?                       | Red     |

* **CSV Plain Text:** You can upload a CSV plain text file containing header row followed by a set of data rows. Columns are separated by commas and rows are separated by line breaks.  The above table can be converted into this plain text format, and then saved as CSV:

```
Questions, Answers
How many letters are in the English alphabet?, 26
What color is an apple?, Red
```

***


---

# 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://manual.captivatechat.ai/start-creating/create-an-ai-chatbot/train-your-ai-chatbot.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.
