The AI revolution already claimed hundreds of jobs at the online tutoring company. Now it could save its business.