The mechanisms of action of WeiChang'An Pill (WCAP) treat diarrhoea-predominant irritable bowel syndrome (IBS-D) using network pharmacology approach and in vivo studies.