Create Agent Response Feedback
POST
/v2/api/agent-response/{agent_response_id}/feedback
Agent Response
How This Endpoint Works
agent_response_id
as a path parameter to identify the agent response being reviewed.Key Features
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//feedback' \
--header 'Content-Type: application/json' \
--data-raw '{
"vote_type": "upvote"
}'
Response Response Example
{
"success": true,
"message": "Agent Response Feedback Created Successfully.",
"data": {
"id": 10932,
"comments": [
{
"comment": "Testing comment",
"created_by": "user@example.com",
"created_on": "2025-01-28T21:30:17.368939Z"
}
],
"feedback": [
{
"is_upvote": true,
"is_downvote": false
}
],
"question": "Can you tell me how RAG works from the sources given?",
"response": {
"query": "Explain how Retrieval-Augmented Generation (RAG) works.",
"answer": "Retrieval-Augmented Generation (RAG) is a technique in natural language processing that enhances the capabilities of generative language models by integrating real-time data retrieval...",
"run_id": "4c0c5eb6-1902-4b26-97f3-448bcb7ba31f",
"history": [
{
"bot": "Retrieval-Augmented Generation (RAG) is a technique in natural language processing...",
"user": "Can you tell me how RAG works from the sources given?"
}
],
"indexes": [],
"sources": "[0]",
"success": true,
"cache_hit": false,
"agent_mode": "",
"corpus_ids": [
645
],
"references": [
{
"url": "Introduction to RAG1738098993.txt",
"order": 1,
"number": 0
}
],
"instructions": [],
"total_tokens": 4757,
"prompt_prefix": "",
"prompt_tokens": 4277
}
}
}
Request
Path Params
agent_response_id
integerÂ
required
Body Params application/json