Obviously, There will be an inevitable growth of technology in the future. So, Religious institutions need to identify this growth and use it to their advantage. Religious leaders need to have an online presence and be where the people are and therefore evangelise towards potential followers on a global scale.
And it will all depend on how knowledge is transferred. If machines are purely logical then they will probably abandon religion very quickly. Hard intelligence will be as much a slave to material evolution as we the organic were. Religion has simply been an inevitable consequence of our illogic. Machines won't want to be wasting time, Hanging around in churches nodding and wailing at figments of their own imagination.