> For the complete documentation index, see [llms.txt](https://docs.wonderchat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wonderchat.io/setup-guides/training-your-chatbot/training-on-custom-instructions-and-q-and-as.md).

# Training on Custom Instructions and Q\&As

How to train your AI chatbot on raw text and Q\&A information.

By adding FAQs as a data source, you can paste questions and answers, internal notes, policies, product descriptions or any other written content straight into Wonderchat.

This gives your agent immediate access to custom knowledge without a URL or file upload, and lets you keep answers accurate and tailored to your business.

***

### Step 1: Open your agent's Data Source tab

Go to **Agents** and click **Edit** on your agent's card. Open the **Data Source** tab.

### Step 2: Choose FAQ

In the list of sources, choose **FAQ**, then click **Add**. The **Add FAQ** window opens.

### Step 3: Add your text

* **Title** (optional): a short name for the FAQ, for example "Business hours".
* **Content**: paste or write your text. Questions with their answers work best, for example:

  ```
  Q: What are your business hours?
  A: Monday to Friday, 9am to 5pm.
  ```

  You can also add knowledge-base articles, guidelines, product descriptions, policies or internal documentation, as plain text or markdown.

Click **Add FAQ** when you're done.

To add many FAQs at once, click **Import CSV**. Click **Export CSV** to download the ones you have.

### Step 4: Test the agent

* Ask a few questions about the text you added to check the agent answers correctly.
* If something seems off, edit the FAQ from its row in the list, refine the text or add more context.

***

## Messages while searching

While your agent looks for an answer, the chat widget shows typing dots with "Searching knowledge base" underneath. You can replace that with your own messages, for example "Checking our help center..." or "Reading the order policy...".

1. Go to **Agents** and click **Edit** on your agent's card.
2. Open **Model & Behavior** and scroll to **Answers**.
3. Under **Messages while searching**, type one message per line. You can add up to 10, each up to 80 characters. If you add more than one, they rotate.
4. Click **Save**.

Leave the box empty to go back to "Searching knowledge base".

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-4c45299e1e7d7be39204699f4f19404683612d0e%2Fmessages-while-searching.png?alt=media" alt="The Answers section of Model &#x26; Behavior with the Messages while searching box"><figcaption><p>Messages while searching, under Model &#x26; Behavior → Answers</p></figcaption></figure>

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>
