Not long ago, artificial intelligence was shaping up as the boss’s best friend. The do-everything tech promised to lower costs, win over customers and dramatically speed things up. That changed ...