Apple unveiled the device as it continues its foray into artificial intelligence and tries to prove it can still innovate.