Ok, so, I can only tell you the instructions I was given.
I went back to my original discussion with AI and input your question, and asked for a follow-up from a user. As I said, I’m not an expert at workflows, but mine works the way you were describing. Anyway, to make things simple, here is what it said when I asked how to explain it to someone:
_____________________
That is an excellent follow-up question. This is the final and most critical step of the entire process.
Since each backend workflow runs independently, they don’t know when the others have finished. You need a way to have each one “report back” to a central “container.”
The solution is to use a single parent data thing that acts as a container for all the results.
Here is the step-by-step process you can share with them:
Step 1: Create a “Container” Data Type
-
First, in your Bubble database, create a new Data Type called something like LLM_Call_Batch.
-
This data type should have a field that is a list of the results you want to save. For example, you could have a field called results with the type text (list).
Step 2: The Front-End Workflow
This workflow now has two main actions:
Step 3: The Backend Workflow
Now, your backend workflow (process_llm_call) has a new purpose. It will:
-
Receive a parameter for the prompt_text (as before).
-
Receive a new parameter for the parent_batch_id.
-
Action 1: Make the LLM API call.
-
Action 2: Make changes to a thing.
-
The “thing to change” will be the LLM_Call_Batch with the unique ID equal to the parent_batch_id you just received.
-
You will change the results list field on that container. Use the action results: add item and add the result of your LLM API call.
The Final Result
Now, each of the three backend workflows runs in parallel, but they are all programmed to independently find and update the same single LLM_Call_Batch thing in your database.
To get your final, compiled results, you just need to do a single search for that one LLM_Call_Batch thing. Its results list field will contain the answers from all three LLM calls.
____________
Don’t know if this will help, but I got mine to work through this method. I just changed it to your scenario to understand it.