Artificial intelligence gaining favor with retailers