Is there any way to do automation/repetition based on user input?
Try Repetitouch: https://play.google.com/store/apps/details?id=com.cygery.repetitouch.free

It Allows you to input a set of touches and swipes, and the app will repeat exactly what you have recorded.  You can also set stuff like delays, speed, or amount of repetitions.