Gratis AI Agent Settings
The Settings → Advanced screen in Gratis AI Agent provides administrator-level configuration for backend integrations introduced in v1.5.0. This page documents the Feedback Endpoint fields and their expected format.
Accessing Settings
- In the WordPress admin, go to Gratis AI Agent → Settings.
- Click the Advanced tab.
Feedback Endpoint Configuration
The feedback endpoint receives POST requests from the AI agent whenever a user submits feedback via the thumbs-down button, the auto-prompt banner, or the /report-issue command.
| Field | Description |
|---|---|
| Feedback Endpoint URL | The URL that receives feedback submissions as HTTP POST requests with a JSON body. |
| Feedback API Key | A bearer token sent in the Authorization header of each feedback request. Leave blank if your endpoint does not require authentication. |
Expected JSON Payload
Your feedback endpoint must accept a JSON body with at least the following fields:
{
"message_id": "msg_abc123",
"conversation_id": "conv_xyz789",
"feedback_text": "The answer was incorrect about pricing.",
"triage_category": "factual_error"
}
Additional fields may be present in the payload depending on the conversation context.
triage_category Values
The AI triage layer assigns one of the following values to triage_category before forwarding the payload:
| Value | Meaning |
|---|---|
factual_error | The assistant provided incorrect factual information. |
unhelpful_answer | The response was technically correct but not useful. |
inappropriate_content | The response contained content that should not be shown to users. |
other | The feedback did not match a known category. |