Before start, there is something important to meet about Zapier. Zapier lets you connect different services between them. The way Zapier performs it is by letting you create Zaps (this is commonly known as recipes in other platforms).
A Zap has 2 important parts:
- Trigger: On Zapier, this is know as “When this happens..”.
- Action: On Zapier, this is know as “Do this..”.
So Zapier lets you configure unlimited configurations with those zaps:
When this happens… New file gets uploaded to Google Drive
Do this… Send a SMS through Twillio
Sending data to Zapier, lets you configure the trigger part (When this happens…) so you will be able to configure something like:
When this happens… An user earns an achievement on GamiPress
Do this… Create a spreadsheet row with the user data on Google Sheets
Configuring the trigger (When this happens…)
To begin, make sure you have a Zapier account. Then you’ll want to start by setting up a new Zap with a webhook:
1) Go to Zapier.
2) Create a new zap by clicking the button Make a Zap!.
3) Find and click the Webhooks icon in the Built-in Apps section.
4) Choose Catch Hook to tell Zapier to wait for communications from GamiPress, then click on Continue.
5) Copy the Custom Webhook URL and keep it in your clipboard. Keep the Zapier window open and switch back to WordPress in another tab or window.
6) Leave the Pick off a Child Key option blank for now; click Continue.
7) Go to the GamiPress – Zapier settings on your WordPress.
8) Paste the Zapier Custom Webhook URL that you copied in 5th step on the Webhook URL field.
9) Leave the Request Method field as default (POST).
10) Click on Send Test button to confirm that everything is correct.
11) Click on Save Settings button to store you configuration on WordPress.
12) Come back to Zapier (on the tab you are editing your Zap).
13) Click on Test & Review.
14) Now, you will see a sample data (sent when you clicked the Send Test on 10th step) that GamiPress will send to Zapier. The data may vary depending on the action you configured (achievements, steps, ranks, etc) for that you have the Send Data and the Test & Review button to let you check which data will receive Zapier.
15) Click on Done Editing and now you will be able to configure the Do this… part of the Zap.
Using GamiPress data on action (Do this…)
A fantastic feature that Zapier includes is that you can use the trigger data in the action.
The following sample shows how using “Send email through Gmail” action can access to the GamiPress data like the user details and included to the rank details.