Google-parent Alphabet is planning to launch a chatbot service and more artificial intelligence for its search engine as well as developers, marking a riposte to Microsoft in a rivalry to lead a new wave of technology.