XDA Senior Member frapeti has developed an application called ‘Android Bot Maker’ which is an automation tool for your Android device which essentially turns it into a bot, making repetitive tasks easy. The program features a numerically ordered “Actions” list of all the automated actions that the user has programmed the device to carry out. Sequences can be rearranged, saved, imported, cleared, and shared onto various cloud social networks connected to the service. There is also a toggle feature to prevent the device from sleeping while the application is in use.
The program is still in its beta phase so there may be some bugs, but developer frapeti has encouraged users to offer suggestions and reports in the application thread via the source. Of course your device will have to be rooted and running at least Android 4.1 to run the application— check out the source for the application thread on the XDA Developers site. Hit the break for the app’s Play Store link.
Source: XDA Developers Forum