Skip to main content

Scenario

Some of your content resonates and some doesn’t — but you don’t always know why. You pull posts with comment counts and modification dates as engagement proxies, segment them into high and low performers, create Mavera personas for each segment’s reader profile, then run a focus group to understand what makes certain content connect.

Architecture

Code

Example Output

Error Handling

Some WordPress configurations disable comments entirely or use a plugin like Disqus that doesn’t sync counts back. If comment_count is 0 for all posts, consider integrating with GA4 for pageview data (/integrations/ga4) or use the modified date relative to date as an engagement proxy — frequently updated posts indicate editorial investment.
Full post HTML can be very large. The code truncates excerpts to 500 characters. For richer context without token overflow, use a summarization step: send each post’s content through Mavera responses for a 2-sentence summary, then pass those summaries into the focus group context.