Learn how to initiate a conversation with your ChatFly bot using streaming responses from the ChatFly API.
The API endpoint for obtaining a streaming response is:
To get a streaming response, send a POST request to the API endpoint with a JSON request. Here’s an example JSON request:
Here are example commands to obtain a streaming response using the ChatFly API:
The streaming response is as follows:
Result with Python, equivalent to JavaScript and Curl:
Learn how to initiate a conversation with your ChatFly bot using streaming responses from the ChatFly API.
The API endpoint for obtaining a streaming response is:
To get a streaming response, send a POST request to the API endpoint with a JSON request. Here’s an example JSON request:
Here are example commands to obtain a streaming response using the ChatFly API:
The streaming response is as follows:
Result with Python, equivalent to JavaScript and Curl: