Tryptophan

is an essential amino acid which plays an important role in nitrogen balance and is a precursor of the neurotransmitter serotonin, which is essential in regulating appetite, sleep, mood, and pain, and melatonin, a hormone, which regulates sleep and wakefulness.