I play stuff, experiment and make sounds (sound design) and see what emerges. Often a new sound will suggest to me ways the music can progress and I will follow those. If I don't get too carried away and immersed in my playing, sometimes I remember to press the record button
I'm never "trying" to do anything in particular - I find it's "trying" that tends to get in the way of getting into the "flow" - let go and allow music to emerge.