Automation doesn't wreck the economy. Imagine how many scribes were put out of work when the printing press was invented.
Imagine how many harvesters were put out of work when the tractor was invented.
Automation doesn't ruin the economy, it shifts it.
We'll see about that in the next few decades when AI can not only do any job that even the most skilled and creative human can do, but can be trained much faster than the redundant human workforce. Prostitution might survive for a while, but I don't fancy manning a glory hole through my golden years