Artificial intelligence (AI) and machine learning (ML) are working their way into a wide range of professions, largely on the promise that they will make complicated processes more efficient and reduce the workload on humans—particularly the dull, repetitive work that slows things down and produces errors.