as it grapples with slower monetization of its artificial intelligence offerings while facing tough competition from startups.