Using External Actions with Mailchimp (via Zapier)

In this guide, we use Zapier to build an audience in Mailchimp by using External Actions

1) Mailchimp

First create your audience in Mailchimp

Audience (dropdown) > Audience dashboard > Create

Configure your audience:

  1. Audience name
  2. Default from email address
  3. Default from name 
  4. Campaign URL settings
  5. Reminder how they signed up to your audience
  6. Any other settings you would like to configure
  7. Save

Before we start importing contacts, lets create the columns to hold the information we would like to pass through. In this example we will send through the "Sub-status" and requested "Loan amount".

Go into your audience and along the top bar select:

  1. Settings > Audience fields and *|MERGE|* tags > Add A Field
  2. For the "Sub-status" field, select Text > Fill in the field name > Fill in tag name
  3. For the "Loan amount" field, select Number > Fill in the field name > Fill in tag name
  4. Save changes

mailchimp-columns

Image link


2) Zapier (Part 1)

Create an account with Zapier if you don't already have one. For this you will need to have at least a "Starter" account to be able to use the "Webhooks by Zapier" app which is categorised as a premium app.

Setting up the trigger

  1. Click "Create Zap"
  2. In the first section called "Trigger" > Search for "Webhooks by Zapier"
  3. In the "Trigger event" dropdown > Select "Catch Hook" > Continue
  4. This will now give you a "Custom Webhook URL". Copy this URL as we need to paste this into the AutoConvert External Actions.
  5. Leave this where it is for the time being, we'll be coming back later.

zap-1
Image link

 

3) AutoConvert External Actions

Log into AutoConvert and navigate to Settings > Automation > External Actions

  1. Actions > Add external action
  2. Give it a name e.g. "Mailchimp Audience (via Zapier)"
  3. In the Endpoint input, paste in the URL we generated from the previous section: Zapier step 4

    EA-1-1
    Image link


  4. Now on the right hand side under the Payload tab, click Add > Object
    EA-2

    Image link
  5. A new Add dropdown has appeared. Click this again and select Simple Replacement. This is where we will select the information from the application and give it a name. 
    EA-3
    Image link

  6. Now in the replacement box that has appeared, type "firstName" into the first input (don't use spaces in the box). Then select "Forename" from the right dropdown box. Click the green tick to save.
    EA-4
    Image link

  7. Now repeat this processes 5 & 6 until you have all the information you would like to send across to Zapier, then Mailchimp. 
    EA-5
    Image link

📝NOTE: Replacement field sections

In the above image, to access the loan amount, the "Financials" checkbox must be selected in the replacement fields section on the left hand side. This will then bring the financial section of the application through into the replacement fields dropdown.


Now that we have created the data within the external action, we need to trigger this send using AutoConverts automation. 

Settings > Automation > Configure

Setup example:

  1. Trigger: Sub-status changed
  2. Rules: Source = Website application, Sub-status = Approved
  3. Action: Trigger external action > Mailchimp Audience (via Zapier)

automation
Image link


Testing the external action

Now choose an application to perform a test with. In this case, we will update the applications status to "Approved" to trigger the external action. 

From the activity feed on the right, select Filter > Integrations (under Audit). You will now see that your external action has been executed and can preview the data sent by clicking on the "Show" link in the request section. 

AC-1
Image link


4) Zapier (Part 2)


Setting up the trigger (continued)


Head back into Zapier and click the "Continue" button from the previous screen. 

You will now be on the Test Trigger screen. Click "Test trigger" and you should hopefully see the test data you sent across appear in the menu below. 

zap-2
Image link


Click "Continue" to finish this trigger section of Zapier.

Setting up the Action


You will now be taken to the next section where we set up what we would like to do with the data. 

  1. Select Mailchimp from the search bar
  2. Action event: Add/update Subscriber
  3. Continue
  4. Sign into your Mailchimp account using the wizard then click "Allow"
  5. Continue
  6. Audience: Select the audience you created in Mailchimp
  7. Subscriber Email: Select the customers email address from the data we sent across from AutoConvert

    zap-3
    Image link

  8. Double Opt-In: If set to True, This will send a confirmation email to the customer asking them if they confirm the subscription. Select "False" if you would like to add them straight into the audience. 
  9. Update Existing: If the same contact is sent to Mailchimp again, choose whether you would like to overwrite the current information held or skip over this contact. If you are sending customers to Mailchimp based on multiple status updates, you should set this to "Yes" so that the "Sub-status" column in Mailchimp updates to the most recent sub-status from AutoConvert.
  10. Replace Groups: If you have set up any groups within Mailchimp, you can choose to add them to more or replace their current groups.
  11. Language code: enter "en"
  12. Tags: Select any tags you would like to add to the customer. These will need to be configured in Mailchimp first, but can help you organise and target contacts. 
  13. Lastly, select the data into the fields we created in Mailchimp

    zap-4
    Image link

  14. Now press "Continue"
  15. Click "Test & Review" or "Test & Continue"
  16. You should now get a successful message

    zap-5
    Image link
  17. Finish by turning on the Zap


5) Finally, checking Mailchimp


Head back into your Mailchimp audience and view the contacts. You have now successfully automated adding contacts into your audience. 🙌

mailchimp-sub
Image link