Documentation Index
Fetch the complete documentation index at: https://mintlify.com/helicone/helicone/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Session Feedback endpoint allows you to capture user ratings for sessions. This is useful for tracking session quality, user satisfaction, and identifying areas for improvement in your AI applications.Path Parameters
The unique identifier of the session to add feedback to
Request Body
The feedback rating for the session
true: Positive feedback (thumbs up)false: Negative feedback (thumbs down)
Response
Returns
null on successError message if the request failed,
null otherwiseExample Request
Example Response (Success)
Example Response (Error)
How It Works
When you submit feedback:- The system finds the first request in the session (by creation time)
- Adds a
Helicone-Session-Feedbackproperty to that request - The value is stored as “1” for positive feedback or “0” for negative feedback
Use Cases
Collect User Satisfaction
Add thumbs up/down buttons in your application to capture user sentiment:Track Session Quality
Combine feedback with session metrics to understand quality:A/B Testing
Track feedback across different model versions or prompts:Error Handling
Common error scenarios:- “No request found”: The session ID doesn’t exist or belongs to a different organization
- 500 status: Database error or invalid session ID format
Best Practices
- Immediate feedback: Collect feedback as soon as a session completes while the experience is fresh
- Optional feedback: Don’t require users to provide feedback - make it optional
- Context: Consider adding additional context beyond binary ratings using custom properties
- Analytics: Regularly analyze feedback trends to improve your application
- Follow-up: For negative feedback, consider prompting users for additional details
Related Endpoints
- Query Sessions - Filter sessions by feedback rating
- Query Session Metrics - Analyze sessions with metrics
