The barrister is still responsible for steaming milk, but I only assume that is because the sounds and smells of that are what make the coffee shop atmosphere.
AFAIK, the barista will try to pull the best espresso out of the beans that they have. I'm not sure variance in customer tastes can be accomadated at this level, beyond a ristretto or an americano.
There's nothing new in this discussion -- we've been automating away manual labor since the Industrial Revolution. We end up creating these human touch jobs with the resulting productivity gains (this is the transition from a manufacturing economy to a service economy, the value isn't in the muscle anymore, it's in the relationship).
In fact, thanks in no small part to capitalism's ruthless efficiency, loneliness and isolation are at record highs. The demand for a little TLC has never been higher.
We'll have fewer pizza makers but more people whose job is essentially to make you feel good.
I know the term "coffeehouse" was a cultural touchstone in the US because it was used in titles of books published before the 80s. Sorry I don't remember specifically, but this "nothing existed until Starbucks" is ridiculous. Starbucks came out of somewhere. Coffeehouses came from Europe to the US, before and after the American revolution.
I'd link directly to it but the site forces you to pay to see the graph unless you clicked on it from a Google search results page, which is bad and evil. I can't find a better source.
Even in NYC, a coffee shop was mostly a Greek diner. While it may reveal my Irish working class roots, I never saw espresso made or consumed outside of an ethnic Italian restaurant in Arthur Ave until I was like 17.
Last week, I had a mediocre latte from a Starbucks at an I95 truck stop adjacent to a cotton field in North Carolina.