Tech companies are looking to revamp search engines with AI chatbots. Heres how they work