Production of serotonin in the gut, is linked to the amount of butyrate producing bacteria, which is linked to a healthy gut aka fibre and fermentation
(I read this stuff a while back, don't take any of it at face value without doing your own research)