Microsoft has ploughed tens of billions of dollars into artificial intelligence (AI). With its stock struggling, the key ...