Trigger a MailChimp Automation for your Code Email
The simple way to setup Coupon Carrier is to let it send out the email to the subscriber. The complete guide on how to set that up is available here.
But if you want more control over the content you can create your own automation email and let Coupon Carrier trigger that to be sent to the subscriber instead. This involves the following steps:
- Add a merge field to your email list
- Create a MailChimp automation with a custom trigger
- Configure Coupon Carrier to trigger the automation
How does it work?
When Coupon Carrier receives a notification that a new subscriber has been added to your list it picks one of the available unique codes and applies it to the subscribers merge field that you’ve configured. It then triggers the selected automation to be sent to the subscriber. This means that when the email is sent it can include the code via a merge tag since that was just added to the subscriber.
Add a merge field to your email list
We need a merge tag to be able to store the unique code in the subscriber's profile. Create a merge field called COUPON of the type Text. This can be anything but in this guide, we will assume it’s named COUPON. You can also uncheck the Visible checkbox. This ensures that this field doesn’t show up in any subscribe form if you have any.
Create the MailChimp Automation
There are many types of automations in MailChimp. We want to create an automation that only sends an email when some third-party app (Coupon Carrier in this case) triggers it to be sent to a specific subscriber. Coupon Carrier works best for a specific type of automation, called Custom Event Workflow. Create a new Automated campaign and click on the Custom button to create a custom workflow.
The next step is to change the trigger to an API trigger. That way you can let Coupon Carrier trigger this email to be sent once we've added a code to the new subscriber. You can change the trigger by clicking on Change trigger and then selecting the API 3.0 trigger that's available on the Integrations tab.
Note! Once the trigger is selected you can see the trigger URL that you later need to add to Coupon Carrier. Copy the URL and save it for a later stage.
You'll probably want to change the delay to immediately as well in order to send the email immediately after it's been triggered.
The next step is to add the email content. Click the Design email button to edit the email. Proceed by entering all the details according to your needs. When you get to design your email you need to add the merge tag at the place where you want your code to be shown. A merge tag is added using the following format *|Field name|*. So in your case, you should add *|COUPON|*.
The final step is to configure Coupon Carrier to trigger this automation. Head over to your Coupon Carrier configuration and select MailChimp as the email sender:
That's it. If you have any additional questions or need any help then let us know.
Here's a short video that shows all these steps
Although some parts of the UI in MailChimp have changed since this video was created