He turned a failing chatbot app into an AI platform for 400 of the world's biggest companies. The pivot started with one number he could not ignore.