Multi-Phase Email Generation Workflow
The AI-powered email copy generation follows a structured multi-phase workflow:Phase 1: Research
The AI research agent gathers information about the brand, products, and target audience. Uses search integration for market research.
Phase 2: Strategy
Based on research, the marketing analyst agent defines the email strategy: tone, messaging, key selling points, and call-to-action approach.
Phase 3: Segmentation
AI-driven dynamic segmentation analyzes customer data to create targeted segments for personalized messaging.
Phase 4: Copy Generation
AI generates email copy tailored to each segment, using brand variables and global prompt variables for consistency.
Phase 5: Visual Content
Hero images and banners are generated using the configured AI image generation provider.
Prompt Variables
The system uses two levels of prompt variables for AI consistency:Global Variables (GlobalVariableEntity)
System-wide variables that apply to all brands:
- Writing style guidelines
- Compliance requirements
- Default tone and voice
Brand Variables (BrandVariableEntity)
Per-brand customization:
- Brand voice and personality
- Product terminology
- Audience descriptors
- Key selling propositions
PROMPT_VARIABLES_GUIDE.md in the repo for detailed configuration.
Marketing Analyst Agent
The marketing analyst (POST /reactivate/marketing-analyst) is an AI agent that:
- Analyzes brand positioning and competitive landscape
- Generates email marketing strategies
- Recommends sequence structures and timing
- Provides copy direction for email templates
Research Agent
The research agent (ResearchSessionEntity) conducts automated research sessions:
- Search integration for market data
- Competitor analysis
- Product trend identification
- Results stored for reuse across campaigns
Product Recommendations
AI-driven product recommendations (ProductRecommendationResultEntity) power personalized product grids in emails based on:
- Customer purchase history
- Browsing behavior
- Product affinity scores
- Trending products in the catalog