Humans have been becoming obsolete for many, many years. Ever since the industrial revolution where automation started to become commonplace, fewer people are required to manufacture items.
The robotic production line at a car manufacturing plant is a good example of modern-day human redundancy.
Robotics helps remove some of the mundane, and leaves humans to concentrate on the more skilful and creative functions at the car plant.
Human behaviour will change over time and people will have to adapt, or have no role to play in society. Adapting means using their creativity, expertise, and thought processes for the benefit of others, such as in art, medicine, or providing social care for those less fortunate, or for support the young or elderly.
Money, or lack of, is the nut that needs cracking. I can't be sure what the alternative is, but a return to bartering might be worth consideration.
The alternatives are too unpleasant to consider.
Robots and computers capable of running society, or being truly creative, are a long way off, imho.
</dinosaur returns to the cave>