End-user feedback
When your app shows users a thumbs up / down (or a comment box) under an agent’s answer, send it to Morse and it appears on that trace, in the traces list, and on the agent’s page.
Feedback is a separate quality signal. It never changes a trace’s outcome or success rate. A thumbs-down on a run your code marked successful stays a successful run with one thumbs-down beside it.
Send feedback
Use an API key with the write scope and the trace’s trace_id:
curl -X POST https://api.morsehq.dev/api/v1/traces/$TRACE_ID/feedback \
-H "Authorization: Bearer $MORSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"score": -1, "comment": "It booked the wrong flight", "user_id": "usr_123"}'| Field | Required | Meaning |
|---|---|---|
score | yes | 1 thumbs up, -1 thumbs down, 0 neutral (comment only) |
comment | no | Free text, up to 2,000 characters |
user_id | no | Your end user’s id. Sending again with the same id replaces theirs |
Without a user_id, each call adds a new entry. A trace_id from another workspace returns 404.
Where it shows up
- Traces list: a Feedback column with thumbs-up / thumbs-down counts, and an End-user feedback option under More filters.
- Trace detail: each entry with its comment, end user, and time.
- Agent detail: last-30-day totals and the latest comments.
There is no SDK helper yet; call the endpoint from wherever your app collects the feedback.
Last updated on