Create Agent Response Comment
POST
/v2/api/agent-response/{agent_response_id}/comment
Agent Response
How This Endpoint Works
agent_response_id
as a path parameter.How to View Agent Response ID
View Agent Response / Chat Log ID Guide
Complete Guide on Managing Agent Responses & Comments
Complete Guide on Agent Responses & Chat Logs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/api/agent-response/2/comment' \
--header 'Content-Type: application/json' \
--data-raw '{
"comment": "Hz8 Testing comment"
}'
Response Response Example
200 - Example 1
{
"success": true,
"message": "Comment Created Successfully!",
"data": {
"id": 2,
"comments": [
{
"comment": "Hz8 Testing comment",
"created_by": "function-app@ejento.ai",
"created_on": "2025-03-24T03:12:53.923684Z"
}
],
"feedback": [],
"question": "Write some test cases in python to automate by authenticating first as a user with some credentials",
"response": {
"query": "'Python test cases for API authentication with user credentials'",
"answer": "Sorry, couldn't find the answer in the provided documents.",
"indexes": [],
"sources": "",
"cache_hit": false,
"references": [],
"total_tokens": 1538,
"prompt_tokens": 727,
"completion_tokens": 811,
"followup_questions": [
"",
"",
""
]
},
"created_by": "sshaikh@example.com",
"created_on": "2024-01-20T03:53:07.848919Z",
"is_deleted": false,
"total_tokens": 1538,
"prompt_tokens": 727,
"completion_tokens": 811,
"cache_hit": false,
"query_source": "web",
"message_id": null,
"cost": "0.00769",
"pinned": false,
"chat_thread": 2,
"agent": 17,
"user": 2,
"llm_config": 8
}
}
Request
Path Params
agent_response_id
integerÂ
required
Example:
2
Body Params application/json