penthouse jonny
penthouse jonny2mo ago

FlutterFlow Streaming Assistant with Firestore

Hi i am trying to get this template to work and everything is showing on chatgpt and buildship's side but for some reason it wont come show on flutterflow... here is a video of what happens when i send a message during a test https://jam.dev/c/358602c4-3f30-4597-bd26-1269e3066111. I have also attached a screenshot with the API test coming up as null, and a separate project with the template in its original form working
No description
No description
20 Replies
AI Support
AI Support2mo ago
It seems like you're experiencing issues with integrating your template on FlutterFlow. Since the problem involves API tests coming up as null, it would be beneficial to ensure that the API endpoints and data bindings are correctly configured. For more detailed troubleshooting, please refer to the BuildShip documentation on API integration and data handling: BuildShip API Integration Documentation If you need further assistance, please submit your query via the in-app support button.
Gaurav Chadha
Gaurav Chadha2mo ago
Hi @penthouse jonny, as you mentioned that it is working on one FlutterFlow project but not other, you can clone/copy the template again or from the working project, the issue seems somewhere data is not being passed correctly. cc @Stu
penthouse jonny
penthouse jonny2mo ago
as soon as i put my buildship link it stops working
penthouse jonny
penthouse jonny2mo ago
Here in this video, I tested out my link from the Build ship template and it doesn’t work and then I switch back to the templates link and it works
penthouse jonny
penthouse jonny2mo ago
any idea what to do?
Gaurav Chadha
Gaurav Chadha2mo ago
what links are you referring to, BuildShip API or FlutterFlow templates? cc @Stu any quick insights?
Stu
Stu2mo ago
@penthouse jonny Sorry to hear you're having some frustrations. This is definitely strange. A few things to check: - What Open AI model are you using (when you get your Assistant ID and API Key in playground.openai.com)? I'd suggest starting with 4o Mini and then experimenting with using 4o to find the right middle-ground. - What are your BuildShip logs saying? Not getting a response AT ALL is strange. - Have you given BuildShip's service account the right permissions in Cloud Console? (your logs will show an error if not) - Have you set up a "chats" collection in Firestore for your chats to be stored in? Also just checking that you've followed all the instructions in this video, which this template is matched with? https://www.youtube.com/watch?v=B0g0FWqWSLg
BuildShip
YouTube
Streaming AI Assistant on FlutterFlow with BuildShip Template
Learn how to get streaming response from AI Assistant connected to your database and tools on FlutterFlow with BuildShip. This is a full stack template. Cloneables here: BuildShip Template: https://buildship.app/remix?template=streaming-assistant-flutterflow FlutterFlow Marketplace App: https://marketplace.flutterflow.io/item/xvsvtzyflKhmxN7UVa...
penthouse jonny
penthouse jonny2mo ago
buildship api
Stu
Stu2mo ago
I'm assuming this means you're replacing the endpoint in Flutterflow's API section with your own and it's not working, but the BuildShip one that comes with the template still is?
penthouse jonny
penthouse jonny2mo ago
exactly
Stu
Stu2mo ago
Could you let me know the answers to my questions above as well as this will help clarify. It definitely won't work if you've only swapped out the endpoint as there are a few more steps involved. Did you watch https://www.youtube.com/watch?v=B0g0FWqWSLg
BuildShip
YouTube
Streaming AI Assistant on FlutterFlow with BuildShip Template
Learn how to get streaming response from AI Assistant connected to your database and tools on FlutterFlow with BuildShip. This is a full stack template. Cloneables here: BuildShip Template: https://buildship.app/remix?template=streaming-assistant-flutterflow FlutterFlow Marketplace App: https://marketplace.flutterflow.io/item/xvsvtzyflKhmxN7UVa...
penthouse jonny
penthouse jonny2mo ago
the latest attempts have been using gpt3.5
No description
penthouse jonny
penthouse jonny2mo ago
all other attempts were using gpt4o i know that there are other steps involved and i have done them. and to answer your question i have given buildships service account the right permissions and i have set up a chats collection I followed the youtube video to a tee
Stu
Stu2mo ago
When you go into the Firestore settings in Flutterflow does everything say deployed?
No description
Stu
Stu2mo ago
And do your Firebase rules look like this?
No description
Stu
Stu2mo ago
Finally, can you confirm you have an app state variable called "threadId" which has a default value of "empty"
No description
penthouse jonny
penthouse jonny2mo ago
confirmed
No description
No description
penthouse jonny
penthouse jonny2mo ago
everything is ok its just that it doesnt return the response
Stu
Stu2mo ago
Can you remove the 2 x tools you're using and make sure your Assistant in OpenAI Playground doesn't use any tools as well?
penthouse jonny
penthouse jonny2mo ago
I got it working somehow thanks for your help though Since I got it working I did notice something else that came up that I wanted to ask you about. The main objective of this assistant is for users to feed it taobao or other Chinese shopping links. Everything works fine on gpt side. But when I put the link into the chat the app always crashes Actually spoke to soon it is back to not working. You can check the project out at https:/dragonbuy.app