Conversation with Chatbot
POST
/v1/chatbots/{appId}/messagesSend message to a particular thread or start a new thread.
Request
The message to send to the Chatbot.
The text contents of the message.
Whether to stream back partial progress. If true, returns a stream of events that happen during the conversation as server-sent events, terminating when the conversation enters a terminal state with a data: [DONE] message.
If provided, message will be sent to the thread with this threadId
. Otherwise, message will be sent to a new thread.
Threads and Messages represent a conversation session between an Chatbot and a user.
{
"content": "Say this is a test!",
"stream": true
}
Request samples
Responses
The content of the message in array of text and/or images.
The text contents of the message.
The ID of the thread to which this message belongs.
Threads and Messages represent a conversation session between an Chatbot and a user.
{
"content": "This is a test!",
"threadId": "CM88W9SLrm712ozLA4Pz5Xmhzoj5EIcf"
}