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
SendGrid’s A/B testing tells you which variant won, but not why. You ran an A/B test on subject lines — Variant A (“Your Q2 Playbook”) beat Variant B (“3 Strategies Your Competitors Miss”) by 4% in open rate. But open rate doesn’t explain the psychology. This job pulls the A/B test results, identifies the losing variant, then runs a Mavera Focus Group asking personas: “What would need to change about this email for you to engage?” The output gives you qualitative insight that turns a binary A/B result into actionable creative direction. Flow: SendGrid Single Send A/B Results → Identify losing variant → MaveraPOST /api/v1/focus-groups with losing variant as stimulus → “What would need to change?” → Qualitative A/B intelligence
Architecture
Code
Example Output
Error Handling
A/B test not found
A/B test not found
Not all single sends use A/B testing. The code filters for
send_to.ab_test presence. If no A/B sends exist, it exits gracefully.Variant content access
Variant content access
SendGrid’s API may not expose all variant HTML content directly. The code falls back to
plain_content. For full variant access, use the detail endpoint per variant ID.Focus Group timeout
Focus Group timeout
A/B-focused groups with 3+ personas and 5 questions may take 60-90s. The polling loop allows ~100s. Increase iterations for larger groups.