You have an RSS feed exposing new content you publish and wish to automatically trigger a new push notification whenever a new item shows up in your feed.
Let’s use Zapier for that automation and make it call the WonderPush Management API for the actual delivery.
Zapier provides workflows to automate the use of web applications together. It is often described as a translator between web APIs.
Setup your zap
We have created a Zapier app to make it dead simple to integrate with WonderPush.
However this app is temporarily available by invite only.
Once you’re in, you can use the Zap template we’ve specifically crafted for you:
You just have to drop your RSS URL and connect with your WonderPush account by giving the Management API access token and Application ID you can find in the Settings / Configuration page under the Management API tab.
Old way - Using webhooks
Click on Make a zap!, an orange button in the top of the page.
Choose the RSS by Zapier trigger app.
Select the New Item in Feed trigger, and click Save + Continue.
Fill your RSS feed URL, and click Continue.
Read the next screen and click Fetch & Continue.
The next screen should say Test Successful!.
Click view your item and locate the name of a few fields:
They should contain plain text values and be relatively short, ~200 characters is fine. Do not use a field that is ~2000 character long like
contentcan be, nor a field that contains HTML tags, like the
Choose the Webhooks by Zapier action app.
Choose the POST action, and click Save + Continue.
Fill the fields:
Fill URL with:
Get your own access token in the dashboard in the Settings / Configuration menu, under the Management API tab
Select Json as Payload Type.
Fill the Data section with the following:
- Attention: In Zapier, the field names use two consecutive underscores to denote a JSON nest field.
notification__alert__titlewith the Title of the feed item.
notification__alert__textwith the Description of the feed item.
notification__alert__targetUrlwith the Link of the feed item.
Here is an example of how to fill a data field with an item value: Write the data field name, and click the right button with the lines of text and the little circled +, then search for the appropriate item value and click it.
Once filled it looks like this:
Make sure that Unflatten is yes.
In this example we used the segment
@ALLso everybody will get the notification. You can change that by creating a segment in the dashboard and using its identifier there. We offer advanced segmentation criteria and have a powerful way of combining them, check out the docs.
To better track statistics, you can bind the deliveries to a campaign you created in the dashboard. Read the campaign identifier and simply fill it inside a new
campaignIdfield in the Data section.
Click Skip Test.
If you wish to test, go back to the previous step and change the value you gave to
targetSegmentIdsto use a segment with only your team’s devices, then click Send Test To Webhooks By Zapier. You should get the following answer, and the WonderPush notification:
You should see a screen saying
Ready to turn on your zap?followed by
Your zap is OFFwith a switch.
Click to switch it on. You should see the following screen:
You are done!
Remember: Don’t spam your users with too many notifications by using the Pressure Management feature in the used campaign.
Think of notifications as a service you deliver to your users, and offer them a way to opt into multiple categories to follow, and bind the corresponding RSS feeds to the segments matching the corresponding subscribed users with our advanced segmentation, like Parameterized segments for instance.