With an RSS Feed Email Campaign, you can send new posts to your audience whenever you publish content. This makes use of our API Triggered Broadcast campaigns and a Zapier workflow.
Watch our quick walkthrough of setting up this campaign:
Follow the instructions in How to Set Up an API Triggered Broadcast, steps 1-4.
For those of you new to Zapier, it’s a handy tool that helps you connect your apps and automate workflows. For this recipe, you’ll be setting up a Multi-Step Zap in Zapier, which lets you automate a sequence of tasks in a workflow with a single trigger. (Multi-Step Zaps are available on paid plans.)
Once you’re in Zapier, click “Make a Zap!” in the top menu to get started.
First, we’ll choose the built-in app “RSS by Zapier” and select “New Item in Feed” as the trigger. Then, enter your Feed URL. Take a minute and make sure that the “What Triggers a New Feed Item” field says “smart” — which means you’ve chosen the recommended Different Guid/URL option. (This makes sure that when you make changes to a post, it won’t cause this Zap to re-trigger.)
Here’s the code we used, which may vary depending on your date format.
(An alternative in this step is to use the Zapier formatter to convert a datetime value into a Unix timestamp.)
For the Input Data field, enter “body” and then from the dropdown, we were able to select our raw content text, which allowed Customer.io to parse the HTML as-is in the designed email.
Here’s the code we used:
In the final Zapier workflow step, choose the built-in app “Webhooks by Zapier” to send a webhook to Customer.io. Create a “Custom Request”.
In the “Edit Template” step, choose POST as your HTTP method.
Enter your URL. It will look like this, with your campaign ID filled in:
Select “no” for the “Unflatten option”.
Next we’ll add our basic auth credentials by filling in our site ID and API Key using | as a separator.
In the “Headers” step, fill in “Content-Type” and application/json” as the key, value pair.
API Triggered Broadcasts are a great way to save time for recurring messages like blog post updates. If you have questions about how to apply this recipe, let us know!