Create feedback for a response
Attach feedback to an Inconvo response.
POST /agents/{agentId}/conversations/{conversationId}/response/{responseId}/feedback
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 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.agents.conversations.response.feedback.create( "resp_abc123", { agentId: "agt_123", convo_id: "convo_abc123", rating: "positive", comment: "Great answer thanks!" });
console.log(feedback);{ "id": "fb_abc123", "rating": "positive", "comment": "Great answer thanks!"}