# Update Chat Feedback

Update the feedback status (Good/Bad) for a specific chatlog. This helps improve your chatbot by tracking user satisfaction.

## Endpoint

```
POST https://app.wonderchat.io/api/v1/update-chat-feedback
```

## Request Parameters

| Parameter   | Type   | Required | Description                                  |
| ----------- | ------ | -------- | -------------------------------------------- |
| `apiKey`    | string | ✅ Yes    | Your API key                                 |
| `chatlogId` | string | ✅ Yes    | The ID of the chatlog to update feedback for |
| `feedback`  | string | ✅ Yes    | Feedback value: `"GOOD"` or `"BAD"`          |

## Example Request

```bash
curl --location --request POST 'https://app.wonderchat.io/api/v1/update-chat-feedback' \
--header 'Content-Type: application/json' \
--data-raw '{
  "apiKey": "YOUR_API_KEY",
  "chatlogId": "YOUR_CHATLOG_ID",
  "feedback": "GOOD"
}'
```

## Feedback Values

| Value  | Description                                      |
| ------ | ------------------------------------------------ |
| `GOOD` | Positive feedback - the response was helpful     |
| `BAD`  | Negative feedback - the response was not helpful |

## Use Cases

* **Quality Monitoring**: Track chatbot performance over time
* **Training Data**: Use feedback to improve chatbot responses
* **Analytics**: Generate reports on user satisfaction
* **A/B Testing**: Compare different chatbot configurations


---

# 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://docs.wonderchat.io/api-reference/update-chat-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.
