A.I. has taken newsrooms by storm, setting off industrywide soul-searching about its potential and pitfalls.