How to create bot task dynamically

This post is the same as Creating dynamic bot builder through 3rd party application