360 Secure SkillHub
360 安全技能中心

Email Marketing

邮件营销自动化 Skill:通过 Python 命令行脚本创建活动、套用邮件模板、发送活动邮件、添加订阅者,并说明订阅者分组、电商客户同步、弃购挽回、购后跟进、活动指标与 A/B 测试流程;但除 email_campaign.py 外其余引用脚本文件缺失,也未给出邮件发送服务配置。

yinanping-cpu
yinanping-cpu
热度 56.84
最近更新 2026-05-17 13:38:14
分类:营销依赖:代码执行 / 读写文件应用场景:邮件起草 / CRM / 市场分析 / 模板 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add yinan-email-marketing
Metadata
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

  • Campaign creation and management
  • Email templates (promotional, welcome)
  • Subscriber list management
  • Basic analytics
  • E-commerce integration support

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 campaign
  • send - Send campaign to list
  • add-subscriber - Add subscriber to list

Arguments:

  • --action - Action to perform
  • --name - Campaign name
  • --template - Email template
  • --list - Subscriber list
  • --email - Subscriber email (for add-subscriber)
  • --dry-run - Simulate without sending

Email 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 - Everyone
  • customers_active - Purchased in last 90 days
  • customers_vip - High-value customers
  • prospects - Never purchased
  • inactive - No engagement in 6 months

Import 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:

  • Sent count
  • Open rate
  • Click rate
  • Unsubscribe rate
  • Conversion rate

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

  • Include physical mailing address
  • Provide clear unsubscribe option
  • Honor unsubscribe within 10 days
  • Don't use deceptive subject lines
  • Keep records of consent

Troubleshooting

  • Low open rates: Test different subject lines, send times
  • High bounce rate: Clean email list, verify addresses
  • Spam complaints: Review content, reduce frequency
  • Low click rate: Improve CTA, make links prominent