If robots do all the work, we can tax those things, and use it to fund universal basic income.
We don't need jobs. What we do need are the things that are created by jobs. If machines can do it better, safer, and cheaper than people, we'll all be better off in the long run.