Your Viral Loops campaign has a Webhook integration that fires a webhook when a participant joins your campaign. 

Here’s how to use it to send to any of your favorite services the participant data captured when they signed-up to your campaign (eg. name, email etc).

You need to have an account on Zapier but please note that some actions are only available on a paid plan. 

We will now create a Zap to email us when someone joins our campaign.

Step 1: Start creating the Zap

After logging-in to Zapier, click “Make a Zap” to start creating:

Find and select the “Webhooks by Zapier” trigger.

Select “Catch Hook” and continue.

Leave the next step empty (“Pick off a Child Key”). There’s nothing you need to set here. Just continue.

Copy the webhook URL to clipboard. You will use this in a while.

Step 2: Set up the webhook in Viral Loops

In a new tab, edit your Viral Loops campaign (or create one if you haven’t done so already) and in the Integrations step (not available in the Altruistic template) of the Campaign Wizard enable and edit the Webhook integration.

In Endpoint paste the webhook URL you copied previously from Zapier.

Send a test request.
Now save the integration settings and continue editing your campaign.

Step 3: Complete the Zap

Back to Zapier now, click the “OK, I did this” button. Zapier will now check to see if it has received any webhook on that webhook URL and it should detect the test request that you sent earlier from Viral Loops.

Assuming the test is successful, click “Continue”.

If something didn’t go as planned, make sure the webhook URL you got from Zapier matches the one you pasted in your Viral Loops integration setting.

Now it’s time to tell Zapier what to do with the data received from the webhook. Select the “Email by Zapier” action.

You can totally customise the email that will be getting sent and include in it participant details that were captured during the participation.

  • "User" is the person who just joined your campaign, your new participant. 
  • "Referrer" is their referrer, if there was one. Referrer values are empty if the user joined without having been referred by someone.

Here's what all the values in the webhook payload mean. For the User (new participant):

  1. User Firstname: The first name of the user who just joined.  
  2. User Lastname: The last name of the user who just joined. 
  3. User Email:  The email address of the user who just joined the campaign.
  4. User Referral Code: The referral code of the user who just joined the campaign.
  5. User Created At: The date on which the user joined the campaign. 

For the Referrer:

  1. Referrer Firstname: The first name of the referrer of the user who just joined.
  2. Referrer Lastname: The last name of the referrer of the user who just joined. 
  3. Referrer Email: The email address of the referrer. 
  4. Referrer Referral Code: The referral code of the referrer.
  5. Referrer Created At: The date on which the referrer joined the campaign. 

You can even include the participant details in the text of the email that will be getting sent:

Save and continue now. Zapier will send a test email to verify the Zap works and then you can just name your Zap and turn it on!

That’s it! Now the moment someone joins your campaign, you will receive an email including their details.

You can now go back and create another Zap with a different integration. 

How will you use Zapier with Viral Loops? Have you thought about any useful Zaps that you could share with us? Tell us about it and we’ll post it on our Twitter account ;-)

Did this answer your question?