Every Flowise chatflow and agentflow gets its own prediction endpoint, and a long reply takes a while to generate. Streaming returns the answer piece by piece, so the user sees progress instead of a blank wait.
Before you start
You need a saved Flowise chatflow and its flow ID, plus an API key if the instance requires one. Keep the key private and set access control on the calling app first.
Call the prediction endpoint with the question
Send a POST request to the prediction endpoint for the flow ID, with a JSON body containing at least a question field. The endpoint shape is POST /api/v1/prediction/{id}, where {id} is the flow ID. Flowise runs on port 3000 by default, so a local call goes to localhost:3000.
Read the streamed pieces in order and join them
Read each streamed piece as it arrives and append it to the reply in order. Check the joined reply matches the full answer the Flowise chat gives for the same question. If the stream stops early, check the flow run in Flowise before blaming the client.
Worked example: One streamed call for a fictional support app
Maple Support is a fictional support desk. Its app calls a Flowise chatflow for support answers. The table shows the call.
| Part | Value |
|---|---|
| Endpoint | POST /api/v1/prediction/{flow-id} |
| Question sent | How do I return a helmet? |
| Reply | Arrives in pieces, then joins into the full answer |
Expected result (UNTESTED): the streamed reply joins into the same answer the Flowise chat gives for the same question. We checked the Flowise documentation summary, which records the prediction endpoint shape and the default port 3000, but we did not send the request to a live Flowise instance.
Limits
Streaming shows the answer sooner, but it does not make the model faster. A dropped connection loses the rest of the reply, so the client should handle a partial stream and offer a retry. The API returns the flow output, not the tool trace.
