Feedback
User feedback shows how well agents work and where they need improvement. The feedback API stores ratings and comments for individual answers. If you build your own chat interface, offer the same kind of rating buttons as the built-in chat.
How feedback is used is described in the service description.
Submit feedback
Section titled “Submit feedback”POST ${RUNTIME_BASE_URL}/v1/evaluations/feedbackAuthorization: Bearer ${RUNTIME_TOKEN}X-Tenant-ID: ${TENANT_ID}Content-Type: application/json{ "type": "rating", "data": { "rating": 1, "reason": "Accurate information", "comment": "Solved my problem.", "tags": ["maintenance"] }, "meta": { "chat_id": "conv-abc-123", "message_id": "msg-004" }}| Field | Description |
|---|---|
type | Kind of feedback, for example rating |
data.rating | The rating, as number or text. Use one scale consistently, for example 1 and -1 for thumbs up and down. |
data.reason | Optional short reason |
data.comment | Optional free text |
data.tags | Optional labels |
meta.message_id | The answer being rated: the metadata.message_id of the chat request |
meta.chat_id | Optional. The conversation. |
Always send meta.message_id. It links the feedback to the answer, so that the agent’s behavior for that answer can be analyzed later.
The response contains the stored entry with its id. Keep the id if users can change their rating later.
Manage feedback
Section titled “Manage feedback”Users can see, change and delete their own feedback:
| Operation | Request |
|---|---|
| Get one entry | GET /v1/evaluations/feedback/{id} |
| Change an entry | PUT /v1/evaluations/feedback/{id} with the same body as above |
| Delete an entry | DELETE /v1/evaluations/feedback/{id} |
| List own entries | GET /v1/evaluations/feedbacks/user |
| Delete all own entries | DELETE /v1/evaluations/feedbacks |
Evaluate feedback of all users
Section titled “Evaluate feedback of all users”Users with the service-feedback role can read, change and delete the feedback of all users, not only their own. They can also list feedback per agent:
| Operation | Request |
|---|---|
| List the instance IDs that have feedback | GET /v1/evaluations/feedbacks/models |
| List all feedback for one instance | GET /v1/evaluations/feedbacks/model/{instance_id} |
© Robert Bosch Manufacturing Solutions GmbH, all rights reserved. Corporate Information Legal notice Data protection policy