Automation and artificial intelligence are becoming increasingly sophisticated, gradually replacing jobs and, in some cases, entire professions.