I don't really know if it helps.
Cisco has a shell that can be used for some automation.
As far as I know this exists only on CISCO Routers and Switches, I don't know if in the latest ASA IOS the tcl shell has been implemented fully or partially. (never used it on a ASA... ).
To chek if your IOS has the shell you only need to write tclsh in privilege mode.
This shell is the TCL shell where you can use TCL Scripting to automate some actions.
After that you can build the tcl scripts with the actions that you wish and you can make a simple webpage and activate https on your system to execute remotely the actions that you wish.
Plan correctly and implement the this with the appropriate security and you can have a better on-demand automation.
Some guides to scripting: