ok did an API call thing on flutterflow
ok did an API call thing on flutterflow like this with buildship API URL and named a variable 'prompt', same name in buildship in the first cell (rest API call) and have the variable in the body editor "(x)prompt"
19 Replies
HI @BarbieAsian, I tested a simple GET request on Flutterflow, and it is still returning null. You can confirm this by running the BuildShip API on Postman or Hoppscotch too to verify if there is an issue with FlutterFlows API testing or in the flow.
yeah its definitely something inside flutterflow
i dont know if im passing the variables correctly or not
Okay, got the issue, if you click on, Raw Body as test response on FlutterFlow, you will be able to see result, bacause the type here is string and FlutterFlow is showing null in Body JSON.
but in buildship, its not passing the variable
In BuildShip pass it s a query parameter and then return in variable.
so in flutterflow, its not showing null in the API section
its just showing null in the test mode on my chat app
this is the user input tho, the string that gets sent to the API, the thing that comes back is the the $,results > text
a json response
ooook so it works now i thought the "description" was the value but its not lol the "prompt" value is this thing under the query
now i need to figure out how to have pass string data from flutterflow into that query prompt value
cool
do you know how to pass a value from flutterflow into the rest API call
This video may be useful, it shows how to call a BuildShip API on flutterflow side, you can export and import the API to flutterflow for ease of use. Watch from minute 6:23 - https://youtu.be/TQEYfIqnwcY?si=bktRrgaqFJQ3ODK5
FlutterFlow
YouTube
Open AI Function Calling | Explanation & Demo
In this video we explain what function calling is in Open AI's API and build a demo to show a practical example with FlutterFlow and BuildShip (@rowyio).
Importing Open AI's Open API Specs
https://www.youtube.com/watch?v=zWMaxrdeaMc
Function Calling Documentation
https://platform.openai.com/docs/api-reference/chat/create
Ready to try FlutterF...
It goes under the body section as shown in the above video I believe
ok ill take a look at the video, yes the user input to the API is under body, i just need to figure out how to pass the value from flutterflow --> buildship so buildship can call the API with user input
the results from the APi are returned back to flutterflow correctly tho
is this right? i dont think the prompt value from flutterflow API response & test is getting passed through, is there a way to check what is getting passed through to the buildship API?
You can view logs after you ship/test/trigger your API to see what value is passed/received through your API. https://docs.buildship.com/logging.
it works lol