# Anyone integrated Text Streaming with Bubble.io yet?

**URL:** <https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868>\
**Category:** Need help\
**Created:** [March 18, 2024, 2:03am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868 "2024-03-18T02:03:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke.koletsios03](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke.koletsios03/32/206712_2.png) [@luke.koletsios03](https://forum.bubble.io/u/luke.koletsios03)\
**Post date:** [March 18, 2024, 2:03am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/1 "2024-03-18T02:03:06Z")

</div>

I believe OpenAI came out with a streaming feature for Assistant API. Has anyone integrated it with their Bubble app yet? If so, how?

Thanks

---

<div class="post-metadata">

**Author:** ![ansel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ansel/32/211481_2.png) [@ansel](https://forum.bubble.io/u/ansel)\
**Post date:** [April 4, 2024, 1:54am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/2 "2024-04-04T01:54:01Z")

</div>

Would also love to know if anybody has figured this out

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [April 4, 2024, 1:56am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/3 "2024-04-04T01:56:46Z")

</div>

Pretty sure you could do it with [this](https://bappolis.bubbleapps.io/version-test/auto_complete).

I’ll be making some more examples when it’s published.

Let me know if you want to try it out 🙂

EDIT: Think this could still apply with assistant streaming API.

Unless you guys are looking for the API directly, if that’s the case I could look into it but I can safely presume it’s in the works if not already available.

\*\* I need to learn to read everything before I comment xD

---

<div class="post-metadata">

**Author:** ![ansel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ansel/32/211481_2.png) [@ansel](https://forum.bubble.io/u/ansel)\
**Post date:** [April 4, 2024, 2:27am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/4 "2024-04-04T02:27:37Z")

</div>

Hi @GH5T - Not sure I follow your response. I see that you linked an Auto Complete page but not sure how that fits into the new Assistants streaming protocol from OpenAI?

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [April 4, 2024, 2:31am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/5 "2024-04-04T02:31:21Z")

</div>

> [@ansel](#):
>
> Assistants streaming protoco

I should of replied with this:  
[pubkey/rxdb: A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/ (github.com)](https://github.com/pubkey/rxdb)

I will be working on integrating this soon. Assuming that’s what you meant for ‘streaming’.

---

<div class="post-metadata">

**Author:** ![ansel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ansel/32/211481_2.png) [@ansel](https://forum.bubble.io/u/ansel)\
**Post date:** [April 4, 2024, 3:00am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/6 "2024-04-04T03:00:02Z")

</div>

I think we might be talking about different things. I’m trying to figure out how to incorporate streaming from OpenAI’s Assistant API’s new streaming endpoint [here](https://platform.openai.com/docs/assistants/overview/step-4-create-a-run).

That link shows a Node.js streaming example that I’m trying to incorporate into a workflow in my app.

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [April 4, 2024, 3:03am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/7 "2024-04-04T03:03:19Z")

</div>

My mind races a million miles per hour. I’m pretty sure that can be implemented as a SSA. Doesn’t look too hard.

---

<div class="post-metadata">

**Author:** ![ansel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ansel/32/211481_2.png) [@ansel](https://forum.bubble.io/u/ansel)\
**Post date:** [April 9, 2024, 1:13am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/8 "2024-04-09T01:13:57Z")

</div>

FWIW, in case anybody else is trying to figure this out, I ended up solving this by spinning up an AWS Lambda function to make the call to the OpenAI Assistants API and then listen to the stream responses from OpenAI. I’m calling this Lambda function from Bubble’s API connector to AWS’s API Gateway. It’s not particularly fast or graceful but it does work. Perhaps somebody more skilled than I could do it with a custom Bubble plugin.

In case helpful, I followed these tutorials to get it working:

- Creating a Lambda function [here](https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway-tutorial.html)
- Working example of OpenAI Assistants API [here](https://platform.openai.com/docs/assistants/overview?context=with-streaming)
- Relevant stream events for the Assistants API [here](https://github.com/openai/openai-node/blob/master/helpers.md#assistant-events)
- Setting up AWS API Gateway keys [here](https://www.youtube.com/watch?v=V-ac_ZvdAW4)

---

<div class="post-metadata">

**Author:** ![stephane\_hildbrand](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/stephane_hildbrand/32/209881_2.png) [@stephane\_hildbrand](https://forum.bubble.io/u/stephane_hildbrand)\
**Post date:** [April 9, 2024, 7:56am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/9 "2024-04-09T07:56:48Z")

</div>

Would you mind sharing a video demo of the end result?

---

<div class="post-metadata">

**Author:** ![redvivi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/redvivi/32/59955_2.png) [@redvivi](https://forum.bubble.io/u/redvivi)\
**Post date:** [April 9, 2024, 12:19pm UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/10 "2024-04-09T12:19:58Z")

</div>

> **[OpenAI - Assistants with Streaming Plugin for Bubble, by wise:able](https://bubble.io/plugin/openai---assistants-with-streaming-1711101215133x177753180018311170)**
>
> OpenAI - Assistants with Streaming Plugin page on Bubble, by wise:able. Add OpenAI - Assistants with Streaming in one click to your app. Bubble lets you build web apps without any code.

And the result before your eyes @luke.koletsios03 @ansel @stephane_hildbrand here: [Open AI - Assistant Streaming Plugin Demo](https://openaissistantdemo.bubbleapps.io/version-test)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 27, 2024, 2:03am UTC](https://forum.bubble.io/t/anyone-integrated-text-streaming-with-bubble-io-yet/312868/11 "2024-05-27T02:03:19Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
