Update feedback on a response
Updates feedback for a response.
PATCH /agents/{agentId}/conversations/{conversationId}/response/{responseId}/feedback/{feedbackId}
Path Parameters
Section titled “Path Parameters”agentId string required
The agent id
conversationId string required
The conversation id
responseId string required
The ID of the response to update feedback on.
feedbackId string required
The ID of the feedback to update.
Body Parameters
Section titled “Body Parameters”rating enum
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 updatedFeedback = await inconvo.agents.conversations.response.feedback.update( "fb_abc123", { agentId: "agt_123", convo_id: "convo_abc123", response_id: "resp_abc123", rating: "negative", comment: "That was not quite right." });
console.log(updatedFeedback);{ "id": "fb_abc123", "rating": "negative", "comment": "That was not quite right."}