Google has acquired API.ai, a company that provides a platform for developers to build chatbots.