This is going to blow your mind, but use of robotics and automation in manufacturing is already a well established process. Now the idea is just being applied to a wider range of tasks because robots are becoming more versatile.
Meanwhile, under capitalism, I would imagine employees would starve, but in a socialist system people can just have more free time to enjoy their lives having been freed from drudgery. It's kind of hilarious how everybody in the west was doing concern trolling about aging population in China, and now that China is automating manual labor at scale the concern trolling moved to these mythical unemployed people.