Hi! I’m creating an app that uses OpenAI. I’m trying to achieve the following:
The user selects the desired options using toggles, writes their text, and clicks send. Then, both the text and the information about the selected options are sent to OpenAI.
But I don’t understand how to get the toggle on/off options into my prompt.
So far I’ve only tried to add the toggled choices to a the database record (I’m making a new db record for each clicked ‘send’): But I obviously don’t know what I’m doing… I’m really quite new to Bubble. How would you add the toggled text to the backstage? With the backend workflows?
I have a workflow that when “send” is clicked a new thing is created (a new record in the question database) with the users question as the only field.
And then I have a backend workflow that calls the api and makes the promt with the question from the db
I can not seem to understand how I can get the situation of checked og not-checked toggles to input some instructions in the call.