Пікірлер
@D0TSON
@D0TSON 5 күн бұрын
Try just doing a query for a single document instead I believe it will do the same thing
@orianatoubia681
@orianatoubia681 11 күн бұрын
thank you! this but for mobile would be amazing too
@fada9370
@fada9370 11 күн бұрын
thanks for the video. ı applied these for my app but ı have a problem. ı got an error named "email is badly formatted" when ı try to reset password. ı also tested api call there was not error. why I get this error? even ı added email page state and add email variable in api call to get email var form auth user to handle it. it did not work. how can I solve it can someone help about it?
@vishalkumar-yi4uw
@vishalkumar-yi4uw 13 күн бұрын
you are a life saver Leo, appreciate your efforts buddy, keep it up
@DigitalDivotGolf
@DigitalDivotGolf 18 күн бұрын
Any plans on making a short video to show how to fine tune the system role?
@NoobieSnake
@NoobieSnake 19 күн бұрын
Hey Leo! This is my first time coming across your channel. I just want to thank you very much for such a great tutorial! I've watched about 5-6 other tutorial videos on how to make the audio recording button and text to speech work, but all the other tutorials did not address what I was trying to do. However, your tutorial covered all the things I needed. I have liked the video and subscribed to you! You were amazing, thank you very much for such an amazing tutorial! Keep up the good work! Looking forward to more of your content! P.S. Do you know how to get FlutterFlow to display texts in other languages? The dialog box worked when I spoke English, but when I tried to speak in another language, FlutterFlow text box started to display weird symbols. I don't know if it was on the FlutterFlow end or on the OpenAI end. I'm trying to build a translation app at the moment, so my next step is to take that transcript and translate it into English to have it display on another box. Thank you very much in advance for your help and thank you for your time! Cheers!
@ZayLaVi
@ZayLaVi 20 күн бұрын
How did you get the "messages - (Lists < Data (message) >)"?
@artemkizilov6934
@artemkizilov6934 21 күн бұрын
11:55
@artemkizilov6934
@artemkizilov6934 21 күн бұрын
11:33
@user-dj8jf3pz5x
@user-dj8jf3pz5x 23 күн бұрын
Thanks for this great explanation. However, I'm still wondering how 'Users collection' actually works. I read that the ID of the user should match the ID of the document that belongs to them. But these are not the same in Firebase, right? This would mean that many documents would have the same ID which can't right. What am I missing here?
@ivanling8355
@ivanling8355 24 күн бұрын
Hi just saw your video I cant seem to get the option for Users collection even though my schema is called users. How do I fix this?
@leomcmillion
@leomcmillion 24 күн бұрын
Have you set your users collection as the "Users collection" in the firestore settings?
@ToddlerTV-ik4lc
@ToddlerTV-ik4lc 25 күн бұрын
could you do this so the event creator can set a number of members of people than can attend and then fill the spaces
@leomcmillion
@leomcmillion 24 күн бұрын
To achieve this you can add an int field in each event that is called "numSpots" or something, and then when a user creates and event they can set this field with a number text field. And whenever someone tries to join an event you can check if the number of joined users in the event matches the numSpots field, and in that case show some text like: "This event is full". You can create whatever UI you want for this, but hope you get the concept.
@ToddlerTV-ik4lc
@ToddlerTV-ik4lc 16 күн бұрын
@@leomcmillion ok thanks for the reply i understand that part my issue is inserting the slots so after the event is create im wanting the user to click attend then their ref to fill that slot my problem is creating the slots when the creator sets up the event im i inserting a number of rows using a loop and the value of textfield int and each person owing the row or is the another way ?
@Martininindia
@Martininindia 28 күн бұрын
Had to watch this 4 times, but finally got it. Its so simple really. Data goes in, data comes out. I was working with Claude to do it with code and was so tiring and useless.
@minuhariharan21
@minuhariharan21 Ай бұрын
How do we invalidate the link once the password is reset
@danzreview
@danzreview Ай бұрын
Cool
@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!
@walinaimi786
@walinaimi786 Ай бұрын
Hi Leo, great tutorial thank you , please let me know if you have an example of text to Speach in different languages would be greatly appreciated ❤
@leomcmillion
@leomcmillion Ай бұрын
You can check that out here: platform.openai.com/docs/guides/text-to-speech/supported-languages There you can see what languages they support. You can also see there that you get audio for the same language as the text you give to the API.
@MedianComedian
@MedianComedian Ай бұрын
Can you please create some tutorial about cookie consent in FlutterFlow? In European Union all pages must have this and currently FlutterFlow is not supporting this feature. Basically none of the cookie can be saved on user's device until he gives explicit consent. Is it possible to achive this in FF? Please help...
@markfrancisco1997
@markfrancisco1997 Ай бұрын
Great video! Super easy to follow, and very well explained. ---> Quick Question: How do you upload M4a audio (e.g generally recorded from Apple devices)? It's only allowing MP3, but when I look at the API documentation, it says it support M4a format as well.
@leomcmillion
@leomcmillion Ай бұрын
Thanks! I have never used M4a so don't know. What documentation are you referring to? Flutterflow's? Or OpenAI's? And to where in your app are you having troubles uploading the M4a files? to Flutterflow or to OpenAI? I can help you better with the above information. This problem should no be super hard to figure though so am sure you can come up with a solution yourself.
@InnaLemeshko-b4n
@InnaLemeshko-b4n Ай бұрын
Hi! Nice video! But I have some problems. i can`t get oobCode from the dynamic link in flutterflow. it s empty. dynamic link correctly redirect me to reset password page but I can`t get the params
@3usky
@3usky Ай бұрын
what about if you do this on mobile app not web? 🤔
@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<int> 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.
@pobparat8082
@pobparat8082 Ай бұрын
How can I store chat histories (like the left tab in ChatGPT)🤔 @leomcmillion
@BriqueStudios
@BriqueStudios Ай бұрын
Hi, would you happen to know how to do the xano, firebase auth for flutter flow. I’m getting a 3 dot error.
@leomcmillion
@leomcmillion Ай бұрын
Sorry, I don't use xano for authentication. But here is a thread where this problem have been discussed: community.xano.com/ask-the-community/post/firebase-jwt-authentication-with-xano-O1Mn1CdKS4NUYgc
@declanplunkett555
@declanplunkett555 Ай бұрын
Hey Leo, thanks so much for the video! Will have to try it out! Would you know if it’s possible to use something like ChatGPT to generate invite codes and then have an option for current users to invite other users either via email or sms with a template that includes a generated code?
@pobparat8082
@pobparat8082 Ай бұрын
Great vid Leo. Thank you so much.
@amirsync
@amirsync 2 ай бұрын
Can we talk about an AI co-founder situation?
@aabuabara
@aabuabara 2 ай бұрын
At minute 20:40, "action outputs" does not appear for me. What could it be? I followed the tutorial exactly.
@aabuabara
@aabuabara 2 ай бұрын
At minute 19:30, Action 2, we can see “Action Output Variable Name” apiResult. After fill here, “action output” appears.
@HorizonShop99
@HorizonShop99 2 ай бұрын
My file uploads but I do not get the generated text I think it might be with the api I think I entered the wring API, could you please tell me where to get the API key
@HorizonShop99
@HorizonShop99 2 ай бұрын
Hey Hey could you please explain to me how to get the text to appear on the screen and not on a popup over the screen please as on timestamp: 12:07. Thanks in advance
@fishfeedingprojects
@fishfeedingprojects 2 ай бұрын
sorry, but i just wanna ask, does flutterflow can connect to realtime database? not only just firestore? thank you
@GazaIssues
@GazaIssues 2 ай бұрын
brother - technical glitch for begginers - for some reason i can't paste the API address into FlutterFlow - it's requiring me to type it in manually. I'm seeing on google that i need to 'allow clipboard' but no way to see how.
@chaitanyavarma2935
@chaitanyavarma2935 2 ай бұрын
buddy i am your 1k subscriber😂😂😂 anyway thanks for the content
@hardeepsingh-bc3kb
@hardeepsingh-bc3kb 2 ай бұрын
Thank you for the video. Can you please suggest how to do the same with sqlite database stored locally instead of firebase.
@MyInspireSphere
@MyInspireSphere 2 ай бұрын
Simply amazing. I tried figuring this out for a while. One big issue that I see you also have is that the link exposes the apiKey. if you look at the video at 20:43, you can see that the apiKey is part of the address received from the link. any idea how to address this?
@leomcmillion
@leomcmillion 2 ай бұрын
Great question! I answered you via email on how to do this without exposing the API key in the url. You can do it by routing the apj call via a custom cloud function and then get your google api key from your secret manager in google cloud (you need to store the api key as a secret key in the google cloud secret manager). Takes a little more work but is worth it for security.
@orianatoubia681
@orianatoubia681 4 күн бұрын
@@leomcmillion Hello! Have you tried doing that? I am using Firebase to send password reset emails, but I've noticed that, although I customize the redirection link in Firebase Console to avoid including the API Key, the link that reaches the end user still includes the API Key, so it does not matter if I use a link to a cloud function, they always include it by default. Did I understand something wrong?
@leomcmillion
@leomcmillion 3 күн бұрын
@@orianatoubia681 ​ I think you are mixing up the API key and the oobCode. The oobCode is the key that you are seing in the url that the user gets, which is standard. The oobCode and mode parameters are added to the link you set in the template, since the oobCode is needed to reset password. Not a problem that the user have access to that. But in the video I do show the API for the user which is not ideal, but that is not needed if you route the "Reset password" API call made in the Reset password page via a cloud function that reads the api key from your secret manager. Am unsure how you have set it up but sounds like you have just routed the reset password page via a cloud function which is not needed, but the API call made on that page that requires the API key should be routed via a cloud function (API should not be hard coded in the function). Hope this answers your question. If I missunderstod anything just let me know.
@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.
@GreyHawk78
@GreyHawk78 3 ай бұрын
Pretty good video ! Make more like these buddy 💪🏼💪🏼
@JuanPerez-vv5lk
@JuanPerez-vv5lk 3 ай бұрын
please go straight to the point, we all know what flutterflow is. thanks.
@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.
@iam-peacemaker
@iam-peacemaker 3 ай бұрын
Great tutorial! but I think if an item has already been added to the favorites list and user clicks on add to favorite again, we remove the item from the fav list and update the fav icon color. So can I go about that?
@leomcmillion
@leomcmillion 3 ай бұрын
You can in the icon click logic check if the current item is already in your fav list, and based on that either remove it or add it.
@adeterminedpolarbear
@adeterminedpolarbear 3 ай бұрын
hey leo can you make a vid on cloud functions to chatgpt instead of doing it through an API call? would be much appreciated thanks
@leomcmillion
@leomcmillion 3 ай бұрын
You can do that by just following the API documentation here: platform.openai.com/docs/api-reference/chat/create And making this API call in a cloud function using the trigger "onCall" and the library axios. You can ask chatGPT for assistance on how to implement this. Try this first and let me know if you encounter any issues.
@adeterminedpolarbear
@adeterminedpolarbear 3 ай бұрын
​@@leomcmillion I tried I did something like this. Still can't get it to work. Also when I deploy in FF I see the function but when I deploy outside of it I don't. const functions = require('firebase-functions'); const axios = require('axios'); const apiKey = apikey; exports.chatGPTtestfunction = functions.region('us-central1').runWith({ timeoutSeconds: 90, memory: '128MB' }).https.onCall(async (data, context) => { console.log('Function invoked'); if (!context.auth || !context.auth.uid) { console.log('Authentication required'); return { success: false, error: 'Authentication required' }; } const tripTitle = data.tripTitle; const tripDetails = data.tripDetails console.log('Received data:', { tripTitle, tripDetails }); const prompt = `Please analyze the following trip for me: Title: ${tripTitle} Description: ${tripDetails}`; try { console.log('Sending request to OpenAI API'); const response = await axios.post('api.openai.com/v1/chat/completions', { model: 'gpt-4', // or the appropriate model messages: [ { role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: prompt } ], max_tokens: 150 }, { headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` } }); const breakdown = response.data.choices[0].message.content.trim(); console.log('Received response from OpenAI API:', breakdown); return { success: true, breakdown: breakdown }; } catch (error) { // Enhanced error logging if (error.response) { // The request was made and the server responded with a status code that falls out of the range of 2xx console.error('Error response data:', error.response.data); console.error('Error response status:', error.response.status); console.error('Error response headers:', error.response.headers); return { success: false, error: error.response.data }; } else if (error.request) { // The request was made but no response was received console.error('Error request data:', error.request); return { success: false, error: 'No response received from the API' }; } else { // Something happened in setting up the request that triggered an Error console.error('Error message:', error.message); return { success: false, error: error.message }; } } });
@yellowmellow5261
@yellowmellow5261 3 ай бұрын
Hello, amazing tutorial Ive copied everything but whenever I input a message I dont get an output from the API do you know what can I do?
@leomcmillion
@leomcmillion 3 ай бұрын
You could check their official documentation in case they have changed anything since the video was made, Hope that helps: platform.openai.com/docs/api-reference/chat/create
@Ypk123
@Ypk123 3 ай бұрын
Hey.. Can you make one app for my college project.. I have 10000 INR budget for app. Its very simple if you are interested let me know. 😊
@leomcmillion
@leomcmillion 3 ай бұрын
No. You will need to build it yourself.
@Ypk123
@Ypk123 3 ай бұрын
@@leomcmillion 😅 im very bad with code.. Im using flutterflow but still im bad.. Any suggestion. This app is tournament related app.. So it contains payment and backend api and im very bad at it.. Any suggestions
@knowpal-quiz
@knowpal-quiz 4 ай бұрын
Hi Leo, Please I followed all your tutorials on chatgpt and finally was able to get it working but it only works when I publish the web link and test on my mobile phone but it doesn't seem to work on other phones with the same link. I set up an error message dialog and it confirms that its the chatgpt API request that is failing. The Question is why is it working on my ohone and not on any other phone? Please help
@leomcmillion
@leomcmillion 4 ай бұрын
It could be that your phone or the other phones you are testing on have saved a specific version of your app in the cache. So before testing try and reset the cache in the browser where you are testing the app. It could also be valuable to read the most recent docs for chatGPT since this video was made a while ago and could be outdated from all their recent updates.
@knowpal-quiz
@knowpal-quiz 4 ай бұрын
@@leomcmillion thank you for your quick response. Most of the other phones were being used to test for the first time when we experienced the issue. Please can you direct me to the section of the Chatgpt documentation that covers this. Thanks 🙏🏾
@leomcmillion
@leomcmillion 4 ай бұрын
@@knowpal-quiz platform.openai.com/docs/api-reference/chat/create
@knowpal-quiz
@knowpal-quiz 4 ай бұрын
@@leomcmillion thank you very much.
@logosonarim
@logosonarim 4 ай бұрын
How can it be adapted for the Supabase. It gives an error in the "item.url." part.
@leomcmillion
@leomcmillion 4 ай бұрын
I don't work with Supabase that much so am unsure why .url should not work if you added that field to the right table. Let me know if you find out how to access fields of a supabase document in the custom code.
@andresgordillo4414
@andresgordillo4414 4 ай бұрын
Parcero usted es un crack🙌🙌👶🏿👶🏿
@gargidubey2991
@gargidubey2991 4 ай бұрын
Hey ive been trying to do it for last five hours All the steps are exact same But while testing My complete screen is showing blank white Can you pls help I have a presentation in 4 hours
@leomcmillion
@leomcmillion 4 ай бұрын
Can try my best. Send me a video explaining your problem in more detail, to this email: [email protected]
@freddycruz8459
@freddycruz8459 4 ай бұрын
Hi, if I add a document to the firebase collection the dropdown will be automatically updated? How could I achieve that?
@AaronTran-qp4pl
@AaronTran-qp4pl 4 ай бұрын
Love your tutorials. Could you a a tutorial on how user receive a bill (utility bill) and then pay the bill, and then can view the bill history and using ai to get help as a customer service. Thank you!
@WilliamCoronel-pv8xk
@WilliamCoronel-pv8xk 4 ай бұрын
Successfully followed along and made my own AI Thank you bro great video! One problem at the end though I asked AI what date is today and it gave me October 13,2021 Any help on how i can update it?
@leomcmillion
@leomcmillion 4 ай бұрын
You will need to use a newer model for example gpt 3.5-turbo 0125. But the newer models are still only informed up to a specific date. Since the the llm don't have access to the internet or real time data such as the current date, they can't answer such questions if you do not include that in their context information. Which you then need to update very regularly in order to keep the info relevant. The chat bots are much better on giving information that is more static and does not change day to day.