To get a streaming response, you need to send a POST request to the API endpoint with a Params and JSON request.
Here’s an example Params request:
Copy
{ "type_qa": "String"}
type_qa (string): type of question message.
And here’s an example JSON request:
Copy
{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "message": "Hi", "chat_history": [ { "sender_type": "user", "content": "Hi" }, { "sender_type": "assistant", "content": "Hello! How can I assist you today?" }], "custom_prompt": "I want you to act as an assistant to a customer support agent by writing email responses...", "gpt_model_name": "gpt-3.5-turbo-16k", "temperature": 0, "rules": []}
*Answer:* Hello! How can I assist you today? *Suggest Questions:*1. What specific information are you looking for?2. Is there a particular department or service you need assistance with?3. Can you provide more details about your inquiry or issue?4. How can I help make your experience better?