Google has been investing heavily in artificial intelligence and even had its own AI chatbot years before ChatGPT went viral.