How can I run a sequence of applications or actions on certain triggers on Android? Is there is free application or some trick to run sequence of applications on android?
For example I want to start the following sequence:
    Wi-Fi --> Tor --> Browser
You should try Tasker for simple interface and quick setup.

If you are willing to do something by code and very specific, a good alternative is onX by Microsoft, you can write your code to do exactly the things you wanna do. Also there are some ready recipes that you can quickly setup.