MARKETPLACE
PLUGINS
OPENAI - ASSISTANTS WITH STREAMING
OpenAI - Assistants with Streaming logo

OpenAI - Assistants with Streaming

Published March 2024
   •    Updated this week

Plugin details

OpenAI's assistant harnesses the power of advanced artificial intelligence to interact with users, providing streamed responses that range from answering complex questions to generating creative content, such as charts and markdown formatting.
Built on a foundation of vast datasets and cutting-edge technology, it can understand and process natural language, enabling a seamless and intuitive dialogue.

The assistant's versatility allows it to assist with a wide array of tasks, including educational support, programming help, creative writing, and even generating artwork or code.

This plugin uses an external service to provide streaming capabilities.

Demo Link: https://openaissistantdemo.bubbleapps.io/version-test

Editor Link: https://bubble.io/page?type=page&name=index&id=openaissistantdemo-editor&tab=tabs-1

💡 𝗦𝘂𝗯𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝗽𝗿𝗼𝗿𝗮𝘁𝗲𝗱. 𝗜𝗳 𝘆𝗼𝘂 𝗶𝗻𝘀𝘁𝗮𝗹𝗹 𝗮𝗻𝗱 𝘂𝗻𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲 𝘁𝗵𝗶𝘀 𝗽𝗹𝘂𝗴𝗶𝗻 𝗶𝗻 𝗼𝗻𝗲 𝗱𝗮𝘆 𝘁𝗼 𝘁𝗲𝘀𝘁 𝗶𝘁 𝗼𝘂𝘁, 𝘆𝗼𝘂'𝗹𝗹 𝗼𝗻𝗹𝘆 𝗯𝗲 𝗰𝗵𝗮𝗿𝗴𝗲𝗱 𝟭/𝟯𝟬𝘁𝗵 𝗼𝗳 𝘁𝗵𝗲 𝗺𝗼𝗻𝘁𝗵𝗹𝘆 𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻 𝗳𝗲𝗲.

📖 𝗦𝘁𝗲𝗽-𝗯𝘆-𝗦𝘁𝗲𝗽 𝗶𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝘁𝗵𝗲 "𝗜𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀" 𝘀𝗲𝗰𝘁𝗶𝗼𝗻 𝗮𝗻𝗱 𝗗𝗲𝗺𝗼 𝗘𝗱𝗶𝘁𝗼𝗿 𝗶𝘀 𝗶𝗻 𝘁𝗵𝗲 "𝗟𝗶𝗻𝗸𝘀" 𝘀𝗲𝗰𝘁𝗶𝗼𝗻 𝗼𝗳 𝘁𝗵𝗲 𝗣𝗹𝘂𝗴𝗶𝗻 𝗣𝗮𝗴𝗲.

Contact us at [email protected] for any additional feature you would require or support question.

$99

One time  •  Or  $9/mo

4.6 stars   •   9 ratings
175 installs  
This plugin does not collect or track your personal data.

Platform

Web & Native mobile

Contributor details

wise:able logo
wise:able
Joined 2020   •   122 Plugins
View contributor profile

Instructions

OPEN AI - ASSISTANTS WITH STREAMING ==================================

ELEMENT DESCRIPTION
----------------------------------
 OPEN AI - ASSISTANT STREAMING provides streaming capabilities to your assistants.

STEP-BY-STEP SETUP
--------------------------------
 0) Register on OpenAI and get your OPEN AI API KEY.

 1) Register on plugins.wiseable.io. Create a new Credential which associates your BUBBLE APP URL and your OPENAI AI KEY.
  The registration service will generate your PUBLIC ACCESS KEY. This key serves as a secure proxy for your real API key. It allows your application to communicate with the service without exposing your real API key. Since this PUBLIC ACCESS KEY is explicitly tied to your registered BUBBLE APP URL, it can only be used from that domain, ensuring that even if the key is publicly visible, it remains safe and cannot be misused by unauthorized sources.

 2) In the Plugin Settings, enter your PUBLIC ACCESS KEY generated at the previous step.

 3) Add the OPEN AI - ASSISTANT STREAMING to the page on which the chat must be integrated

 4) Add an element supporting input text for the use prompt

 5) Create a Repeating Group with the "GET THREAD MESSAGES BODY DATA (OPENAI)" data type to display the conversation. Make sure in the data source to use the OPENAI - GET THREAD MESSAGES API with a TIME dynamic field which will trigger the refresh at the desired moment, typically once the user has send its request This data source will be merged with the OPEN AI - ASSISTANT STREAMING element to ensure streaming.

 6) Integrate the logic into your application using the following OPEN AI - ASSISTANT STREAMING element's states and actions:

 FIELDS :
 - RESULT TYPE : Must always be "GET THREAD MESSAGES BODY DATA (OPENAI)".

 EVENTS :
 - ERROR : Event triggered when an error occurs.
 - STREAMING STARTED : Event triggered when the streaming starts.
 - STREAMING ENDED : Event triggered when the streaming ends.
 - CALL FUNCTION : Event triggered when a function triggers, as defined in FUNCTIONS of SEND USER PROMPT action.


 EXPOSED STATES:
 Use any element able to show/process the data of interest (such as a Group with a Text field) stored within the result of the following states of the OPEN AI - ASSISTANT STREAMING :
 - ERROR : Error message upon Error event trigger.
 - IS STREAMING : Returns true when streaming is in progress.
 - STREAMED RESPONSE : List of the messages of the current Thread ID along with the RUN ID.
 - FUNCTION NAME : Name of the function, set upon CALL FUNCTION event.
 - FUNCTION ARGUMENTS : Arguments of the function, set upon CALL FUNCTION event.
  - FUNCTION TOOL ID : Tool ID of the called function from FUNCTION TOOL ID state of the element, which is set upon set upon CALL FUNCTION event.
