One thing I couldn’t understand about the movie was that if humans were relegated to nothing more than bags of flesh to be serviced, why wouldn’t the AI just end the species altogether?
Why do many smart humans use so much of their time devising ways to have more sex? Because fulfilling the instinctive urge is pleasurable on a different level than intellectual work. Maybe for the AI, pursuit of its core directive is similarly pleasurable in an axiomatic way.
I see what you did there
"Properly designing" the AI is still an open problem however, which is known as the "alignment problem".