Sentence:  When they reached their neighbor 's house , Pamela said a few polite words to Grace and kissed Melissa lightly on the forehead , the impulse <WSD>prompted</WSD> by a stray thought - of the type to which she was frequently subject these days - that they might never see one another again . 
Meaning of the word marked with <WSD> tags:  give an incentive for action