5-Hydroxytryptophan is used to stimulate the endogenous production of serotonin. It may also be used before bedtime to stimulate the production of melatonin.