Skip to content

Update feedback on a response

Updates feedback for a response.

PATCH /agents/{agentId}/conversations/{conversationId}/response/{responseId}/feedback/{feedbackId}

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.


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);
Response
{
"id": "fb_abc123",
"rating": "negative",
"comment": "That was not quite right."
}
curl -X PATCH "https://app.inconvo.ai/api/v1/agents/agt_123/conversations/convo_abc123/response/resp_abc123/feedback/fb_abc123" \
-H "Authorization: Bearer $INCONVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"rating": "negative",
"comment": "That was not quite right."
}'
Response
{
"id": "fb_abc123",
"rating": "negative",
"comment": "That was not quite right."
}