McDonald's is tapping artificial intelligence to improve operations and customer service at its 43,000 restaurants.