Create feedback for a response
Attach feedback to an Inconvo response.
POST /conversations/:id/response/:response_id/feedback
Path Parameters
Section titled “Path Parameters”response_id string
required
The ID of the response to create feedback on.
Body Parameters
Section titled “Body Parameters”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);
{ "id": "fb_abc123", "rating": "positive", "comment": "Great answer thanks!"}