Automation has been going on since the industrial revolution, yet new jobs seem to keep on being created. My current job didn't really exist twenty years ago.
People keep predicting the obsolescence of humans but unemployment these days in most rich world economies is not that high.
There's a lot of people who have been dropping out of the labour market in the last couple decades, partially this is early retirement but there's also long term disability, or simply getting by on the charity of family members.
There's also a lot of reasons to think that the automation of the future is going to have very different effects than the automation of the past. Even China is getting a bit of trouble because some of their factory jobs are going away due to automation.