[New feature] Native support for API streaming

Can’t remember where but bubble responded to a question about websockets to say they have no such plans.

We are lucky we are getting at least this feature.

Thanks for video. I did the same, but cannot get streaming text showing in my UI!!!
where i am doing wrong?
API is connected!
Thanks in advance for your support.







I am not sure why data to display is empty?!!

1 Like

having the same exact issue here, followed the steps in Petters video but cant seem to get text back to show in the UI

2 Likes

Try displaying result of step 1, not result of step 1’s text stream.

cant do that because the type of content of the group is set as text stream

Set it as the API Call type as outlined in the docs




?

Websockets are the next logical step.

Thanks for your reply.
I tired this way though not result again!!!
i set displaying result of step 1, then set the group content type equal to API call.
i can now see this now:

but streaming text, NO!

Logical steps of many feature launches never see the light of day with Bubble, like the Table element.

More often than not Bubble and it’s users are on two different pages when it comes to logic.

I’m just reiterating what Bubble had responded to this question by another user, basically said they don’t have websockets on the roadmap.

Nevertheless, I’m very surprised and glad they even launched streaming!

Link?

The details are in the manual.

You can specify fields in the UI that will receive the chunks as they are received by the Stream.

It seems pretty cool. I am going to try it out this week.

I think what you may be missing is identifying the streaming field in the API Response.

Once you do that you can refer to the Text Stream.

Let me know if you need more help. :victory_hand:


2 Likes

Does this also support Server Side Event?

Works perfect.

Hi everyone,

I’m having trouble getting the Flowise API streaming to work in Bubble via the API Connector.

The API initializes correctly, but streaming is not triggering in either a Repeating Group or any workflows. The data isn’t appearing in the RG or triggering as expected.

Has anyone faced this issue with Flowise? Any tips or workarounds would be greatly appreciated!



1 Like

Great feature!

Streaming from the openai assistants API has been a challenge. Petter’s tutorial is great to start, using completions. I’ve found that working it into assistants can render the stream just fine, but using the stream’s done state to act on completion workflows (FE or BE) were challenging. I either got 400 errors from openai for fell into the trap that bubble’s workflows can’t detect the done state.

Is it just me? Curious to hear if others are using assistants with streaming successfully (and how you went about it). Thanks!

1 Like

I’m having the same issue with Xano streaming. It seems like if the API call is not from OpenAI, the stream only returns 1 generic event instead of the relevant events. I have sent a bug report and hope to hear a response from the team soon.

I think this might be it. I’m also testing with a non-OpenAI call, and I have yet to get it to display anything. Also waiting for a response on my ticket.

3 Likes