Add Comment Feedback
POST
/chat/comment/{id}
Chat APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/chat/comment/' \
--header 'Content-Type: application/json' \
--data-raw '{
"comment": "This response wasn'\''t helpful",
"created_by": "alex@example.com"
}'
Response Response Example
{
"id": 1,
"comments": [
{
"id": 81,
"comment": "This response wasn't helpful",
"created_by": "alex@example.com",
"created_on": "2024-09-19T21:19:39.217733Z",
"chat_log": 1
}
],
"feedback": [
null
],
"question": "What are some strategies for conflict resolution?",
"response": {
"query": "Effective conflict resolution strategies",
"answer": "To prioritize the relationship during conflict resolution, focus on clear communication, being willing to compromise, and avoiding personal attacks.",
"sources": [
"conflict-resolution-guide.pdf"
],
"thoughts": "Resolved based on resources and strategies found in provided documents.",
"cache_hit": false
},
"created_by": "john.doe@example.com",
"created_on": "2024-01-20T01:47:19.751813Z",
"is_deleted": true,
"total_tokens": 5299,
"prompt_tokens": 4955,
"completion_tokens": 344,
"cache_hit": false,
"query_source": "web",
"message_id": null,
"chat_thread": 4,
"agent": 16,
"user": 2,
"llm_config": 8
}
Request
Path Params
id
integer
required
Body Params application/json