How to turn AI failure into AI success