Mailchimp automation

From davepoon/buildwithclaude · View interactive version

Mailchimp automation is an AI agent skill from the GitHub repository davepoon/buildwithclaude. Automate Mailchimp email marketing including campaigns, audiences, subscribers, segments, and analytics via Rube MCP (Composio). Always search tools first for current schemas.

How to use this skill

Skill file

Mailchimp Automation via Rube MCP

Automate Mailchimp email marketing workflows including campaign creation and sending, audience/list management, subscriber operations, segmentation, and performance analytics through Composio's Mailchimp toolkit.

Toolkit docs: composio.dev/toolkits/mailchimp

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit mailchimp
  3. If connection is not ACTIVE, follow the returned auth link to complete Mailchimp OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Create and Send Email Campaigns

When to use: User wants to create, configure, test, and send an email campaign.

Tool sequence:

  1. MAILCHIMP_GET_LISTS_INFO - List available audiences and get list_id [Prerequisite]
  2. MAILCHIMP_ADD_CAMPAIGN - Create a new campaign with type, audience, subject, from name [Required]
  3. MAILCHIMP_SET_CAMPAIGN_CONTENT - Set HTML content for the campaign [Required]
  4. MAILCHIMP_SEND_TEST_EMAIL - Send preview to reviewers before live send [Optional]
  5. MAILCHIMP_SEND_CAMPAIGN - Send the campaign immediately [Required]
  6. MAILCHIMP_SCHEDULE_CAMPAIGN - Schedule for future delivery instead of immediate send [Optional]

Key parameters for MAILCHIMP_ADD_CAMPAIGN:

Key parameters for MAILCHIMP_SET_CAMPAIGN_CONTENT:

Pitfalls:

2. Manage Audiences and Subscribers

When to use: User wants to view audiences, list subscribers, or check subscriber details.

Tool sequence:

  1. MAILCHIMP_GET_LISTS_INFO - List all audiences with member counts [Required]
  2. MAILCHIMP_GET_LIST_INFO - Get details for a specific audience [Optional]
  3. MAILCHIMP_LIST_MEMBERS_INFO - List members with status filter and pagination [Required]
  4. MAILCHIMP_SEARCH_MEMBERS - Search by email or name across lists [Optional]
  5. MAILCHIMP_GET_MEMBER_INFO - Get detailed profile for a specific subscriber [Optional]
  6. MAILCHIMP_LIST_SEGMENTS - List segments within an audience [Optional]

Key parameters for MAILCHIMP_LIST_MEMBERS_INFO:

Pitfalls:

3. Add and Update Subscribers

When to use: User wants to add new subscribers, update existing ones, or bulk-manage list membership.

Tool sequence:

  1. MAILCHIMP_GET_LIST_INFO - Validate target audience exists [Prerequisite]
  2. MAILCHIMP_SEARCH_MEMBERS - Check if contact already exists [Optional]
  3. MAILCHIMP_ADD_OR_UPDATE_LIST_MEMBER - Upsert subscriber (create or update) [Required]
  4. MAILCHIMP_ADD_MEMBER_TO_LIST - Add new subscriber (create only) [Optional]
  5. MAILCHIMP_BATCH_ADD_OR_REMOVE_MEMBERS - Bulk manage segment membership [Optional]

Key parameters for MAILCHIMP_ADD_OR_UPDATE_LIST_MEMBER:

Key parameters for MAILCHIMP_ADD_MEMBER_TO_LIST:

Pitfalls:

4. View Campaign Reports and Analytics

When to use: User wants to review campaign performance, open rates, click rates, or subscriber engagement.

