The Bottom Line Your body uses tryptophan to make several important molecules, including serotonin and melatonin. Serotonin influences your mood, cognition and behavior, while melatonin influences your sleep-wake cycle.