Answer feedback (thumbs up / down)
Under each agent answer, two buttons let users say whether the answer is good or needs improvement. Feedback is reviewed in Monitoring → Feedback, then turned into test questions or FAQ entries: what users report feeds the evaluations and the knowledge base directly.
In a conversation
- Thumbs up: the answer is good. A second click removes the rating.
- Thumbs down: a dialog opens with a comment ("wrong information, missing source…") and, optionally, the right answer written by the user. It can be reopened to edit or remove the rating.
Each member has one rating per answer; changing it puts the feedback back "To review". The buttons are not shown in assistants embedded in a website (widget).
When feedback is given, the question, the answer and the titles of the cited sources are copied, so the review keeps its context even if the conversation is deleted later.
Review in Monitoring
Page Monitoring → Feedback, for workspace admins. At the top: thumbs up, thumbs down and feedback to review. The list filters by rating, state (to review, added to tests, added to a FAQ, dismissed) and agent.
Clicking a feedback opens its detail: question, answer, sources, comment and corrected answer. The reference answer is prefilled with the user's correction, else with the answer itself when it was rated good; it can be edited. Three actions:
| Action | Effect |
|---|---|
| Add to test questions | Adds the question to the chosen set, with the reference answer as expected answer (4,000 characters at most). For an answer rated good, its sources become the expected sources. Limit of 100 questions per set. |
| Add to FAQ | Creates an entry in the chosen FAQ knowledge base: the question as standard question, the reference answer as answer. A reference answer is required. |
| Dismiss / Back to review | Files the feedback without creating anything, or puts it back in the queue. |
API
| Method | Route | Purpose |
|---|---|---|
PUT | /api/v1/sessions/:id/messages/:message_id/feedback | Give or change one's rating: {"rating": 1 or -1, "comment": "", "corrected_answer": ""} |
DELETE | /api/v1/sessions/:id/messages/:message_id/feedback | Remove one's rating |
GET | /api/v1/sessions/:id/feedback | One's ratings in a conversation |
GET | /api/v1/feedback?rating=&status=&agent_id=&page=&page_size= | Workspace feedback list (admins) |
POST | /api/v1/feedback/:id/eval | {"set_id": "...", "answer": ""} |
POST | /api/v1/feedback/:id/faq | {"knowledge_base_id": "...", "answer": ""} |
POST | /api/v1/feedback/:id/status | {"status": "dismissed"} or {"status": "new"} |
Conversation routes require read access to the conversation (API key: chat capability). Review routes require the admin role (API key: evaluations capability).
Feedback is stored in the message_feedback table (migration 000144, SQLite 000061).