Skip to content

Mailchimp triggers

Mailchimp triggers start a recipe when something changes in one of your Mailchimp audiences. Mailchimp works differently from most integrations: the actions need only a connected account (see Mailchimp actions), but the triggers also need a webhook in Mailchimp that sends audience changes to your site. This article covers that extra setup; you need it only if you want to use Mailchimp triggers.

If you have Uncanny Automator Lite, you’ll first need to connect your site to a free Uncanny Automator account, which gives you app credits to use with Mailchimp. On a paid plan, app integrations are included.

The Mailchimp triggers are:

  • A contact is added to an audience
  • A contact email is changed
  • A contact is unsubscribed from an audience

They start from activity in Mailchimp, not from a visitor logged in to your site, so they work only in recipes of the Everyone type. See Recipe types: logged-in users and everyone.

Connect Mailchimp and enable triggers

  1. In your WordPress dashboard, go to Automator > Settings > App integrations > Mailchimp.
  2. If Mailchimp is not connected yet, click Connect Mailchimp account and grant all the permissions Mailchimp asks for. Mailchimp actions walks through the connection.
  3. Turn on Enable triggers. The Webhook URL appears below the switch, with a copy button.
  4. Click Save settings.

Copy the Webhook URL; you paste it into Mailchimp next. If you click Regenerate webhook URL later, Mailchimp triggers stop working until you replace the URL in every Mailchimp webhook that uses it.

Set up the webhook in Mailchimp

Add the webhook to each audience whose changes should start a recipe.

  1. Sign in to Mailchimp.
  2. Go to the Audience dashboard. In the Manage Audience drop-down, click Settings.
  3. On the Audience settings page, click Webhooks.
  4. Follow the steps under Create a new webhook in Mailchimp’s webhook guide. In the Callback URL field, paste the Webhook URL you copied from Automator.
  5. Leave the webhook’s other options selected, so Mailchimp sends every type of update, and save the webhook.

Test a Mailchimp trigger

  1. Go to Automator > Add new recipe, select Everyone, and click Confirm.
  2. Click Add trigger. In the picker, search for Mailchimp, select it, and select one of its triggers. Choose the audience, if the trigger asks for one, and click Save.
  3. Add an action that shows you the data the trigger received. Send an email works well: insert the trigger’s tokens in the body with the ∗ button.
  4. Switch the recipe on with the Recipe on switch.
  5. In Mailchimp, make a change that should start the recipe, such as adding a contact to the audience.
  6. Back in the recipe, click View logs in the sidebar’s Details panel and check that the run completed.

Important: Mailchimp does not always send events right away. It can take several minutes or longer to pass the data to your site, so wait a few minutes before you assume something is wrong.

Related: Mailchimp actions, Recipes for Everyone, Using Automator Logs

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top