Yes, approved developers using the Twitter API can build chatbots for Twitter. There are no rules against building chatbots for Twitter.