Mailchimp is an unusual integration in that for actions you connect to it with the Automator app, but to use triggers, Mailchimp must also be configured to send data via webhooks to Automator. This means that to use Mailchimp actions and triggers, you must configure 2 different systems. The process described in this article is only required if you want to use Mailchimp triggers in your recipes.
Connect a Mailchimp account
The first step for setting up Mailchimp triggers is connecting a Mailchimp account, which you can do from the Automator menu in /wp-admin/ under Settings > App integrations > Mailchimp, or you can follow the instructions in the Mailchimp actions Knowledge Base article. Make sure that you grant all permissions to the app during when it’s connected.
Next it’s time to enable triggers in the Mailchimp settings. Click the switch to Enable triggers; refer to the screenshot below.
Set up webhooks
Now that you’ve connected an account and enabled Mailchimp triggers, so your settings look like the image above, it’s time to set the webhooks up on the Mailchimp side. To set this up:
- Sign in to Mailchimp.
- Navigate to the Audience Dashboard. In the Manage Audience drop-down, click Settings.
- In the Audience settings page, click Webhooks.
- Refer to https://mailchimp.com/developer/marketing/guides/sync-audience-data-webhooks/#create-a-new-webhook and follow the steps in the Create a new webhook section to set up the webhook on Mailchimp side. In the Callback URL field, paste in the Webhook URL provided on your site based on the screenshot above.
- Leave other settings for the webhook in Mailchimp checked (so send updates for all types of updates). Save the updates in Mailchimp
You can now test Mailchimp recipes by creating a new recipe in Uncanny Automator. Select Mailchimp as the integration in the Triggers section, then choose the desired action (for testing purposes, the Send an email action typically works well to review token data and validate the recipe). Apply a related update on the Mailchimp side that should trigger the recipe and confirm in the Recipe Log that everything worked as expected.
Important: Sometimes Mailchimp doesn’t send events to your website right away. In some cases, Mailchimp takes several minutes or longer to pass data via webhooks. Before assuming something is broken, wait for several minutes first.