Specifically, you can read about Automats, which were basically early vending machines: https://en.wikipedia.org/wiki/Automat
The point is that the automation of the customer service part of restaurants existed before and disappeared for ~60 years.