How do I create a bot?

You can create bots by using Typetalk API. Please refer to here for more information about Typetalk API.