That's a nice thought, and Keynes had the same one almost 80 years ago[1].
Unfortunately, capitalism disagrees. As long as we have capitalism + greed, the owners of the automation will reap the benefits while everyone else struggles to make a living.
[1] http://www.npr.org/2015/08/13/432122637/keynes-predicted-we-...