MacroDroid

5.15.4

MacroDroid is a neat app for creating various tasks on your phone, like turning on the WiFi connection when you launch a certain app and many more. Read more about MacroDroid  

You can automate tasks and set triggers to run certain commands on your phone. The app doesn’t require your phone to be rooted and you can create as many macros as you want. It lets you select triggers for various tasks, including for the phone dialer, messaging apps and many more. You can set MacroDroid to send a message when your battery level reaches a certain level or add various constraints, like time or weekday.
 
In addition, you can use NFC tags like Bluetooth and volume buttons to automate tasks and even use the power button to display the time or other information on your phone. The app is also filled with all sorts of templates that you can enable in order to create macros.