AI is used in marketing automation to analyze customer data, automate repetitive tasks, personalize customer experiences, and optimize campaign performance. It enables functions like lead scoring, content personalization, chatbots, and predictive analytics to improve marketing efficiency and effectiveness.