Email Marketing
by @yinanping-cpu
Email marketing automation for campaigns, newsletters, and customer engagement. Use when creating email sequences, drip campaigns, promotional emails, or cus...
clawhub install yinan-email-marketingπ About This Skill
name: email-marketing description: Email marketing automation for campaigns, newsletters, and customer engagement. Use when creating email sequences, drip campaigns, promotional emails, or customer retention workflows. Includes templates, scheduling, and analytics.
Email Marketing
Overview
Complete email marketing automation skill. Create campaigns, manage subscriber lists, design email templates, schedule sends, and track performance.
Features
Quick Start
Create and Send Campaign
python scripts/email_campaign.py --action create --name "Spring Sale" --template promotional --list customers
Send Campaign
python scripts/email_campaign.py --action send --name "Spring Sale"
Add Subscriber
python scripts/email_campaign.py --action add-subscriber --list customers --email user@example.com
Scripts
email_campaign.py
Create and send email campaigns.
Actions:
create - Create new campaignsend - Send campaign to listadd-subscriber - Add subscriber to listArguments:
--action - Action to perform--name - Campaign name--template - Email template--list - Subscriber list--email - Subscriber email (for add-subscriber)--dry-run - Simulate without sendingEmail Templates
Promotional Template
Subject: π {{offer}} - Limited Time Only!Hi {{first_name}},
Great news! We're offering {{discount}} on {{product_category}}.
β¨ What you get:
β’ Benefit 1
β’ Benefit 2
β’ Benefit 3
β° Offer expires: {{expiry_date}}
[Shop Now] {{shop_link}}
Questions? Reply to this email!
Best,
{{store_name}} Team
Taobao: {{taobao_link}}
Douyin: {{douyin_link}}
Newsletter Template
Subject: {{month}} {{year}} - {{highlight}}Hello {{first_name}},
Here's what's new this {{month}}:
Highlights
Update 1
Update 2
Update 3 Featured Products
{{product_showcase}}Tips & Tricks
{{content_tip}}Stay tuned for more!
{{store_name}}
Welcome Series (5 emails)
Day 1: Welcome + Brand Story Day 3: Best Sellers Showcase Day 7: Customer Reviews Day 14: Special Offer Day 30: Feedback Request
Subscriber Lists
List Segments
all_subscribers - Everyonecustomers_active - Purchased in last 90 dayscustomers_vip - High-value customersprospects - Never purchasedinactive - No engagement in 6 monthsImport Subscribers
email,first_name,last_name,source,signup_date
customer@example.com,John,Doe,taobao,2026-01-15
E-commerce Integration
Taobao/Douyin Customer Sync
# Sync recent buyers to email list
python scripts/sync_customers.py \
--store taobao \
--days 30 \
--list recent_buyers
Abandoned Cart Recovery
# Send reminder to customers with pending orders
python scripts/abandoned_cart.py \
--hours 24 \
--discount 5
Post-Purchase Followup
# Thank you + review request
python scripts/post_purchase.py \
--delay 7 \
--request-review true
Analytics
Campaign Metrics
python scripts/campaign_stats.py --campaign spring_sale
Output:
A/B Testing
python scripts/ab_test.py \
--campaign spring_sale \
--variant-a subject_a.txt \
--variant-b subject_b.txt \
--split 50
Best Practices
1. Personalization - Use recipient name, purchase history 2. Timing - Send during business hours (9-11 AM, 2-4 PM) 3. Frequency - Don't spam (1-2 emails/week max) 4. Mobile optimization - Keep subject < 40 chars 5. Clear CTA - One primary action per email 6. Unsubscribe - Always include unsubscribe link 7. Compliance - Follow anti-spam laws (CAN-SPAM, GDPR)
Compliance
Troubleshooting
π‘ Examples
Create and Send Campaign
python scripts/email_campaign.py --action create --name "Spring Sale" --template promotional --list customers
Send Campaign
python scripts/email_campaign.py --action send --name "Spring Sale"
Add Subscriber
python scripts/email_campaign.py --action add-subscriber --list customers --email user@example.com
π Tips & Best Practices
1. Personalization - Use recipient name, purchase history 2. Timing - Send during business hours (9-11 AM, 2-4 PM) 3. Frequency - Don't spam (1-2 emails/week max) 4. Mobile optimization - Keep subject < 40 chars 5. Clear CTA - One primary action per email 6. Unsubscribe - Always include unsubscribe link 7. Compliance - Follow anti-spam laws (CAN-SPAM, GDPR)