> For the complete documentation index, see [llms.txt](https://documentation.proto.cx/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.proto.cx/docs/modules/ai-agents/workflows-and-actions/collect-feedback.md).

# Collect feedback

`Action` — Used under the Chat closed trigger to automatically gather satisfaction data at the end of every live agent conversation.

## What it does

Solicits a star rating, a survey, or both from the person after a live agent closes the conversation. Results are stored as chat variables.

## When to use it

Under the [Chat closed](/docs/modules/ai-agents/workflows-and-actions/chat-closed.md) trigger, to gather CSAT data automatically at conversation end.

## Settings

The action panel has three tabs.

{% tabs %}
{% tab title="Rating" %}

| Setting                    | Description                                                                                                                                                           |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Enable rating**          | Toggles the star rating on or off.                                                                                                                                    |
| **Webchat rating title**   | The prompt shown above the emoji rating scale on Webchat. Default: "Please rate the conversation".                                                                    |
| **Rating request message** | The message sent to collect the rating on non-Webchat channels. Buttons labelled 1–5 appear below it. On Bitrix24 and Africa's Talking the person must type a number. |
| **Set chat variable**      | Stores the submitted rating. Default variable name: `feedback_rating`.                                                                                                |
| {% endtab %}               |                                                                                                                                                                       |

{% tab title="Survey" %}

| Setting           | Description                                                                                                                              |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| **Enable survey** | Toggles the post-chat survey on or off.                                                                                                  |
| **Add field**     | Adds a survey question. Each field has a Question, Required toggle, Reply type, Webchat placeholder, and a variable to store the answer. |
| {% endtab %}      |                                                                                                                                          |

{% tab title="Settings" %}

| Setting                      | Description                                                                                        |
| ---------------------------- | -------------------------------------------------------------------------------------------------- |
| **Feedback submission text** | The confirmation message sent once feedback is submitted. Default: "Thank you for your feedback!". |
| {% endtab %}                 |                                                                                                    |
| {% endtabs %}                |                                                                                                    |

Press **Save** to confirm edits.

## Localisation

All text fields are localised per language. Use the language dropdown to enter content for each configured language.

## Example

```
Chat closed
└─ Collect feedback
   Rating
   • Webchat title:   "How did we do?"
   • Variable:        feedback_rating
   Survey
   • Question:        "Any other comments?"
   • Reply type:      Open response
   • Variable:        feedback_comment
   Settings
   • Submission text: "Thank you for your feedback!"
```

## Related

{% content-ref url="/pages/pRsDQLCSRoKysEAaAhvJ" %}
[Chat closed](/docs/modules/ai-agents/workflows-and-actions/chat-closed.md)
{% endcontent-ref %}
