How to use the OpenAI Assistants in flutterflow

  Рет қаралды 2,782

Leo McMillion

Leo McMillion

Күн бұрын

If you want to see how I created the UI in flutterflow for displaying the messages you can check out this video: • How to create your own...
In this video I go over how to use the OpenAI assistants API in flutterflow to be able to get responses back from your custom trained assistant. This knowledge will be really useful for future videos I will release about how to extend the assistant's capabilities.
Here is my email if you need any help: leomcmillion@gmail.com
I got your back for life.
#developer #software #openai #ai #chatbot #tutorial #webdevelopment #chatgpt #education #learning #api #flutterflow #programming #progress

Пікірлер: 36
@adeterminedpolarbear
@adeterminedpolarbear 2 ай бұрын
what is the thread id? I believe before you would just pass in the entire conversation everytime but I think there may be token overflows at some point? I think I'd have to limit it to 50 messages every time for each chat or something or there could be way too much data being sent to chatgpt.
@ZayLaVi
@ZayLaVi 20 күн бұрын
How did you get the "messages - (Lists < Data (message) >)"?
@pobparat8082
@pobparat8082 Ай бұрын
Great vid Leo. Thank you so much.
@KJPsyXX
@KJPsyXX 4 ай бұрын
Thanks Leo! of course this is now going to require Assistant V2 in the headers. And retrieval tool has been changed to file search which I assume will impact the future videos. Really looking forward to the next parts!
@leomcmillion
@leomcmillion 4 ай бұрын
Yep, that is right! Actually though of releasing an updated version after the coming video.
@KJPsyXX
@KJPsyXX 4 ай бұрын
@@leomcmillion I will be watching.
@KJPsyXX
@KJPsyXX 4 ай бұрын
​@@leomcmillion Would be amazing to give openAI Assistant access to an Authenticated users' files in Firebase so that the user can chat with their own documents using our FF assistant. I wonder if that's a good candidate for a future video on your channel.
@leomcmillion
@leomcmillion 4 ай бұрын
@@KJPsyXX Absolutely! Have considered a video like this as well. But will be later down the line when I get some other videos out first.
@wayneergle
@wayneergle Ай бұрын
Thanks for this great video! Would you consider updating it to use FlutterFlow streaming API to work with OpenAI Assistants?
@leomcmillion
@leomcmillion Ай бұрын
Absolutely! Had actually planned on recording an video about that in the autumn when I get back to recording videos again. Thanks for the suggestion!
@ghitaneugeneduard4318
@ghitaneugeneduard4318 Ай бұрын
Hello Leo! I made an AI assistant in Flutter Flow and I added also a vectoring data base to make the assistant make the answers from a specific knowledge base. The problem is that the assistant is using source annotations and they appear at the end of the message with weird brackets and symbols (e.g: [\d+\], or 4:1 â sourcã). Any idea how I can clear the messages in Flutter Flow?
@leomcmillion
@leomcmillion Ай бұрын
To make incoming strings to flutterflow look as normal text instead of having those weird symbols you can create a custom function in flutterflow that decodes a string to be UTF8. This should work since I think they are using UTF8 encoding. Here is the code you can try: String decodeUtf8String(String encodedString) { List bytes = encodedString.codeUnits; return utf8.decode(bytes); } Hope this is what you were asking for, if I misunderstood your question please let me know.
@ghitaneugeneduard4318
@ghitaneugeneduard4318 Ай бұрын
@@leomcmillion hei Leo. Sadly it did not work :(. I sent you an email with some screenshots just to make myself clearer. Whenever you have the time to check it out! Thank you so much for your help!
@leomcmillion
@leomcmillion Ай бұрын
@@ghitaneugeneduard4318 I did not get any screenshots via email. Please try to send again.
@valeriacerpasalas2330
@valeriacerpasalas2330 3 ай бұрын
Hi, very interesting! I am following the tutorial :) I have a question regarding the Actions for the button (send). In variables, I choose message but then for choosing the value. I can´t see "input (Label here...) option. How can I add it? This doesn´t appear in my options. Thank you!
@leomcmillion
@leomcmillion 3 ай бұрын
Have you checked so the value in your "message" datatype is a string? Also check so the input field is set to "text "and not to "number". It could also be that you renamed the text field to something else. It should pop up as a option, so it's probably something smal like this. Hope this helped somewhat at least.
@nclub976
@nclub976 5 ай бұрын
Great video
@leomcmillion
@leomcmillion 5 ай бұрын
Thanks!
@aidenhargrove7003
@aidenhargrove7003 4 ай бұрын
What would change if you don’t have the API grouping? It’s only available for pro users
@leomcmillion
@leomcmillion 4 ай бұрын
Define the API calls individually instead. This will require you to fill in the headers and API separately for each API call. But not that much work since there were just around 5 API calls to define.
@clinbrokers
@clinbrokers 5 ай бұрын
@leo Great video. Can you please share the app or the workflow that works?
@leomcmillion
@leomcmillion 5 ай бұрын
Did the workflow shown in the video not work for you?
@clinbrokers
@clinbrokers 5 ай бұрын
@@leomcmillion I got lost when you changed something after your 1st try gave an error. I would be happy if I could clone it and tweak to learn
@kashiefhenry9401
@kashiefhenry9401 4 ай бұрын
didn’t work you changed something that was not shown
@leomcmillion
@leomcmillion 4 ай бұрын
@@clinbrokers I will have another look myself and let you know if I missed to mention something.
@user-xt4vz4dr9f
@user-xt4vz4dr9f 5 ай бұрын
does adding the api call this way expose the open ai key to the public? do you have any videos or advice I can use to help keep the key private from preying eyes. thanks, your vids are awesome.
@leomcmillion
@leomcmillion 4 ай бұрын
Have planned to release a video about this within a week. This is problem many developers are struggling with in flutetrflow.
@MatthewFusco-wx9pq
@MatthewFusco-wx9pq 5 ай бұрын
Have you found a way to display past assistant chat history for users to reference back too? I also want to add 20+ assistants for various user functions. is there a way to do that without creating 30+ pages?
@leomcmillion
@leomcmillion 5 ай бұрын
Yes, if you store the thread ids to the user account you can just loop through them and use the "getMessages" api call from the video (but grab all the messages instead of only the latest one) to get previous conversations. You can create several assistants on the same page by creating a thread id for each one, and use the specific assistant ids for each assistant. Otherwise the flow is basically the same, but you will need a seperate "messages" list for each one. Hope that helped.
@MatthewFusco-wx9pq
@MatthewFusco-wx9pq 5 ай бұрын
@@leomcmillion I would need some help on direction. Would you be interested in a zoom call? or video call to help?
@leomcmillion
@leomcmillion 5 ай бұрын
@@MatthewFusco-wx9pq you can contact me on my email: leomcmillion@gmail.com
@MatthewFusco-wx9pq
@MatthewFusco-wx9pq 5 ай бұрын
just reached out thanks! @@leomcmillion
@kashiefhenry9401
@kashiefhenry9401 4 ай бұрын
didn’t work you change something that doesn’t trigger the assistant on the button press just send the input and no response
@leomcmillion
@leomcmillion 4 ай бұрын
I explained in the video the things I changed. It was basically switching from a periodic action to a normal loop. I also switched the index of the data list in the "getMessageS" API call. Try watching the last part again, where I show this.
@leomcmillion
@leomcmillion 4 ай бұрын
I will have another look myself and let you know if I missed to mention something.
How to create your own chatGPT in Flutterflow (updated version)
23:45
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 61 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 3,8 МЛН
OpenAI Assistants API Tutorial - Playground & NodeJS
17:47
Leon van Zyl
Рет қаралды 29 М.
GPTs vs Assistants API - which one is best for you?
13:09
Understanding Embeddings in RAG and How to use them - Llama-Index
16:19
Prompt Engineering
Рет қаралды 37 М.
Listviews in Flutterflow: How to display data from an API
11:57
How to associate Firestore documents to a user in Flutterflow
15:49
Leo McMillion
Рет қаралды 1,2 М.
FlutterFlow vs DraftBit - THE FINAL SHOWDOWN
18:32
Ambitious Alim
Рет қаралды 13 М.
Build your FIRST OpenAI Assistant With Function Calling
12:26
Make Stuff With AI
Рет қаралды 28 М.
How to Use Open AI's GPT-4o in FlutterFlow - Part 1
9:59
FlutterFlow
Рет қаралды 8 М.
Founder's Keynote | FlutterFlow Developer Conference 2023
15:25
FlutterFlow
Рет қаралды 2,6 М.