Documentation

DocsAdvanced FeaturesA/B Testing

A/B Testing

Test different email variants to optimize open rates and conversions. The ab_test node type selects a variant by weighted random and stores the result on the enrollment.

How It Works

  • Add an ab_test node with a variants array.
  • Each variant has an id, templateId, and weight (relative, not percentage).
  • At runtime, a variant is selected via weighted random. The template is sent and the variantId is stored on the enrollment.
  • Query enrollments to calculate per-variant conversion rates.
A/B Test Node
{
  id: "n1",
  type: "ab_test",
  label: "Subject line test",
  variants: [
    { id: "short", templateId: "tmpl_short_subject", weight: 50 },
    { id: "long", templateId: "tmpl_long_subject", weight: 50 }
  ],
  nextNodeId: "n2"
}
Use equal weights (e.g. 50/50) for a clean split test. Use unequal weights (e.g. 80/20) to limit exposure to an unproven variant.