Bile duct epithelial cells, also known as cholangiocytes, line the bile ducts and play a crucial role in modifying the composition of bile. They are involved in the secretion and absorption of water, electrolytes, and other organic molecules, thereby regulating bile flow and composition.