It's just A/B testing, not "AI". It's done the same way as digital ads. You come up with 3 different titles for the same link, and serve them to 3 random audiences, and figure out which one got more engagement.
Google and Facebook of course do offer "ML-based conversion optimization", but it's widely regarded as hoopla by ad buyers.