Email Campaign Builder
Overview
Automate end-to-end email marketing campaigns—from list segmentation and template personalization to scheduling, delivery, and analytics reporting.
When to Use
- •Launching a product announcement or promotional campaign
- •Nurturing leads through drip sequences
- •Re-engaging inactive subscribers
- •Running A/B tests on subject lines or CTAs
- •Generating post-send performance reports
Instructions
- •Accept inputs: subscriber list (CSV/API), campaign goal, brand voice, and ESP credentials.
- •Segment the list based on tags, engagement history, or custom filters.
- •Generate personalized email copy (subject, preview text, body, CTA) for each segment.
- •Create A/B variants for subject lines when requested.
- •Schedule sends using optimal send-time data per segment timezone.
- •Submit campaign to ESP API (Mailchimp, SendGrid, Klaviyo, etc.).
- •After send, pull open rate, click rate, bounce, and unsubscribe metrics.
- •Return a performance summary with recommendations for the next campaign.
Environment
code
ESP_API_KEY=your_esp_api_key ESP_PLATFORM=mailchimp|sendgrid|klaviyo FROM_EMAIL=hello@yourdomain.com FROM_NAME=Your Brand Name AUDIENCE_ID=your_list_or_audience_id
Examples
Input:
code
goal: announce new lithium recycling service segments: [enterprise_buyers, recyclers] tone: professional, urgent a_b_test: true
Output:
code
Campaign "LithiumBuy Launch" created. Segments: 2 | Variants: 2 subject lines Scheduled: 2026-02-20 09:00 EST Estimated reach: 4,200 subscribers