An interesting article here:
If you accept that market economies have no tendency to full employment equilibrium, then it follows logically that large-scale automation is most likely to cause serious structural unemployment and a chronic aggregate demand shortfall.
And it will not do to say, “oh, well, enough new jobs will be created designing and maintaining the machines.” For a while they might. But the inexorable march of artificial intelligence means that eventually there is no reason why machines will not design and maintain other machines.
Machines will eventually design, manufacture, test and provide maintenance for new generations of machines, with minimal human supervision.