Ejento APIs
V1
  • V2
  • V1
  1. Chat APIs
Ejento APIs
V1
  • V2
  • V1
  • Overview
  • Endpoints
    • Chat APIs
      • Run Chat
        POST
      • Create Custom Instructions
        POST
      • Add Comment Feedback
        POST
      • Add Upvote Feedback
        POST
      • Add Downvote Feedback
        POST
      • Get Chat Thread
        GET
      • Get Thought Process
        GET
      • Get Supporting Content
        GET
      • Get All Agent Threads
        GET
    • Agent APIs
      • Get Recent Agents
      • Add to Recent Agents
      • Delete Recent Agent
      • Get Starred Agents
      • Delete Starred Agents
      • Get Agents by Team or User Team
      • Create a Review for an Agent
      • Get Agent Reviews
      • Update an Agent Review
      • Delete an Agent Review
      • Create Agent Chat
      • Get Agent Ratings
      • Toggle Rating
      • Create Agent Alias
      • Get All Agent Alias
      • Update Agent Alias
      • Get Agent Access Level
      • Update Agent Access Level
      • Get All Agents by Project
      • Get Agent Types
      • Update Agent Type
      • Get User Agent or User Agent Permission
    • Project APIs
      • Create New Project
      • Get All Projects
      • Get Project Details by ID
      • Edit Project By ID
      • Delete Project By ID
      • Add Recent Project
      • Get Recent Projects
      • Fetch Project Details
      • Add User to Project
      • Remove User from Project
      • Get User Projects For Team
    • Document APIs
      • Get Document By ID
      • Edit Document By ID
      • Delete Document By ID
    • Corpus APIs
      • Get All Corpus
      • Create Corpus
      • Get Corpus by ID
      • Edit Corpus
      • Delete Corpus
      • Get Corpus Permissions
      • Create Corpus Permissions
      • Delete Corpus Permissions
      • Get Corpus Permission By User
      • Create Document In Corpus
      • Get All Documents From Corpus
      • Delete All Documents
      • Check Duplicate Documents
    • Evaluation APIs
      • Create Evaluation Test
      • Get All Evaluation Tests for an Agent
      • Update Evaluation Test
      • Get One Evaluation Test
      • Update Evaluation Status
      • Get Evaluation Dataset for an Agent
      • Get All Evaluation Datasets for an Agent
      • Create Evaluation Dataset
      • Update Evaluation Dataset
      • Delete Evaluation Dataset
      • Get Agent Queries
      • Get Dataset Queries
    • SharePoint APIs
      • Get SharePoint items by full path
      • Get a SharePoint item by its ID
      • Create a new SharePoint item
      • Edit SharePoint item
      • Delete a SharePoint item
    • User APIs
      • Get All Users
      • Get User By ID
      • Edit User By ID
      • Delete User by ID
      • Create User Permission
      • Get User Permission by ID
      • Edit User Permission by ID
      • Delete User Permission by ID
      • Batch Delete Users
    • Analytics APIs
      • Get Tokens by Date
      • Get Tokens by Segment
      • Get User Tokens
      • Get Agent Tokens
      • Get Team Tokens
      • Get Query Count by Date
      • Get Query Count by Segment
      • Get Total Count
      • Get Daily Chat Engagement
      • Get Weekly Chat Engagement
      • Get Monthly Chat Engagement
      • Get User Engagement
      • Get Daily Chatlog Tokens
      • Get Weekly Chatlog Tokens
      • Get Monthly Chatlog Tokens
      • Get Agent Engagement
      • Get Engagement by Team
      • Get Engagement by User
      • Get Recently Active Agents
      • Get Recent Users
    • Notification APIs
      • Send Notification To User
      • Read Notification By ID
  1. Chat APIs

Add Comment Feedback

POST
/chat/comment/{id}
Chat APIs
Allows users to add or retrieve comments associated with chat messages, providing context or feedback related to specific interactions.
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
ID of the chat message
Body Params application/json
comment
string 
optional
Example:
This response wasn't helpful
created_by
string <email>
optional
Example:
alex@example.com
Examples

Responses

🟢200OK
application/json
Successfully added comment feedback.
Body
id
integer 
optional
Example:
1
comments
array [object {5}] 
optional
id
integer 
optional
Example:
81
comment
string 
optional
Example:
This response wasn't helpful
created_by
string <email>
optional
Example:
alex@example.com
created_on
string <date-time>
optional
Example:
2024-09-19T21:19:39.217733Z
chat_log
integer 
optional
Example:
1
feedback
array
optional
question
string 
optional
Example:
What are some strategies for conflict resolution?
response
object 
optional
query
string 
optional
Example:
Effective conflict resolution strategies
answer
string 
optional
Example:
To prioritize the relationship during conflict resolution, focus on clear communication, being willing to compromise, and avoiding personal attacks.
sources
array[string]
optional
thoughts
string 
optional
Example:
Resolved based on resources and strategies found in provided documents.
cache_hit
boolean 
optional
Example:
false
created_by
string <email>
optional
Example:
john.doe@example.com
created_on
string <date-time>
optional
Example:
2024-01-20T01:47:19.751813Z
is_deleted
boolean 
optional
Example:
true
total_tokens
integer 
optional
Example:
5299
prompt_tokens
integer 
optional
Example:
4955
completion_tokens
integer 
optional
Example:
344
cache_hit
boolean 
optional
Example:
false
query_source
string 
optional
Example:
web
message_id
integer  | null 
optional
Example:
null
chat_thread
integer 
optional
Example:
4
agent
integer 
optional
Example:
16
user
integer 
optional
Example:
2
llm_config
integer 
optional
Example:
8
🟠400Bad Request
🟠404Record Not Found
Previous
Create Custom Instructions
Next
Add Upvote Feedback