AI

Generate AI response for conversation

POST
/api/ai/process

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.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/ai/process" \  -H "Content-Type: application/json" \  -d '{    "conversationId": "64d2f9c5e8a1d4e001a0b1c2",    "mergeContextPrompt": "The lead just toured the property and is comparing two units."  }'
{  "message": "Hi Alex - thanks for reaching out! Are you still interested in the Maple Court corner unit?"}