Documentation Index
Fetch the complete documentation index at: https://docs.mavera.io/llms.txt
Use this file to discover all available pages before exploring further.
Scenario
Over time, you’ve created 20+ segments in Klaviyo — “VIP”, “High CLV”, “Frequent Buyers”, “Loyal Customers” — and many of them overlap significantly. A customer might be in 5 segments at once, receiving redundant messaging. You pull all segments with member counts, identify overlaps, and send the data to Mave for analysis. The result is a simplified segmentation strategy that eliminates redundancy.Architecture
Code
Example Output
Error Handling
Segment definitions are complex
Segment definitions are complex
Klaviyo segment definitions use a nested JSON structure for conditions. The code truncates to 200 chars for readability. For precise overlap analysis, compare the actual condition logic, not just names.
profile_count is eventual
profile_count is eventual
The
profile_count field updates asynchronously. It may lag behind real-time segment membership by minutes to hours. For exact counts, query the Profiles endpoint filtered by segment.Pagination for large segment lists
Pagination for large segment lists
Klaviyo returns segments paginated. The code fetches up to 3 pages (~300 segments). If you have more, increase the page loop or use a higher
page[size].What’s Next
Klaviyo Integration
Back to Klaviyo integration overview
Flow Content Refresh
Rewrite underperforming flow content
Product Affinity Focus Group
Cross-sell validation with Likert + NPS
Mave Agent
Full reference for POST /api/v1/mave/chat