Artificial intelligence has sparked an industry-wide soul-searching about its potential and pitfalls.