Creating outputs with AI based on user inputs

Hi,

I apologize in advance if this is a basic question but I have spent hours searching for a guide/answer and cannot find what I need. I am also very new to Bubble with low technical knowledge.

Basically I am using the OpenAI API to generate an output but I want to allow users to preselect options (sometimes multiple) which determine the action the API takes and the output it produces.

For example:

INPUT BOX > where the user will paste their text
RADIO BUTTONS > Where the user will select what they want outputting
BUTTON > Clicking to generate using API but using the inputs from the radio buttons.

Each radio button will have its own use case and require a custom instruction to OpenAI to produce a custom result for that user. As a rough example, if the options were 100 - 1000 - 5000 when the user selects one the API instruction would output that amount of words as a result. However, it’s going to be more complex than that.

I have successfully built the first stage using the API so the input and generate button works following an instruction but now I am completely lost.

Do I need several API calls with multiple different workflows for each button - how do I even set that up on one page?
Is this even possible?

I appreciate anyones help!


Update: I have added Ionic toggle to define each preset and then added an extra condition in the workflow to only process if the toggle is selected (with specific instructions). what am I missing.