Apple's artificial intelligence strategy took center stage at its Worldwide Developers Conference in Cupertino, Calif.