Advances in artificial intelligence will never solve our problems for us. The main reason for this is that most of our problems do not come simply from technical causes but largely from human causes.
As an example of this, let us look at the issue of climate change. Artificial intelligence might some day give us better ways to fight this problem. However, we already have ways to fight it. What we lack is the will to do so because the ways of fighting it tend to cost money and to pit some countries and people against others. Artificial intelligence will never convince people that they should sacrifice to prevent global warming.
Most of our problems are problems of this nature. They do not come about because we lack technology. They come about because we cannot agree on things. Artificial intelligence will never solve this problem.