You can either go through UBI taxing automated work by 90%+ and pretend that capitalism is still a thing, or just nationalize everything and go with communism.
Henry Ford understood this problem with his Model T and realized that if he wants to sell it, he also needs to pay workers to be able to afford it.