Read: Society and Industrial Change by Rudi Volti
It basically says that history has shown us that AI and software can be replaced throughout the century by mechanical weevers or improved blast furnaces or electronic phone switches. New changes always seem like the end of all jobs and no one will have a job and we'll all die but the end result is always that more jobs in different or related fields are created to make up for big production-increasers. Think about it. Who ever heard of a computer technician or a radiologist or a tv-repairman or cable tv technician before the 1930's?