E-commerce · n8n

Automatically Add New Shopify Customers to Your Mailchimp List

Every time a new customer places their first order in your Shopify store, this workflow instantly adds them as a subscriber in Mailchimp. Never miss a chance to nurture a new customer with your email marketing.

difficulty Beginnersetup 30 minresult New Shopify customers are automatically subscribed to your chosen Mailchimp audience so they immediately enter your welcome email sequence.
  1. 1

    Set up the Shopify Trigger

    Add a Shopify Trigger node to your canvas. Connect your Shopify store by entering your store name and API credentials in the node's credential section. Set the Topic field to customers/create so the workflow fires only when a brand-new customer account is created. Activate the trigger to register the webhook with Shopify.

  2. 2

    Extract the customer data you need

    Add a Set node after the trigger. Create three fields: set email to {{ $json.email }}, firstName to {{ $json.first_name }}, and lastName to {{ $json.last_name }}. This keeps the data clean before sending it to Mailchimp.

  3. 3

    Check that the email address exists

    Add an IF node to guard against empty email addresses. Set the condition to: {{ $json.email }} is not empty. Connect the True branch to the next step and leave the False branch unconnected so incomplete records are silently skipped.

  4. 4

    Add the subscriber to Mailchimp

    Add a Mailchimp node on the True branch. Connect your Mailchimp account using an API key from your Mailchimp account settings. Set Operation to Add/Update Subscriber, choose your target Audience from the dropdown, map Email to {{ $json.email }}, and fill in the merge fields FNAME with {{ $json.firstName }} and LNAME with {{ $json.lastName }}. Set Status to subscribed (or pending if you want double opt-in).

Frequently asked questions

Will existing Shopify customers be added to Mailchimp when I activate this workflow?

No. The Shopify Trigger only fires for new customer creation events that happen after the workflow is activated. To import existing customers you would need to do a one-time manual export from Shopify and import it directly into Mailchimp.

What happens if a customer already exists in Mailchimp?

The Mailchimp node uses the Add/Update Subscriber operation, which is safe to run on existing contacts — it will simply update their name fields without creating a duplicate or throwing an error.

How do I stay compliant with email marketing laws like GDPR?

Make sure your Shopify checkout includes a clear opt-in checkbox for marketing emails and that you only sync customers who have consented. You can add an extra IF condition to check the Shopify field `email_marketing_consent.state` equals `subscribed` before passing the contact to Mailchimp.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.