Chat
Streaming Response
In this guide, we will walk through the process of obtaining a streaming response from the ChatFly API.
API Endpoint
The API endpoint for obtaining a streaming response is:
Request Body
To get a streaming response, you need to send a POST request to the API endpoint with a JSON request. Here’s an example JSON request:
- bot_id (string): ID of your bot.
- message (string): Message from the user.
- session_id (string): ID of the session.
Example Request
Here are example commands to obtain a streaming response using the ChatFly API:
Response Body
The streaming response is as follows:
- string (string): A string of the response.
Result with python, equivalent to javascript and curl:
Was this page helpful?