Skip to content

Create feedback for a response

Attach feedback to an Inconvo response.

POST /conversations/:id/response/:response_id/feedback

response_id string required

The ID of the response to create feedback on.


rating enum required

The feedback rating for the response.

Allowed values: "positive" or "negative".


comment string

A comment for providing additional explanation regarding feedback.

Request
import Inconvo from "@inconvoai/node";
const inconvo = new Inconvo({
apiKey: process.env.INCONVO_API_KEY
});
const feedback = await inconvo.conversations.response.feedback.create(
"resp_abc123",
{
id: "convo_abc123",
rating: "positive",
comment: "Great answer thanks!"
}
);
console.log(feedback);
Response
{
"id": "fb_abc123",
"rating": "positive",
"comment": "Great answer thanks!"
}
curl -X POST 'https://app.inconvo.ai/api/v1/conversations/convo_abc123/response/resp_abc123/feedback' \
-H "Authorization: Bearer $INCONVO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"rating": "positive", "comment": "Great answer thanks!"}'
Response
{
"id": "fb_abc123",
"rating": "positive",
"comment": "Great answer thanks!"
}