Often, thoughts are triggered due to external stimuli.
A good book can serve as a stimulus for creativity.
The aroma of the bakery acted as a pleasant stimulus.