This is a beta feature according to Algolia’s Terms of Service (“Beta Services”).
Before you begin
- You need an Algolia application with the Agent Studio feature enabled.
- You need an API key with the
searchACL. - You need the
messageId(prefixedalg_msg_) from a prior chat response. For more information about message IDs, see Conversations.
Submit feedback
Send a chat message and extract the message ID
Send a completion request to your agent.
The response contains a message ID (prefixed
alg_msg_) that identifies the assistant’s reply.
Store this ID so you can attach feedback to it later.Command line
Add optional tags and notes
You can includetags and notes to capture more context about why a user gave positive or negative feedback.
Endpoint reference
For full details on thePOST /agent-studio/1/feedback endpoint, see the Agent Studio API reference.
Constraints and error handling
- One feedback per message: each application can submit one vote per message.
If you send a second feedback request for the same message, the endpoint returns a
400error. - Message scope: the
messageIdmust belong to a conversation under the authenticated app. You can’t submit feedback for messages from other applications. - Authentication: your API key must have the
searchACL, and your application must have the Agent Studio feature enabled. If either is missing, the endpoint returns a403error.