Hey @user11, how’s it going?
It sounds like what you need might just be a more advanced version of the examples in this thread. So I’d suggest starting there — take a look at the approaches folks have shared, and then gradually adapt them to fit your use case, one step (or complexity level) at a time.
Best of luck!