# Flag and Train

Orimon AI platform offers an intuitive and powerful solution for continuous learning. One of its key features is the Flagging Feature that enables users to flag incorrect responses during test chats or from chat history. The flagged responses are then marked and made available for simple correction in the training section. This feature helps to enhance the chat-bot's knowledge by enabling trainers to update the correct responses and train the bot for better performance.

To use this feature, follow these simple steps:

## Step 1 - Flag Responses during testing

During test chats invoked either from testing page on Orimon Dashboard or using test bot links, if you or your team comes across any response that doesn't seem right and needs to be corrected, click on the "**Edit & Train**" button visible on the respective response message.

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

Following this, a prompt will open-up asking you to make the necessary modifications to the Chat-bot's output.

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

Once you have made the necessary changes, you can either "**Save**" this change for training later or click on "**Save & Train**" to train the changes now.

## Step 2 - Flag Incorrect Responses from History

From chat history, select the message that needs to be corrected and click on the "**Flag**" button.

<figure><img src="/files/6thAFEwNe0uv51hTnjYW" alt=""><figcaption></figcaption></figure>

Following this, a prompt will open-up asking you to make the necessary modifications to the Chat-bot's output.

<figure><img src="/files/11uF4jx9xKU6ZJnnsEqP" alt=""><figcaption></figcaption></figure>

Once you have made the necessary changes, you can either "**Save**" this change for training.

## Step 3 - Navigate to Training History Page

All the query-response pairs which are flagged in previous steps will be visible in the training history section and collated together for correction.

Go to the "**Test & Train**" page once again -> the click on "**History**" at the top of your chat-bot.

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

A dialog box will then open up as follows.

<figure><img src="/files/4XR7idScDvFJg04vq7Fj" alt=""><figcaption></figcaption></figure>

## Step 5 - Train Corrected Responses

Once all the flagged messages have been corrected, train the bot with the updated responses.Once training is successfully completed you will be redirected to testing screen where you can verify your bot with the updated knowledge you have trained with.

## Extras : Bot Training Opportunities

Navigate to **Chat History** -> **Bot Training Opportunities**

This section serves as a focal point for refining your bot's intelligence. Here, you'll find interaction pairs flagged for review either by user feedback or our AI observability feature.

**How It Works:**

* **User Message:** The user's initial message that triggered the bot's response. Bot Response: The bot's reply that has been flagged for review.&#x20;
* **Feedback Source:** Indicates whether the feedback was provided by a user or identified through AI analysis.&#x20;
* **Issue Identified:** A brief description of the potential issue with the bot's response. Action Taken: Current status of the interaction, such as updated, pending, or dismissed.&#x20;
* **Train/Ignore:** Options for how to proceed with the flagged interaction, suggesting whether to refine the bot's response or not prioritise it. Use these insights to continuously enhance your bot's accuracy and relevance. Each adjustment is a step towards a more intelligent and reliable chat-bot for your users.


---

# 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://orimon.gitbook.io/docs/product-guides/flag-and-train.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.
