Sequence Structure
Each sequence consists of:- Brand - The brand this sequence belongs to
- Trigger - What initiates the sequence (sign-up, purchase, lapse, etc.)
- Steps - Ordered email steps with delays between them
- Segments - Target customer segments
- Exclusions - Customers or lists to exclude
Sequence Lifecycle
Email Delivery Pipeline
Segment check
The system verifies the customer belongs to the target segments and is not on exclusion lists.
Content generation
If AI-powered, the email copy is generated per customer using the configured AI provider.
A/B Testing
Sequences support A/B testing:- Multiple variants can be created for subject lines, content, and send times
- Traffic is split across variants
- Performance metrics (open rate, click rate, conversion) determine the winner
Exclusion Management
| Entity | Purpose |
|---|---|
BrandExclusionListEntity | Brand-wide customer exclusions |
SequenceExclusionListEntity | Per-sequence opt-outs |
SequenceUnsubscribeCacheEntity | Fast unsubscribe lookups (Redis-backed) |
Metrics
Email sequence metrics are aggregated daily via therefresh-daily-email-metrics cron job and stored in ClickHouse for analytics dashboards.