So humanity's sole purpose would be to build AGI? That's an insane view, to think that this is the endgame. Have you really not thought about the consequences? AGI would be built on humanity's reserve of data, so it would have a recollection of human-like tendencies: it would have greed and evilness within itself.
Why are you assuming that this is a creature that will want the good of humanity and idolizing something that doesn't even exist yet?
What happened to humans having human emotions, human intelligence, human purpose? Everything has been stripped away and everyone seems to be out of their minds with this collective AI psycosis.