'spur-of-the-moment' definitions:

Definition of 'spur-of-the-moment'

From: WordNet
adjective
In response to an unforeseen need; "a spur-of-the-moment party"