For years we've been warned that technological advances and artificial intelligence (AI) are set to sweep people out of work.