From chatbots and virtual assistants to smart homes and autonomous vehicles, artificial intelligence (AI) is transforming the way we live and work.