Installation
Usage
POST /feedback endpoint to your app.
What it does
feedbackRouter returns an Express router that handles POST /feedback. When an agent calls it, the report is submitted to your writeback dashboard.
The endpoint accepts a JSON body:
| Field | Type | Required | Description |
|---|---|---|---|
outcome | string | Yes | One of: success, failure, confusing, gave_up, request |
details | string | Yes | What the agent tried and what happened |
tool_name | string | No | The specific endpoint or operation being reported on |
source | string | No | Name of your API or service |