The idea of the God as something outside existence is recent history. Humans are hardwired to worship kings and prophets as gods. AI will be no different, probably a lot more convincing even.
[0] heck, given the echoes of polytheism from earlier eras, I'd argue that the entity in the Bible (especially the earlier parts) isn't even really the Christian God as seen today by self-identified Christians.
If humans did manage to create an artificial being with seemingly magical powers, I don't see why it wouldn't develop a religion around it. Even if the being is not God in itself, it could be argued that mankind's existence has become explained by the divine imperative to bring this superior being into the universe.
Others say it's primary purpose is making large groups of people collaborate instead of fight each other.
Or you could use an AI to synthesize an entirely new religion, complete with its own distant god and its own completed metaphysics -- but that might be a hard sell. In this case, the AI itself is not the object of worship, but it takes upon itself the role of prophet and evangelist to some fiction it has concocted. It would be interesting, though, that's for sure.
Thing is, it doesn't work. The primary purpose of religion is to tackle questions that are metaphysical in nature; to provide an explanation for the deep mysteries of life. To most believers, God isn't a comic book character that's worshipped solely because he is powerful -- He is worshipped as the first mover, the alpha and omega, beyond all constraint -- and the mere fact of His existence explains their own. (He created them in His image, etc.) An AI, however advanced, would be an infinitely lesser being; nothing more than a powerful agent, constrained and embedded alongside us in space and time.