Hi Dominik Rühl
Do you still have the doubt?
Following that way, I would try to build an object to initialize the js that would listen to changes in fields.
When it was necessary to make a call, it would deal with a run process. To be more detailed, I would need to understand your use case a little more.