Assistants
Assistant Chat (BETA)
This endpoint allows a client to send a chat message to a specific AI Assistant. The assistant processes the message and returns a relevant reply based on the current conversation context. Refer to the Conversation API to create a conversation, filter existing conversations, fetch messages for a conversation, and manually add messages to a conversation.
post/ai/assistants/{assistant_id}/chat
Path parameters
assistant_idstring required
Unique identifier of the assistant.
Request body
Example request
{
"content": "Tell me a joke about cats",
"conversation_id": "42b20469-1215-4a9a-8964-c36f66b406f4",
"name": "Charlie"
}Response
Successful Response
Example response
{
"content": "Why did the cat sit on the computer? Because it wanted to keep an eye on the mouse!"
}