# Adding Human Feedback

Improving your AI's performance by training it with direct feedback is a straightforward process. This tutorial will guide you through the steps to effectively train your bot when it provides incorrect or unsatisfactory answers. By following these instructions, you can help your AI learn from its mistakes, enhancing its ability to respond accurately in future interactions.

### Step 1: Find the question that needs feedback

Begin by navigating to Dashboard and click on [Conversations](/docs/dashboard/conversations.md). You can use the Search Bar to find the question. You can type the entire question, or keywords of the question or simply the ticket id. You can also type keywords from the answer to search.

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

### Step 2: Check answer sources

Click on "Answer Sources" attached with the answer to understand what documents were used by the AI to generate that answer. Food for Thought: Can fixing the documents in knowledge base help the AI return correct answer?

<figure><img src="/files/2DarZ48BOrD51Qjt8tY4" alt=""><figcaption></figcaption></figure>

### Step 3: Provide Answer Feedback

Click "Provide Answer Feedback" and a window will appear with a text box to type the feedback in. You can provide feedback in the form of hints to the AI or you can provide an entire answer as well. The AI gives high priority to human feedback!

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

### Step 4: Save Feedback

After typing your feedback, click "Add Answer" button to save the feedback. The AI will learn from the feedback in "Near Real Time". Alhena will automatically generate a new FAQ that will be used to answer any similar questions

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

You can view the generated FAQ and make any manual adjustments to your knowledge base.

<figure><img src="/files/9vPvp7drGtiGuFCoF7u9" alt=""><figcaption></figcaption></figure>

### Viewing all generated FAQs

From the AI settings page, you can click the "FAQ" tab, and see both any FAQs that have been generated from your feedback, or any you've manually added. For more information on this page, and how you can manually add information or manage conflicting information, see [Adding FAQs](/docs/ai-configuration/tuning/adding-faqs.md).

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

Here is a video explaning all of this in detail:

{% embed url="<https://www.loom.com/share/a07cfd7d136744d1ac4c7c2973738677>" %}


---

# 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://alhena.gitbook.io/docs/ai-configuration/tuning/human-feedback.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.
