This is your personal AI assistant.
The OpenAI Assistant API introduces a new way to build personal AI driven assistants.
This template is not a design template for a complete site. It’s a functional template. The template is for all Bubblers which want to build personal assistants for ChatGPT right in Bubble.
The template gives you all you’ll ever need to create powerful assistants with the Assistant-API from OpenAI.
It consists of a reusable element which do all the heavy work for you to create unlimited AI assistants and threads. Just add the reusable element to a page and you’ll get a fully functional AI assistant.
You’ll find a form on the left side of the reusable element.
Create an Assistant or choose one from the assistants dropdown
You can upload a document with special knowledge for ChatGPT (e.g. PDF, CSV, Excel)
Now you are in a thread. It’s like a forum thread
Create a message and send it to the Assistant-API
The workflow creates an assistant with a thread. Now you can add messages to this thread and the AI-Bot will answer your question based on the content of the attached file.
The OpenAI Assistant API can also work as an OCR scanner. Just upload an image with text. The AI-Bot will find all text in the image and will post the text in the answer.
And the assistant can create files. See the Chart Creator example assistant.
The template works with the Assistant-API tools
Code Interpreter
Retrieval
If OpenAI publish new tools I’ll integrate them in the template.
To work with the template you need an OpenAI developer account. Log in to your account and click on API keys on the left side. Create an API key and copy it. Now go to your Bubble site and install the API connector plugin.
Expand the OpenAI API call. On the top you’ll find a shared header. Paste your API key in the value field of the Authorization key.
That’s all. You can start with the building of AI assistants for you or your users. Happy building!
All assistants, threads and messages are stored in the Bubble database. You can continue working with an assistant and create messages in the thread at any time.
I will continuously develop this template for the upcoming OpenAI Assistant API versions. For a one-time payment of $29.50, I will be your Assistant API Bubble developer.
Change history:
13.12.2023: Threads are now sorted by newest items first
You can now upload text files to messages in a thread
Because OpenAI changed their API the use of the retrieval tool is now optional
The retrieval tool doesn’t work with images anymore, so this must be optional
If you have any questions about this and about the template in general I’m here to support you
I’ve added two assistants. The first create charts if the answer of the bot contains data which are usefull for charts.
The second assistant creates mathematical function plots.
I will add more assistants in the next days and weeks.
This Assistant-API template is now feature complete. You can now add unlimited threads to any AI assistant. What is this useful for? Let’s say we have created an assistant for brainstorming. By default, an assistant has one thread. However, you certainly want to conduct brainstorming sessions on different topics with the AI. And if all of these are in one thread, it is neither clear nor effective. I don’t know if any other assistant API app has this feature.
13.12.2023: Threads are now sorted by newest items first
17.12.2023: Due to changes in the Assistant-API the retrieval tool is now optional. Use it only for text documents. The use of images is no longer supported. May be OpenAI will change this again in the future. So making this optional is the better opinion.
20.12.2023: Added new assistants
25.12.2023: Responsive Design Bugfixes
02.01.2024: Importand bugfixes. Pls update to the latest version
Can I use this template with 2 or 3 different Bubble accounts if I subscribe to the developper version ? How ?
With this template I’m able to produce a OpenAI assistant but, is ti also usable to use in Bubble an OpenAI assistant that was previously create by me ?
Do I have access to the next version of the assistant you will produce ?
Thant tyou in advance for your answer.
Sébastien
Under the Standard license, this template can be used multiple times to create applications for your own use, personal or business, that you can monetize your application with paid users or advertising. You should not use this license to build apps for others.
Developer License
Under the Developer license, you can build multiple applications based on this template for yourself and for others.
Concerning the question 3 . I undestand that your template can help to produce OpenAI assistant and to use it. Is it also possible to use assistant that was previously produce without the template.
Other question: Does this template produce the différent API calls with the endpoint needed to use OpenAI assistant ?
Sorry if i’m not very clear
Just purchased this template, I’ve added my OpenAI key to Authorization in header, but getting the message “OpenAI Assistant-API error: this header value for Content-Type is not correct undefined”
I’ve tried setting Content-type to “application/json” and still getting same error
Here it is, I’m a new user
What must we insert in the header API for this entry ? OpenAI-Beta
It is is empty and when It’s tell me this netry should be complete.
OK, Thanks, where is the doc ?
I have this error when I try ti produce an assistant:
The service OpenAI Assistant-API - Create Assistant without retrieval just returned an error (HTTP 400). Please consult their documentation to ensure your call is setup properly. Raw error:
{
“error”: {
“message”: “The requested model ‘gpt-4-1106-preview’ does not exist.”,
“type”: “invalid_request_error”,
“param”: “model”,
“code”: “model_not_found”
}
}