Images before sleeping

At times before I sleep or on waking up my mind seems to conjure up personifications of people. I can see every detail, color and characterization. I have at times tried to silently ask what is the purpose of their visit, but somehow I find it very difficult to keep focus to be able to get any results. How do I go about it?