Artificial intelligence is beginning to allow many employers to automate functions long performed by human workers