The software company beat expectations for earnings and revenue as it continued to expand its artificial intelligence offerings.