BBAzn
BBAzn10mo ago

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"
No description
No description
19 Replies
Gaurav Chadha
Gaurav Chadha10mo ago
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.
BBAzn
BBAzn10mo ago
yeah its definitely something inside flutterflow i dont know if im passing the variables correctly or not
Gaurav Chadha
Gaurav Chadha10mo ago
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.
No description
BBAzn
BBAzn10mo ago
but in buildship, its not passing the variable
Gaurav Chadha
Gaurav Chadha10mo ago
In BuildShip pass it s a query parameter and then return in variable.
No description
No description
BBAzn
BBAzn10mo ago
so in flutterflow, its not showing null in the API section
No description
BBAzn
BBAzn10mo ago
its just showing null in the test mode on my chat app
BBAzn
BBAzn10mo ago
No description
BBAzn
BBAzn10mo ago
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
BBAzn
BBAzn10mo ago
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
No description
BBAzn
BBAzn10mo ago
now i need to figure out how to have pass string data from flutterflow into that query prompt value
Gaurav Chadha
Gaurav Chadha10mo ago
cool
BBAzn
BBAzn10mo ago
do you know how to pass a value from flutterflow into the rest API call
No description
Harini
Harini10mo ago
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...
Harini
Harini10mo ago
It goes under the body section as shown in the above video I believe
BBAzn
BBAzn10mo ago
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
BBAzn
BBAzn10mo ago
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?
No description
No description
No description
No description
No description
Gaurav Chadha
Gaurav Chadha10mo ago
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.
BBAzn
BBAzn10mo ago
it works lol