Feedback API Documentation


Introduction


You can send user or agent feedback on IrisGPT responses via our APIs. This feedback helps IrisAgent improve the quality of its responses over time.

API Guide


Below is a curl command to call our API:

curl -X POST --location "https://api1.irisagent.com/v1/feedback" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer Replace_me_business_id" \
    -d '{
            "conversationId": "12345",
            "feedback": "Like"
        }'
          

The API inputs are as follows,

FieldDescription
conversationId[Required] Unique ticket or chat id for whom feedback is being provided. Please note that this conversationId should match the conversationId used to get the response from IrisGPT API.
feedback[Required] Feedback on the AI response. It should be either "Like" or "Dislike".
Replace_me_business_idThis is the ID provided by the IrisAgent team


A sample output of the API:

{
  "result": "success"
}

© Copyright Iris Agent Inc.All Rights Reserved