Conversations
Create Conversation
Create a new conversation session with an AI assistant
POST
This endpoint creates a new conversation session with an AI assistant. Use this to initiate a text-based chat session through your web widget or application.Documentation Index
Fetch the complete documentation index at: https://docs.aiployees.com/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
The UUID of the assistant to start the conversation with. Must be a valid assistant UUID that exists in the system.
The type of conversation. Possible values:
widget- Web widget conversation (default, charged)test- Test conversation (free, for development)
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
Indicates whether the request was successful
The unique UUID identifier for the created conversation. Use this ID for subsequent message requests.
The initial conversation history. If the assistant has an initial message configured, it will be included here.
Error Responses
Will be
false when an error occursError 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
Pricing
- Widget conversations: $0.01 per user message
- Test conversations: Free (for development and testing)

