A new AI-driven platform will guide residents through medical emergencies before ambulance crews arrive.