- FUNCTION RUN ID : Run ID of the called function from FUNCTION RUN ID state of the element, which is set upon set upon CALL FUNCTION event.
  - FUNCTION THREAD ID : Thread ID of the called function from FUNCTION THREAD ID state of the element, which is set upon set upon CALL FUNCTION event.
  - LATEST PROMPT TOKEN USAGE : Latest prompt token usage, triggered upon STREAMING ENDED event.
  - LATEST COMPLETION TOKEN USAGE : Latest completion token usage, triggered upon STREAMING ENDED event.

 ELEMENT ACTIONS - TRIGGERED IN WORKFLOW:
   - RUN ASSISTANT : Run Assistant on the specified assistant and thread.
  Inputs Fields :
       - ASSISTANT ID : The ID of the assistant to use to execute this run.
       - THREAD ID : The ID of the thread to run.
       - ADDITIONAL INSTRUCTIONS : Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions.
   - SEND FUNCTION RESULT : Send the function results. See https://platform.openai.com/docs/api-reference/runs/submitToolOutputs
  Inputs Fields :
       - FUNCTION THREAD ID : Thread ID of the called function from FUNCTION THREAD ID state of the element, which is set upon set upon CALL FUNCTION event.
       - FUNCTION TOOL ID : Tool ID of the called function from FUNCTION TOOL ID state of the element, which is set upon set upon CALL FUNCTION event.
       - FUNCTION RUN ID : Run ID of the called function from FUNCTION RUN ID state of the element, which is set upon set upon CALL FUNCTION event.
       - FUNCTION RESULT : Result of the function to pass.

6) (Optional) Add the OPENAI - MARKDOWN & LATEX PARSER element to display markdown formatting

 FIELDS:
   - MARKDOWN INPUT : Input formatted as Markdown Text.        
   - CSS STYLING : CSS styling to applyt to rendered HTML output.
   - CODE THEME NAME : Highlight.js theme name to style the highlighted code blocks. See https://highlightjs.org/examples

   EVENTS :
   - CODE COPIED : Event triggered when code is copied from the element.

   EXPOSED STATES:
   - HTML : Outputs the input formatted as HTML code.

IMPLEMENTATION EXAMPLE
======================
Feel free to browse the app editor in the Service URL for an implementation example.

TROUBLESHOOTING
================
Any plugin related error will be posted to the the Logs tab, "Server logs" section of your App Editor.
 Make sure that "Plugin server side output" and "Plugin server side output" is selected in "Show Advanced".

> Server Logs Details: https://manual.bubble.io/core-resources/bubbles-interface/logs-tab#server-logs

PERFORMANCE CONSIDERATIONS
===========================
 N/A

QUESTIONS ?
===========
Contact us at [email protected] for any additional feature you would require or support question.

Types

This plugin can be found under the following types:
Api   •   Action   •   Background Services   •   Element   •   Event

Categories

This plugin can be found under the following categories:
AI   •   Media   •   Productivity   •   Chat   •   Customer Support   •   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

Average rating (4.6)

Fantastic plugin
April 10th, 2025
It would benefit from some better documentation, but with a little trial and error it gets easier. Overall though, it does a great job and has been very reliable. Definitely the best plugin for streaming responses our there.
Great plugin with amazing support
November 18th, 2024
I've tried many, MANY Chat-GPT plugins and this is by far the best. It keeps things simple and easy to implement and have a very responsive support function.
Thank you so much for your kind words and support! We're thrilled to hear that you're enjoying the simplicity and responsiveness of this plugin. Your feedback motivates us to keep improving and delivering the best experience possible! 😊 (plugin author)
January 2nd, 2025
  •  
wise:able
Works well, great plugin. Much better than alternatives.
October 5th, 2024
I wrestled with the other plugin ChatGPT/LLM Tookit for ages and couldn't get it to work (false advertising). This plugin actually works! Great job
Thank you for your feedback! We're so glad to hear this plugin is working seamlessly for you after your challenges with others. We’re committed to providing reliable and effective tools—your support means the world to us! 😊 (plugin author)
January 2nd, 2025
  •  
wise:able
Top. Super plugin
September 22nd, 2024
Super plugin, super réactivité en cas de problème. On aime. On recommande.
Excellent ! Ravi de faire avancer votre entreprise ✨ toujours plus haut et plus fort ! (plugin author)
January 2nd, 2025
  •  
wise:able
Best Streaming Plugin
August 2nd, 2024
A little difficult to setup but the support is excellent and quick. The output being markdown is infinitely more accessible than BBCode output Bubble defaults to. Very flexible. Even supports charts!
Many thanks! Always happy to propel you business 🚀 forward! (plugin author)
January 2nd, 2025
  •  
wise:able
Bubble