The company beat revenue expectations for its second quarter as it also operates under a new "AI-enabled operating model."