The answer is right above you. Universal Income. However I suspect that instead society will let the owners of the automation become staggeringly wealthy while 50% of the working population are on the bread-line. Then there will be riots, then perhaps we will get a more equitable sharing of the value that society has created.