Blank apllication with multiple asks

Can someone give me a guide or approach to do this? I would greatly appreciate it.

I need to create a screen (Control/Blank) that, depending on the passed parameter, executes a series of actions. So far so good.

These actions are SQL statements (no problem with this) and questions that appear on the screen with 2 buttons to choose yes/no.

Additionally, depending on the answer, it needs to continue down one path or another (I must collect the value and condition the flow).

The problem is that not all processes have the same number of questions, and I don’t know how to reuse the same blank to self-ask again and not lose the thread of actions.

Thank you.