Skip to main content
Creates a new conversation session with an AI assistant. Use this to initiate text-based chat through your web widget or application. The response includes a conversation_id to use for subsequent messages.

Endpoint

POST /conversations
This endpoint does not require authentication. It is called from your client application using the assistant’s public UUID.

Request

string
required
UUID of the assistant to start the conversation with.
string
default:"widget"
Conversation type:
  • widget — Web widget conversation. Charged at $0.01 per user message.
  • test — Free test conversation for development.
object
Custom variables to pass to the assistant. Accessible in the system prompt and initial message via {{variable_name}}.

Response

boolean
Whether the request was successful.
string
UUID of the created conversation. Use this for subsequent Send message calls.
array
Initial conversation history. Contains the assistant’s opening message if one is configured.

Example

200 Success
404 Assistant not found
400 Insufficient balance
After creating a conversation, use the Send message endpoint to exchange messages.