The joy of songwriting only gets messed up if you are trying to follow up a big success, or you are trying to create a hit single, or if you have conscious thoughts of a particular outcome for the music.
If you improvise a riff and the crowd immediately reacts to it, you know you're on to something.