Tool sequence:

  1. MAILCHIMP_LIST_CAMPAIGNS - List sent campaigns with report summaries [Required]
  2. MAILCHIMP_SEARCH_CAMPAIGNS - Find campaigns by name, subject, or content [Optional]
  3. MAILCHIMP_GET_CAMPAIGN_REPORT - Get detailed performance report for a campaign [Required]
  4. MAILCHIMP_LIST_CAMPAIGN_REPORTS - Bulk fetch reports across multiple campaigns [Optional]
  5. MAILCHIMP_LIST_CAMPAIGN_DETAILS - Get link-level click statistics [Optional]
  6. MAILCHIMP_GET_CAMPAIGN_LINK_DETAILS - Drill into specific link click data [Optional]
  7. MAILCHIMP_LIST_CLICKED_LINK_SUBSCRIBERS - See who clicked a specific link [Optional]
  8. MAILCHIMP_GET_SUBSCRIBER_EMAIL_ACTIVITY - Get per-subscriber campaign activity [Optional]
  9. MAILCHIMP_GET_CAMPAIGN_CONTENT - Retrieve campaign HTML content [Optional]

Key parameters for MAILCHIMP_LIST_CAMPAIGNS:

Key parameters for MAILCHIMP_GET_CAMPAIGN_REPORT:

Pitfalls:

Common Patterns

ID Resolution

Always resolve names to IDs before operations:

Pagination

Mailchimp uses offset-based pagination:

Subscriber Hash

Many endpoints require subscriber_hash (MD5 of lowercase email):

import hashlib
subscriber_hash = hashlib.md5(email.lower().encode()).hexdigest()

Known Pitfalls

ID Formats

Rate Limits

Parameter Quirks

Content and Compliance

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| List audiences | MAILCHIMP_GET_LISTS_INFO | count, offset |

| Get audience details | MAILCHIMP_GET_LIST_INFO | list_id |

| Create campaign | MAILCHIMP_ADD_CAMPAIGN | type, recipients__list__id, settings__subject__line |

| Set campaign content | MAILCHIMP_SET_CAMPAIGN_CONTENT | campaign_id, html |

| Send test email | MAILCHIMP_SEND_TEST_EMAIL | campaign_id, test_emails |

| Send campaign | MAILCHIMP_SEND_CAMPAIGN | campaign_id |

| Schedule campaign | MAILCHIMP_SCHEDULE_CAMPAIGN | campaign_id, schedule_time |

| Get campaign info | MAILCHIMP_GET_CAMPAIGN_INFO | campaign_id |

| Search campaigns | MAILCHIMP_SEARCH_CAMPAIGNS | query |

| List campaigns | MAILCHIMP_LIST_CAMPAIGNS | status, count, offset |

| Replicate campaign | MAILCHIMP_REPLICATE_CAMPAIGN | campaign_id |

| List subscribers | MAILCHIMP_LIST_MEMBERS_INFO | list_id, status, count, offset |

| Search members | MAILCHIMP_SEARCH_MEMBERS | query, list_id |

| Get member info | MAILCHIMP_GET_MEMBER_INFO | list_id, subscriber_hash |

| Add subscriber | MAILCHIMP_ADD_MEMBER_TO_LIST | list_id, email_address, status |

| Upsert subscriber | MAILCHIMP_ADD_OR_UPDATE_LIST_MEMBER | list_id, subscriber_hash, email_address, status_if_new |

| Batch members | MAILCHIMP_BATCH_ADD_OR_REMOVE_MEMBERS | list_id, segment_id |

| List segments | MAILCHIMP_LIST_SEGMENTS | list_id |

| Campaign report | MAILCHIMP_GET_CAMPAIGN_REPORT | campaign_id |

| All reports | MAILCHIMP_LIST_CAMPAIGN_REPORTS | count, offset |

| Link click details | MAILCHIMP_LIST_CAMPAIGN_DETAILS | campaign_id, count |

| Subscriber activity | MAILCHIMP_GET_SUBSCRIBER_EMAIL_ACTIVITY | campaign_id, subscriber_hash |

| Member recent activity | MAILCHIMP_VIEW_RECENT_ACTIVITY | list_id, subscriber_hash |

| Campaign content | MAILCHIMP_GET_CAMPAIGN_CONTENT | campaign_id |


Powered by Composio

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.