Report Generator Chat Turn
POST/v1/api/safety/ai-reports/chat
One stateless turn of the report generator's guided chat. The client carries the full conversation state (message history, any preset chip clicked) — nothing about an in-progress conversation is persisted server-side, only completed generations.
Classifies the message and returns one of four outcomes: an out-of-scope reply, a
direct answer to a quick data question, a clarifying question for whichever of the
four required parameters (time period, audience, scope, intent) are still missing,
or — once all four are known — a plan for the user to confirm before calling
/generate. Also detects freeform presentation adjustments (tone, length,
recommendation count, language, inclusions, even switching which report type this
is) at any point in the conversation — these ride along in plan.scope.adjustments
rather than blocking on the four required parameters.
Auth Required
Required Permissions:
compliance.ai-reports:execute("AI Report Generation")
Request
Responses
- 200
- 400
- 401
- 403
- 500
Chat turn result
Bad Request. The request was invalid or cannot be otherwise served.
Unauthorized. User is not authenticated or session is invalid.
Forbidden. User does not have the required permissions.
Internal Server Error