Improve the API for chat, the bot