AI is used in e-commerce to personalize the shopping experience through product recommendations, optimize pricing and promotions, automate customer service with chatbots, enhance search and discovery with intelligent algorithms, improve fraud detection, streamline inventory management, and enable data-driven decision-making for businesses to drive growth and efficiency.