Human-elephant conflict poses serious conservation challenge in Asia and Africa. We deployed an AI-based camera-alert system in a conflict hotspot in West Bengal, India that accurately detected elephants near villages (266 events) and transmitted real-time alerts ( = 42 seconds). Among detections of separate age and sex classes, lone adult bulls were the most prone to conflict. Real-time alerts permitted rapid response by field personnel to prevent conflict at the site ( = 18.2, SD = 12.4 min to arrival). Frequent detections of humans (33,217 events) on elephant trails highlighted the value of real-time alerts. Four human fatalities and five serious injuries occurred in the study area over a two-year period prior, but none during the study (2023-2024) after deploying the AI-alerting system. Loss of lives and livelihoods underscore the urgency of applying this approach to other elephant ranges and adapting AI models to other conflict-pronespecies to promote coexistence.