Amazon has been working for months on a major AI upgrade to its Alexa digital assistant.