PATCH
/
chatbots
/
{chatbotId}
/
conversations
/
{conversationId}
/
messages
/
{messageId}
/
rate-ai-answer
Rate AI answer
curl --request PATCH \
  --url https://api.chatling.ai/v2/chatbots/{chatbotId}/conversations/{conversationId}/messages/{messageId}/rate-ai-answer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "rating": "<string>"
}'
{
    "status": "success",
    "data": null
}
Use this endpoint to rate an AI answer as helpful or not helpful. You can only rate AI answers generated using the Knowledge Base.

Request parameters

Path

chatbotId
string
required
The chatbot ID.
conversationId
string
required
The conversation ID.
messageId
string
required
The message ID.

Body

rating
string
required
  • 0: Remove rating
  • 1: Helpful
  • -1: Not helpful

Response

status
string
The status of the request. Will be success if the request was successful, otherwise error.
{
    "status": "success",
    "data": null
}