Sending feedback

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Initially, when an answer is rated, you should set the value of the feedback property within the chata-data history object. This value can be set to either negative or positive. Following this, proceed to call this endpoint to store the feedback. The endpoint will respond with a generated reply in the appropriate language of the conversation.

As a subsequent step, you can present this message to the user and request their email address. If you intend to forward this conversation to the configured support email address, you can simply make another call to this endpoint, setting the sendEmail property to true and including the user's email address within the email property. Once more, this endpoint will provide a generated response that you can display to the user.

Body Params
string
required

Use the returned chat-data object from the query to render the answer. Then when an answer received negative feedback (for example using a thumbs-down button), you can set the feedback property to the value negative for that rated answer. You must always supply this chat-data object submitting feedback.

string
required
string
required
string
required

The website ID you trained the AI on.

string
required

An unique identifier for your visitor.

string
required

Can be 'negative', 'positive', 'escalated' or 'note'.

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json