impulse
She had an impulse to buy the bag.
The man saved the woman from the fire on impluse.
The delivery man ran away from the dog on impulse.
noun 1
a sudden strong desire to do something without thinking about whether it is a sensible thing to do