Conversations
Send Message
Send a message in an existing conversation and receive the assistant’s response
POST
This endpoint sends a user message to an existing conversation and returns the assistant’s response. The assistant processes the message using the configured AI model and any available tools.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.
Path Parameters
The unique UUID identifier of the conversation
Request Body
The user’s message to send to the assistant. Maximum length: 2000 characters.
Response Fields
Indicates whether the request was successful
The assistant’s response to the user’s message
Array of function calls made by the assistant while processing the message. Empty array if no functions were called.
Error Responses
Will be
false when an error occursError message. Possible values:
Conversation not found- The provided UUID does not match any conversationInsufficient balance. Please top up your account.- The assistant owner’s account balance is too lowFailed to process message: [details]- An error occurred while processing the message
Pricing
Each user message in a widget conversation costs $0.01. Test conversations are free.Function Calls
The assistant may execute functions during message processing, such as:- Calendar operations: Checking availability, booking appointments
- Knowledge base queries: Searching documentation or FAQs
- Custom integrations: Calling your configured webhook endpoints
Best Practices
- Handle errors gracefully: Display user-friendly messages when errors occur
- Show loading states: The assistant may take a few seconds to respond, especially when executing functions
- Preserve conversation ID: Store the conversation UUID to allow users to resume conversations
- Respect rate limits: Implement appropriate delays between messages if needed

