This happens while both learning software and creating art. It will be easier for you to understand why and how the piece was created. And like I said in my last article, you should learn from this and apply it to your own work using your own style. It's also fun to consider crazy shit while in the flow, such as the possibility of the matrix really existing, and other deep stuff. Time of day, temperature, doubt, ambition or lack there of, and many more.
Some people have their greatest ideas while just waking up or falling asleep.
Albert Einstein used to sit in a comfortable chair with a lead ball in his hand. Under the lead ball there was a plate set on the floor. He would then scribble down any ideas that came to him while in this state. If the people you work with or family you live with will think your a crazy fool for doing this there is many other techniques. My favorite way is to close my eyes and take deep breaths.