Running the API responses I listed in Repating groups one by one with another prompt

Hello Everyone! I’m quite new to Bubble and need your vast knowledge. I would be glad if you help.

I have a workflow like this: The user enters “notes” on the page named “create_notes” and presses the “continue” button. Thus, an API call is made and based on the user’s notes, the items that should be included in a contract to be created within the scope of these notes come as a response from the API. I am listing this response of the API one by one, splited by “@” in the repeating group on the page named “outlines”.

Here’s where I’m stuck: I’m trying to run the items listed in the repeating group and approved by the user, one by one, with another prompt (prompt2) and present them on the “content” page.

In other words, user-approved items should work as [item x and prompt2], [item x+1 and prompt2] …

Another challenge is that the user creates a contract with these steps. For this reason, both the notes entered at the beginning and the previous items are not remembered. (To prevent the API from becoming out of context and repetitive)

Explore recursion logic

If you set up your Bubble workflow, store user notes and approved items in the database. Use a repeating group for approvals on the outlines page, then run a recursive backend workflow to process each item with prompt2 and display results on the content page. This keeps everything contextually connected across steps.

thank you for the advice

You are great, thank you very much for your help.