Request Body
assistant_idstring required
The UUID of the assistant to start the conversation with. Must be a valid assistant UUID that exists in the system.
type string (default: widget)
The type of conversation. Possible values:
widget- Web widget conversation (default, charged)
object
Custom variables to pass to the assistant. These variables can be used in the assistant’s system prompt and initial message using {{variable_name}} syntax.
Common use cases:
- Pre-filling customer information from forms
- Passing context from your application
- Customizing assistant behavior per session
Response Fields
statusboolean
Indicates whether the request was successful
conversation_id string
The unique UUID identifier for the created conversation. Use this ID for subsequent message requests.
history array
The initial conversation history. If the assistant has an initial message configured, it will be included here.
Message object properties
role string
The message role: assistant or user
content string
The message content
Error Responses
statusboolean
Will be false when an error occurs
error string
Error message describing what went wrong. Possible values:
Assistant not found- The provided assistant_id does not existInsufficient balance. Please top up your account.- The assistant owner’s account balance is too low
cURL
JavaScript
Python
200 Success
200 Success (No initial message)
404 Assistant Not Found
400 Insufficient Balance
Pricing
- Widget conversations: each user message uses chat credits

