Supply, demand, and prices affect human usage of natural resources in such a way that the most scarce and valued resources are economized and preserved. The practical effect is that valuable resources never really run out.
When robots may be more effective workers and possibly better engineers, they cannot figure out what is valued. That’s the task of entrepreneurs, who bet on what consumers will want.
We've been told that with enough data, we can use sophisticated computing methods to predict the future. That often works with the physical sciences, but predicting human action is something else altogether.