Train people well enough so they can leave, treat them well enough so they don't want to.
The ultimate aim of artificial intelligence is to make computers do things that would require intelligence if done by humans.
It is better to be a human being dissatisfied than a pig satisfied; better to be Socrates dissatisfied than a fool satisfied.