Skip to main content

Introduction

Zapier is an online platform that helps you automate workflows by connecting your apps and services you use. Using the MoEngage and Zapier integration, you can create custom workflow automations for more than 5,000+ apps on Zapier. With MoEngage’s Connector Campaigns, you can use MoEngage to trigger your Zapier workflows for multitude of purposes.

Use cases

Some ideas to get you started:
  1. Post Slack message for each uninstall event in MoEngage.
  2. When a particular event occurs in MoEngage, add data to a Google Sheet.
  3. Create a new ticket in Zendesk for each user when they perform a custom event in MoEngage.
  4. When a user performs an event in MoEngage, add them to a cohort in MoEngage.
PrerequisitesEnsure you have access to your Zapier account and have connected it to your MoEngage account. You can follow the steps here to connect Zapier to MoEngage.

Integration

The use case takes advantage of MoEngage Connector Campaigns. For this tutorial, we will pick up Use Case #1: Post Slack message for each uninstall in MoEngage. On your Zapier Dashboard, click on ”+ Create Zap” on the top-left corner.

Step 1: Select Webhook by Zapier as the trigger app

For the trigger, type “Webhook by Zapier” and select it. This will be the trigger that will start your zap. Selecting Webhook by Zapier as the trigger app

Step 2: Setup the trigger app

  1. Select the event from the dropdown: “Catch Hook”. Click continue.
  2. Under the “Set up trigger” step, leave the “Pick off a Child Key” blank. Click continue.
  3. You will now be shown your unique Webhook URL.
Unique Webhook URL displayed in Zapier setup
  1. Keep this URL handy. You will need this to setup Connector Campaigns.

Step 3: Setup Connector Campaign in MoEngage

  1. Navigate to MoEngage Dashboard.
  2. Use any one of the following options:
    1. On the All Campaigns page, click Create Campaign. The Create Campaign page is displayed. Create Campaign button on the All Campaigns page right navigation
    2. Click Create New > Campaign. The Create Campaign page is displayed. Create New Campaign option from the left navigation
  3. Click Custom under Connectors.
  4. For the campaign delivery types, choose “Event-Triggered”.
  5. On the next screen, give your Campaign a name, and select the Criteria as “Device Uninstall”.
  6. For trigger, choose “immediately”.
Connector campaign setup with Device Uninstall criteria
  1. For audience, let us choose “All users” for this use case. Click “next” when satisfied.
  2. On the content screen, we will define our payload and webhook URL we got from the previous step.
  3. Choose method as “POST” (know more about Webhooks on Zapier).
  4. Enter the webhook URL you copied earlier.
  5. Define the headers and parameters as per your requirements. For this use case, we will just define our payload body. (You can type @ to insert personalised values as well.)
Connector campaign content step showing method, webhook URL, and payload
  1. Now you need to test this webhook. Scroll down and enter a test user’s data and click on “test”.
  2. You should see a new modal saying the test was successful.
Successful webhook test confirmation modal
  1. Now go back to the Zapier editor.

Step 4: Test webhook setup on Zapier

  1. Click on “Test Trigger” to pull in the test campaign you just sent in MoEngage.
  2. Once you are satisfied with this data, you can publish the Connector Campaign on MoEngage.
  3. Back in Zapier, click continue to add the next step in your workflow.
Test trigger result in Zapier showing MoEngage payload Test trigger details with parsed fields

Step 5: Add Slack as the action app

Click on ”+” to add a new step. Then, search for “Slack” from the apps and select it. Adding Slack as the action app in Zapier

Step 6: Setup Slack action

  1. From the event dropdown, select: “Send Direct Message”. Click continue.
  2. Now you need to connect to Slack. Once you are done, choose the connected account from the dropdown and click continue.
  3. In the next step “Set up action”, you will see a form for you to either fill-in or map from the previous step. We will just fill in the values for “To Username” and “Message Text”. Make sure to select “Yes” for “Send as a bot?”.
You can also map data from previous step: Mapping data from previous step into Slack action fields The form could look like this: Slack action setup form filled with username and message text Continuation of Slack action setup with bot toggle Final Slack action configuration preview
  1. You will now be presented with an option to test this setup.
Option to test Slack action setup
  1. Click on “Test & continue” to test this setup.
  2. If the API call was successful, you should see a “success” return.
Successful Slack action test response You can also verify this in Slack. You should now see a new message there. New Slack message verified in the Slack workspace
  1. Once you are satisfied that everything works, click on “Publish Zap” and it will run every time a new uninstall takes place. You will be notified on Slack.