Skip to content

Create feedback for a response

Attach feedback to an Inconvo response.

POST /agents/{agentId}/conversations/{conversationId}/response/{responseId}/feedback

agentId string required

The agent id

conversationId string required

The conversation id

responseId 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.agents.conversations.response.feedback.create(
"resp_abc123",
{
agentId: "agt_123",
convo_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/agents/agt_123/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!"
}