Skip to main content
The Reactivate module uses AI for content generation, customer analysis, and email personalization.

Multi-Phase Email Generation Workflow

The AI-powered email copy generation follows a structured multi-phase workflow:
1

Phase 1: Research

The AI research agent gathers information about the brand, products, and target audience. Uses search integration for market research.
2

Phase 2: Strategy

Based on research, the marketing analyst agent defines the email strategy: tone, messaging, key selling points, and call-to-action approach.
3

Phase 3: Segmentation

AI-driven dynamic segmentation analyzes customer data to create targeted segments for personalized messaging.
4

Phase 4: Copy Generation

AI generates email copy tailored to each segment, using brand variables and global prompt variables for consistency.
5

Phase 5: Visual Content

Hero images and banners are generated using the configured AI image generation provider.
6

Phase 6: Assembly & Review

Content blocks, images, and copy are assembled into complete email templates ready for review and scheduling.

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
See the 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