For years, investors have wondered how social media leaders would convert their substantial artificial intelligence spending into high-margin, recurring software revenue.