Affective polarization – and especially dislike of opposing partisans – is a source of major concern. Consequently, there is great interest in identifying effective approaches for depolarization. Here, we ask whether recent advances in artificial intelligence (AI), namely the development of conversational large language models, can be leveraged to reduce affective polarization. Prior work suggests that such AI-powered chatbots can be powerful tools for changing factual beliefs. However, it remains unclear whether dialogues with an AI chatbot can reduce feelings of animosity towards members of one’s political outgroup. To answer this question, we assign N = 3,874 US-based participants to one of three treatments in which an AI chatbot tries to reduce affective polarization, to a control where they have an irrelevant dialogue with the AI, or to a benchmark condition consisting of the top-performing non-AI intervention identified in a recent mega-study. We find that all of the human-AI dialogue treatments significantly reduce animosity towards opposing partisans and discomfort with having opposing partisans as neighbors or close friends, with the most effective AI treatment achieving treatment effects roughly 70% the size of the effect of the top-performing non-AI intervention benchmark. In addition, we find that the human-AI dialogues increase the likelihood that individuals reciprocate social ties with hypothetical social media profiles associated with their political outgroup by approximately five percentage points, performing at least as well as the non-AI intervention benchmark. We find that supplying the AI chatbot with specific facts about the outgroup increases effectiveness. These findings indicate that providing factual information is an important route to depolarization, and that AI chatbots offer an effective approach for reducing affective polarization that has the potential to be deployed at scale online.