Basically, any job that can be automated will be automated, as soon as it's feasible. This has been going on for millennia, ever since the first genius learned to herd goats rather than hunt them. People just have a very narrow definition of "automate". We don't plow our fields or harvest our crops by hand anymore, leading to massive reductions in farm employment over the past 100 years. But we don't think of tractors as "robots", so it gets ignored.
I have this saying that drives my whole career's thinking... "Have computers do what computers do well, have humans do what humans do well." Computers are wonderful about performing precision tasks perfectly, at incredible speeds. But they are terrible at making decisions in the face of incomplete data. They can be programmed to sort of simulate it, but it's not the same. Meanwhile, humans are incredible at making correct decisions using incomplete or incorrect data, but it's almost impossible to get them to do the same thing the same way twice in a row.
So the jobs that will last are the ones that require decision-making in the face of incomplete/incorrect data. The jobs that will be automated are the precision, repeatable tasks.