Okay, I’ll just program it to pray and ask the Lord to give it a soul and free will. Maybe limited free will.
You must have a functioning will to be able to pray in the first place.