Generate AI response for conversation
Generates an AI reply for an existing conversation and writes the message back into the conversation. Caller must own the conversation, be assigned to it, or be an ADMIN/SUPERADMIN. Supports optional mergeContextPrompt, followUpProcess, and enableTools overrides.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Target conversation to generate a reply for. Caller must own it, be assigned, or be ADMIN/SUPERADMIN. The literal value new-sms is rejected.
Free-form context to splice into the system prompt for this single turn (e.g. tour notes, lead status) without modifying the saved prompt.
Response
AI response generated
Returned by /api/ai/process after the AI reply has been generated and persisted into the conversation.
The generated assistant message text that was appended to the conversation.