Prokinetics primarily work by stimulating the motility of the gastrointestinal tract through various mechanisms. Some drugs, like metoclopramide, act as dopamine antagonists, which increases the release of acetylcholine in the GI tract. Others, such as erythromycin, mimic the action of the hormone motilin, which promotes stomach contractions. By enhancing peristalsis, these medications help move food more efficiently through the digestive system.