I think it requires two things. First an experience beyond the everyday normal. This is rather more common than generally supposed but is normally kept quiet to avoid embarrassment. Examples include Mendeleyev falling asleep wondering about the elements and waking with the full periodic table in his mind, Crick getting the idea of the double helix for DNA whilst he was stoned on LSD and Einstein having a dream about a waterfall which led to Relativity Theory. I know of somebody who acquired an overwhelming feeling of happiness whilst praying and has subsequently been ordained as a result. Secondly it requires, as a result of the former, to have, or to acquire, a belief in one of the many fairytales invented by various Homo Sapiens to explain these experiences. You will note that the monotheistic religions immediately hijack these experiences and claim them for their own. In years gone by and indeed in some places still, a village would have its own specialist in halucinatory substances and if you needed help you went to him. If in another place you used their local man. He would endeavour to make contact with his 'aspect' of this superior intelligence and assist you if he could. It's a system that served, among others, the Egyptians well for thousands of years. We have come along with our 'modern', 'superior', condescending ideas and murdered millions.