Overview
The feedback submission endpoints allow users to provide feedback on assistant responses through a simple thumbs up/down mechanism. When auto-approval is enabled, positive feedback automatically creates golden examples for continuous model improvement.Feedback Lifecycle
Feedback goes through the following states:- Pending - Initial state when feedback is submitted
- Auto-approved - Automatically approved based on settings (creates golden example)
- Reviewed - Manually reviewed and resolved by admin (creates golden example)
- Dismissed - Reviewed but not used for improvement
When auto-approval is enabled for a feedback type, golden examples are automatically created upon submission, allowing the system to learn from user preferences in real-time.
Submit Feedback
Request Body
ID of the message being rated
Type of feedback. Must be either
positive or negativeOptional reason for the feedback. May be required based on settings
Response
Unique identifier for the feedback
ID of the message that was rated
ID of the user who submitted the feedback
Type of feedback:
positive or negativeThe reason provided for the feedback
Current status:
pending, auto_approved, reviewed, or dismissedID of the admin who reviewed the feedback (null if not reviewed)
Timestamp when the feedback was reviewed (null if not reviewed)
Timestamp when the feedback was created
Example Request
Example Response
If auto-approval is enabled for this feedback type, the status will be
auto_approved and a golden example is automatically created in the background.Get Feedback for Message
Path Parameters
ID of the message to get feedback for
Response
Returns aFeedbackResponse object if feedback exists, or null if the user hasn’t provided feedback for this message.
Unique identifier for the feedback
ID of the message that was rated
ID of the user who submitted the feedback
Type of feedback:
positive or negativeThe reason provided for the feedback
Current status:
pending, auto_approved, reviewed, or dismissedID of the admin who reviewed the feedback
Timestamp when the feedback was reviewed
Timestamp when the feedback was created
Example Request
Example Response
Example Response (No Feedback)
Error Responses
400 Bad Request
Returned when the request is invalid:401 Unauthorized
Returned when authentication is missing or invalid:404 Not Found
Returned when the message doesn’t exist:500 Internal Server Error
Returned when an unexpected error occurs:Best Practices
Check Existing Feedback
Use the GET endpoint to check if the user has already provided feedback before showing the feedback UI.
Provide Context
Include a meaningful reason when submitting negative feedback to help improve responses.
Handle Auto-Approval
Be aware that positive feedback may be auto-approved based on settings, immediately contributing to model improvement.
Error Handling
Implement proper error handling for network failures and validation errors.
Auto-Approval System
The auto-approval system allows organizations to automatically create golden examples from user feedback:- Positive Feedback: When auto-approved, the original response becomes a golden example
- Negative Feedback: Can be auto-approved with admin review for the corrected response
- Settings Control: Admins can configure auto-approval per feedback type via settings endpoints