Is it possible to automate configuration of Slack Custom bots via code? So far I have found only manual UI-based configuration.
No, that is not possible. You need to manually configure and setup your Slack app. However, once configured in can be installed by multiple Slack teams.