Feed customer data to Mailchimp

A lot of 3rd party apps provide real-time notifications with Webhooks, i.e. they call a registered URL with data every time a certain event occurs. How do you easily store this data as e.g. new contacts in your marketing automation software or a CRM tho? This example flow shows you a simple yet effective way.

Before we jump into how the flow has been set up, see the flow overview below.

As you can see, we're expecting HTTP requests to our Webhook component and feed the incoming data like new subscribers to our Mailchimp account.

The Webhook component gives you a URL that you can copy-paste to your 3rd party app. Here is how to get started.

Whenever the Webhook URL is called by the 3rd party app, we want to create a new subscriber in our Mailchimp list with the email address received from the Webhook. Here is how to set it up in our flow.

Notice we selected the "data" variable in the "Email" field. This variable is coming from our Webhook component.

To set up the flow properly, you need a certain knowledge of the data structure that the 3rd party app sends to the Webhook. Browse through the documentation of the 3rd party app to find out.

In our case, the Webhook receives a JSON object with an "email" field. Therefore, we need to extract that email field from the incoming JSON data. By clicking on the Variable, we bring up the Modifier's dialog.

Notice we've selected the "JSON path" modifier and type "email" into the "Path" field.

All that remains is to start the flow and we're all set! Our Mailchimp list will now receive a new subscriber whenever our Webhook is called. 👍

As a bonus, we can also send the subscriber to our Slack channel for everyone to get excited about our newly registered users.

Now that you know how to feed customer data to Mailchimp and notify your team, it's time to look at our last flow example. This time, we will set up a pretty sophisticated flow that helps us approve documents more efficiently.

Last updated