How to get a store product based on form results

On my site, I have a document generator that changes the PDF design depending on the values the customer selects on the form (dropdown + tick boxes for now), and I wanted to generate products dynamically if the customer decides to purchase it. I’ve been reading a lot around this and I’m not 100% sure it’s feasible. I would need to use the stores-backend API to create a new product every time and assign the right doc to it etc. This would lead to potential repetition in my store and I’m not sure this is the right way to go.

If I add every single product option as a new product, how can I select the right product from the store, depending on the user’s input, to add it later to the cart? Is that even possible? I want to give the user the “ability” to customise the product, even if in the background I have a store with all the potential options and its prices there.

Any help would be highly appreciated, as I’m fairly new to wix and velo and I’m still trying to learn how to solve stuff.

Thanks!