The chatbot that hundreds of millions use for free is being rebuilt with one eye on Wall Street.