Skip to main content

SAI Chats

Conversations between your customers and SAI (SiPhox AI). Send messages and create conversations through POST /api/v1/sai/chats/{userId}, and list, tag, annotate, or delete conversations. The older separate create-chat and send-message endpoints are deprecated in favor of this consolidated endpoint.

📄️Send a chat message

Creates a new conversation or continues an existing one, and returns the AI's reply along with the `chatId`. Omit `chatId` to start a conversation (optionally with `customInstructions`); include `chatId` to continue that conversation (`customInstructions` is then ignored). `saiResponse` is a JSON-encoded string of content sections — `PARAGRAPH` text and `RESULTS_READ_OUT` biomarker results — plus optional `productInfo`, `getSupport`, and `followUpQuestions` fields. The customer (`userId` is the customer ID returned by the Customers endpoints) must belong to your business, and each call counts toward your subscription's metered SAI usage; list and manage conversations with `GET /api/v1/sai/chats`.