AI-powered pre-lecture chat boosts student brain synchrony and learning outcomes to match human teacher effectiveness. This breakthrough addresses the widespread engagement decline in online education since COVID-19.