Tasker is on sale for 5 days. Rating 4.6 from 41,448 reviews.
Tasker is one of the original and most powerful automation apps on Android. Highly regarded, it has support built in to many apps and there are many 3rd party plug-ins to extend its capabilities. Unfortunately it's also quite difficult to get your head around the scripting process. However you can look up scripts in the Wiki and modify them to your requirements. Google for other online sources of scripts.
The best automation app for Android. Thanks for the post.