> Connect Mailchimp to add buyers to an audience, tag and untag them, record events that start Customer Journeys, and start sequences when contacts subscribe.

Source: https://plandalf.com/docs/automations/mailchimp

Automations

# Mailchimp

Connect Mailchimp so a sequence can add buyers to an audience, tag them and record a purchase event that starts a Customer Journey. On refund, another sequence can remove the tags. A contact subscribing or unsubscribing can start a Plandalf sequence too.

## Get a Mailchimp API key

1.  ### Open your API keys
    
    In Mailchimp, open your profile menu, then **Extras → API keys**.
    
2.  ### Create a key
    
    Click **Create A Key** and name it "Plandalf".
    
3.  ### Copy all of it
    
    Copy the whole key, including the part after the dash, such as `-us21`. That's your account's data centre, and Plandalf needs it to reach your account.
    

## Connect Mailchimp

In Plandalf, open **Automations → Marketplace** and click **Connect** on Mailchimp. Paste the key into **API Key** and click **Connect**. The key works for every audience in the account.

## Steps you can add

Every step asks for the **Audience** and the contact's **Email Address**, usually `{{trigger.customer_email}}`.

Step

What it does

Other fields

**Add or Update Contact**

Adds a contact to the audience, or updates the one with that email.

First Name, Last Name, Status for New Contacts, Merge Fields, Tags

**Add Tags to Contact**

Adds tags, adding the contact and creating new tags as needed.

Tags (required), First Name, Status for New Contacts

**Remove Tags from Contact**

Removes tags. Skipped when the email isn't in the audience.

Tags (required)

**Record Event**

Records a custom event that a Customer Journey can start from.

Event Name (required), Event Properties, Occurred At, First Name, Status for New Contacts

**Unsubscribe Contact**

Unsubscribes a contact from the audience's marketing emails. Skipped when the email isn't there.

None

**Status for New Contacts** applies only when the email isn't in the audience yet:

Status

Meaning

Subscribed (default)

Gets your marketing emails

Pending

Mailchimp emails them to confirm first (double opt-in)

Transactional

In the audience, but not on your marketing list

**Merge Fields** use the tags under **Audience → Settings → Audience fields and \*|MERGE|\* tags**, such as `PLAN`. Create merge fields in Mailchimp first. Blank values are skipped.

For **Record Event**, the name is 2 to 30 letters, numbers, dashes or underscores; spaces become underscores. Start your Customer Journey on "Event: " and that name.

## Start a sequence from Mailchimp

**Contact Subscribed** runs when someone subscribes to an audience, and **Contact Unsubscribed** when someone unsubscribes. Both ask for the **Audience** to listen to. When you save the trigger, Plandalf adds a webhook to that audience for you.

## Example: tag buyers by plan

1.  ### Set the trigger
    
    Create a sequence with **Plandalf → Checkout Completed** and pick your checkout.
    
2.  ### Add and tag the contact
    
    Add **Mailchimp → Add or Update Contact**. Pick the audience, set **Email Address** to `{{trigger.customer_email}}`, the names from the trigger, and add a tag such as "Pro customer".
    
3.  ### Test and turn it on
    
    Test with your own email, then turn the sequence on.
    

To remove the tag on refund, use the [Remove access on refund](https://plandalf.com/docs/automations/templates#remove-access-on-refund) template.

## Common errors

What you see

What to do

"That doesn't look like a Mailchimp API key"

Paste the whole key, including the dash and data centre at the end.

"Event name is empty"

Type the name your Customer Journey starts on.

Something wrong or missing? Email [hello@plandalf.com](mailto:hello@plandalf.com).
