# Testing a chatbot

m-chat provides you the ability to test the bot before it is deployed on the production environment

## How do I test my bot?

In order to test the bot, you can follow the following steps;

* Go to '**Bot Builder**'
* '**Open**' the bot you want to test
* Click on '**Test this Bot**'

<figure><img src="/files/q5oHyIG0qhARcRIjsr43" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Once you click on '**Test this bot**', different window will open up allowing you to test the flow of the bot that you have built
{% endhint %}

{% hint style="warning" %}
You will need to allow the pop ups on your browsers in case you do not see the window opening up
{% endhint %}

{% hint style="info" %}
The link is publicly available and hence can be shared across with the other team members as well
{% endhint %}


---

# 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://helpdesk.m-chat.ai/getting-started/testing-a-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.
