| id | ailey-com-mailchimp |
| name | Mailchimp Email Marketing Manager |
| description | Comprehensive Mailchimp integration for email marketing campaigns, subscriber management, automation workflows, and analytics. Includes automatic account tier detection (Free/Standard/Pro/Premium), setup instructions, and AI-ley configuration guidance. Use when managing email campaigns, subscriber lists, marketing automation, or analyzing email performance. |
| keywords | ["mailchimp","email marketing","campaigns","subscribers","automation","analytics","newsletter","segmentation","email lists"] |
| tools | ["mailchimp-client","campaign-management","subscriber-management","automation","analytics","list-management"] |
Mailchimp Email Marketing Manager
Comprehensive Mailchimp integration with intelligent account tier detection and multi-tier feature support. Automatically detects plan level and provides upgrade guidance.
Overview
Mailchimp's platform operates on a tier system with different feature sets and contact limits. This skill:
- Automatically detects your account plan tier (Free/Standard/Pro/Premium)
- Adapts features based on available tier capabilities
- Provides upgrade paths for advanced features
- Works immediately with Free tier (500 contacts)
- Scales up with paid plan tiers
- Monitors contact usage and limits
When to Use
- Creating and sending email campaigns
- Managing subscriber lists and segmentation
- Building automated email workflows
- Analyzing campaign performance metrics
- Growing email marketing audiences
- Personalizing email content
- A/B testing email campaigns
- Tracking engagement and conversions
Installation
cd .github/skills/ailey-com-mailchimp
npm install
Configuration
1. Create Mailchimp Account
Visit mailchimp.com and sign up for an account (Free tier available).
2. Generate API Key
- Log in to Mailchimp
- Go to Account → Extras → API Keys
- Click Create A Key
- Copy your API key (format:
key-us1)
- Note the server prefix (e.g.,
us1 from key-us1)
3. Environment Setup
Create .env file:
MAILCHIMP_API_KEY=your_api_key_here
MAILCHIMP_SERVER_PREFIX=us1 # Extract from API key suffix
MAILCHIMP_LIST_ID=your_default_list_id # Optional
MAILCHIMP_TIMEOUT=10000
MAILCHIMP_RATE_LIMIT=10
4. Add to AI-ley Configuration
Edit .github/aicc/aicc.yaml:
integrations:
mailchimp:
enabled: true
apiKey: ${MAILCHIMP_API_KEY}
serverPrefix: ${MAILCHIMP_SERVER_PREFIX}
accountTier: auto
defaultListId: ${MAILCHIMP_LIST_ID}
quotaMonitoring: true
features:
- campaigns
- automation
- subscribers
- analytics
Account Tiers & Features
Free Tier (500 Contacts)
What you get:
- Up to 500 contacts
- 1,000 email sends per month
- Basic email templates
- Marketing CRM
- Website builder
- Basic reporting
Limitations:
- No advanced segmentation
- No A/B testing
- No multivariate testing
- Limited automation
- Mailchimp branding on emails
API Access: ✅ Full REST API access
Cost: Free
Standard Tier (10,000+ Contacts)
What you get:
- Up to 10,000 contacts (can upgrade to 50K+)
- 12x email sends per month (based on contact count)
- All Free features PLUS:
- Advanced segmentation
- A/B testing
- Custom branding
- Enhanced analytics
- Landing pages
- Behavioral targeting
- Send time optimization
Limitations:
- No predictive analytics
- No advanced automation
- No SMS marketing
- Limited support
API Access: ✅ Full REST API access with priority
Cost: Starting at $20/month
Upgrade: mailchimp.com/pricing/
Pro Tier (250,000+ Contacts)
What you get:
- Up to 250,000 contacts
- Unlimited email sends
- All Standard features PLUS:
- Predictive analytics
- Advanced automation
- Multivariate testing
- SMS marketing (add-on)
- Priority support
- Comparative reporting
- Dynamic content
Limitations:
- No dedicated support
- No custom contracts
API Access: ✅ Full REST API with priority support
Cost: Starting at $350/month
Upgrade: mailchimp.com/pricing/
Premium Tier (1M+ Contacts)
What you get:
- 1,000,000+ contacts (custom limits)
- Unlimited email sends
- All Pro features PLUS:
- Dedicated account manager
- Custom integrations
- White-label options
- Advanced compliance tools
- 24/7 phone support
- Onboarding assistance
API Access: ✅ Full REST API with dedicated support
Cost: Custom pricing (contact sales)
Upgrade: mailchimp.com/contact/
Quick Start
1. Verify Setup
npm run detect
This will show your account tier and available features.
2. Authenticate
npm run auth -- verify
3. Create Your First List
npm run list -- create \
--name "Newsletter" \
--from-name "Your Name" \
--from-email "you@example.com"
4. Add Subscribers
npm run subscriber -- add \
--list-id YOUR_LIST_ID \
--email subscriber@example.com \
--first-name John
5. Create Campaign
npm run campaign -- create \
--list-id YOUR_LIST_ID \
--title "Welcome Email" \
--subject "Welcome to our newsletter" \
--from-name "Your Name" \
--from-email "you@example.com"
API Commands
Account Management
npm run detect
npm run auth -- info
npm run auth -- verify
npm run auth -- test
npm run diagnose
List Management
npm run list -- all
npm run list -- get --list-id LIST_ID
npm run list -- create \
--name "My Newsletter" \
--from-name "John Doe" \
--from-email "john@example.com"
npm run list -- stats --list-id LIST_ID
npm run list -- members --list-id LIST_ID --status subscribed --limit 100
Subscriber Management
npm run subscriber -- add \
--list-id LIST_ID \
--email user@example.com \
--first-name John \
--last-name Doe \
--status subscribed
npm run subscriber -- get --list-id LIST_ID --email user@example.com
npm run subscriber -- update \
--list-id LIST_ID \
--email user@example.com \
--first-name Jane \
--status unsubscribed
npm run subscriber -- remove --list-id LIST_ID --email user@example.com
Campaign Management
npm run campaign -- list --status sent --limit 20
npm run campaign -- create \
--list-id LIST_ID \
--title "Monthly Newsletter" \
--subject "Your Monthly Update" \
--from-name "John Doe" \
--from-email "john@example.com"
npm run campaign -- get --campaign-id CAMPAIGN_ID
npm run campaign -- send --campaign-id CAMPAIGN_ID
npm run campaign -- stats --campaign-id CAMPAIGN_ID
Automation
npm run automation -- list
npm run automation -- get --automation-id AUTO_ID
npm run automation -- start --automation-id AUTO_ID
npm run automation -- pause --automation-id AUTO_ID
Analytics
npm run analytics -- account
npm run analytics -- list --list-id LIST_ID
npm run analytics -- campaign --campaign-id CAMPAIGN_ID
Usage in AI-ley Skills
TypeScript Integration
import { createMailchimpClient } from '@ailey/com-mailchimp';
const client = createMailchimpClient();
const account = await client.detectAccountTier();
console.log(`Account: ${account.tier} (${account.contactLimit} contacts)`);
const list = await client.createList({
name: 'Newsletter',
permissionReminder: 'You signed up for our newsletter',
contact: {
company: 'My Company',
address1: '123 Main St',
city: 'New York',
state: 'NY',
zip: '10001',
country: 'US'
},
campaignDefaults: {
fromName: 'John Doe',
fromEmail: 'john@example.com',
subject: 'Newsletter Update',
language: 'en'
}
});
await client.addSubscriber(list.id, {
email: 'subscriber@example.com',
status: 'subscribed',
mergeFields: {
FNAME: 'Jane',
LNAME: 'Smith'
}
});
const campaign = await client.createCampaign({
type: 'regular',
listId: list.id,
title: 'Welcome Campaign',
subject: 'Welcome to our newsletter!',
fromName: 'John Doe',
fromEmail: 'john@example.com'
});
await client.sendCampaign(campaign.id);
const stats = await client.getCampaignStats(campaign.id);
console.log(`Opens: ${stats.opens}, Clicks: ${stats.clicks}`);
Workflows
Workflow 1: Newsletter Setup
Create and configure a newsletter list:
npm run list -- create \
--name "Monthly Newsletter" \
--from-name "Marketing Team" \
--from-email "newsletter@example.com"
npm run subscriber -- add --list-id LIST_ID --email user1@example.com --first-name Alice
npm run subscriber -- add --list-id LIST_ID --email user2@example.com --first-name Bob
npm run list -- members --list-id LIST_ID
Workflow 2: Send Campaign
Create and send an email campaign:
npm run campaign -- create \
--list-id LIST_ID \
--title "September Newsletter" \
--subject "Your September Update" \
--from-name "John Doe" \
--from-email "john@example.com"
npm run campaign -- send --campaign-id CAMPAIGN_ID
npm run campaign -- stats --campaign-id CAMPAIGN_ID
Workflow 3: Automation Setup
Create automated welcome series:
npm run automation -- list
npm run automation -- start --automation-id AUTO_ID
npm run automation -- get --automation-id AUTO_ID
Workflow 4: Subscriber Management
Manage your subscriber list:
for email in user1@example.com user2@example.com user3@example.com; do
npm run subscriber -- add --list-id LIST_ID --email "$email"
done
npm run list -- members --list-id LIST_ID --status subscribed
npm run subscriber -- update \
--list-id LIST_ID \
--email user1@example.com \
--first-name "Alice"
npm run subscriber -- remove --list-id LIST_ID --email user3@example.com
Setup Instructions
Getting Your API Key
-
Login to Mailchimp
-
Navigate to API Keys
- Click your profile icon (top right)
- Select Account
- Click Extras → API Keys
-
Create API Key
- Click Create A Key
- Copy the generated key (format:
key-us1)
- Important: Save this key securely - it won't be shown again
-
Extract Server Prefix
- Your API key format:
YOUR_KEY-us1
- Server prefix:
us1 (the part after the dash)
- Common prefixes:
us1, us2, us3, us19, eu1, ca1
Missing API Access
If you don't see API Keys in your account:
-
Verify Account Status
- Ensure your account is fully activated
- Complete email verification
- Add payment method (if on paid plan)
-
Check Plan Requirements
- API access available on all tiers (including Free)
- If unavailable, contact Mailchimp support
-
Contact Support
Configuring AI-ley
Add Mailchimp integration to .github/aicc/aicc.yaml:
integrations:
mailchimp:
enabled: true
apiKey: ${MAILCHIMP_API_KEY}
serverPrefix: ${MAILCHIMP_SERVER_PREFIX}
accountTier: auto
defaultListId: ${MAILCHIMP_LIST_ID}
features:
- campaigns
- automation
- subscribers
- analytics
- segmentation
- testing
timeout: 10000
rateLimit: 10
retryAttempts: 3
quotaMonitoring: true
quotaWarningThreshold: 80
Troubleshooting
Invalid API Key
Error: Authentication failed
Solution:
- Verify API key format:
key-us1 (must include server prefix)
- Check server prefix matches key suffix
- Regenerate API key if needed
- Ensure no extra spaces in
.env file
List Not Found
Error: Resource not found
Solution:
- Verify list ID:
npm run list -- all
- Check list wasn't deleted
- Ensure list belongs to your account
Rate Limit Exceeded
Error: Rate limit exceeded
Solution:
- Reduce request frequency
- Increase
MAILCHIMP_RATE_LIMIT in .env
- Upgrade to higher tier for increased limits
Contact Limit Reached
Error: Contact limit exceeded
Solution:
- Check current usage:
npm run analytics -- account
- Remove inactive subscribers
- Upgrade plan tier for higher limits
- Archive old campaigns to reduce contacts
Feature Availability Matrix
| Feature | Free | Standard | Pro | Premium |
|---|
| Contacts | 500 | 10K+ | 250K+ | 1M+ |
| Email Sends/Month | 1,000 | 12x contacts | Unlimited | Unlimited |
| API Access | ✅ | ✅ | ✅ | ✅ |
| Campaign Creation | ✅ | ✅ | ✅ | ✅ |
| Basic Automation | ✅ | ✅ | ✅ | ✅ |
| Basic Segmentation | ✅ | ✅ | ✅ | ✅ |
| Advanced Segmentation | ❌ | ✅ | ✅ | ✅ |
| A/B Testing | ❌ | ✅ | ✅ | ✅ |
| Multivariate Testing | ❌ | ❌ | ✅ | ✅ |
| Predictive Analytics | ❌ | ❌ | ✅ | ✅ |
| SMS Marketing | ❌ | ❌ | ✅ | ✅ |
| Priority Support | ❌ | ❌ | ✅ | ✅ |
| Dedicated Support | ❌ | ❌ | ❌ | ✅ |
Resources
Support
For issues or questions:
- Run diagnostics:
npm run diagnose
- Check Mailchimp Help Center
- Review API Reference
- Contact Mailchimp Support
version: 1.0.0
updated: 2026-02-01
reviewed: 2026-02-01
score: 4.6