Sentence:  He walked in upon her <WSD>invitation</WSD> . 
Meaning of the word marked with <WSD> tags:  a request (spoken or written) to participate or be present or take part in something