😼Stream Conversation (REST)
For now, the endpoint only accept POST request to chat with your bot. Websocket Request is coming soon.
Endpoint
The endpoint to access this history summary is working with a POST request, this time the API Token is not necessary.
Parameters needed
This post request required at least 3 parameters :
prompt
string
Required. The question ask to the chatbot (can not exceed 3000 characters)
chatbotUuid
uuid
Required. The UUID
of the chatbot your speaking with.
session
uuid
Required. The UUID
of the session your in.
The session
parameter can be :
"anonymous" : in this case, you will not be able to manage user conversation history and to get sources from the answer provided by chatbot. Each question asked by users are treated separately and user can not see his own history when ending session.
uuid
: in this case, you have to provide a valid and unique UUID to distinguish every users. In this case, you will be able to recover each user history and to get sources.
Examples
In Vanilla Javascript
Last updated