A biogenic amine involved in local immune responses as well as regulating physiological function in the gut and acting as a neurotransmitter.