> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zapier overview

> Connect MoEngage to 5,000+ apps on Zapier to automate workflows using triggers and actions like Create or Update User, Import User Event, and Fetch Campaign Report.

## Introduction

[Zapier](https://zapier.com/) is an online platform that helps you automate workflows by connecting the apps and services you use. Using the MoEngage and Zapier integration, you can create custom workflow automation for more than 5,000+ apps on Zapier.

## MoEngage and Zapier

The MoEngage and Zapier integration allows you to connect your MoEngage account to various 3rd party destinations listed on Zapier's marketplace, such as Google Workplace, Slack, Salesforce, WordPress, etc., to automate various actions.

For example, let's say you have asked your customers to opt-in for beta testing using a Google Form. Now, you want to connect the form to MoEngage such that as soon as users fill in the Google Form, a user attribute "beta user" with the value *true* is updated. Using Zapier, you can create the following workflow: For *Every New Response (trigger)* in Google Form, *Update User (action)* in MoEngage.

You can learn more about how Zapier works with this [Quick Start Guide by Zapier](https://help.zapier.com/hc/en-us/articles/22234847450893-Zap-workflows-quick-start-guide).

## Triggers and actions

Using Zapier's terminology, a "zap" is an automated workflow that connects your apps and services. The first part of any zap is to designate a trigger. Once your zap is enabled, Zapier will automatically perform the respective actions whenever your trigger is detected.

The following Triggers and Actions are supported:

### Supported triggers

With MoEngage's [Connector Campaigns](https://www.moengage.com/docs/user-guide/campaigns-and-channels/connectors/create/create-a-connector-campaign), you can use MoEngage to trigger your Zapier workflows for a multitude of purposes.

[Read about how to use MoEngage as a trigger and its use cases here](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/use-moengage-as-a-trigger).

### Supported actions

The following actions are supported:

| Action name                                                                                                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Create or Update User](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/create-or-update-users)                      | This action allows you to import customers into MoEngage. If the user already exists, it updates the user's attributes. [View use cases for this action](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/create-or-update-users#use-cases).                                                                                                                                                                                                                                    |
| [Add or Remove User from Cohort (Audience)](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/update-cohorts-audience) | This action allows you to add or remove users in a cohort using the Cohort APIs. [View use cases for this action](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/update-cohorts-audience#use-cases).                                                                                                                                                                                                                                                                          |
| [Import User Event](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/import-user-event)                               | This action allows you to import user events to MoEngage using the Event APIs. [View use cases for this action](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/import-user-event#use-cases).                                                                                                                                                                                                                                                                                  |
| [Fetch Campaign Report](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/fetch-campaign-report)                       | This action allows you to fetch [campaign reports](https://www.moengage.com/docs/user-guide/campaigns-and-channels/campaign-management-and-reports/create-ad-hoc-campaign-reports) (configured using the [report builder](https://www.moengage.com/docs/user-guide/campaigns-and-channels/campaign-management-and-reports/create-ad-hoc-campaign-reports)). [View use cases for this action](/docs/partner-guide/data-and-analytics/workflow-automation/zapier/fetch-campaign-report#use-cases). |

## Integration

<Info>
  **Prerequisites**

  * Ensure you have access to your Zapier account.
</Info>

### Connecting Zapier to MoEngage

Zapier must connect to your MoEngage account before you can build any Zaps. On your Zapier Dashboard:

1. Navigate to My Apps > Add connection.

<img src="https://mintcdn.com/moengage/skVB8Wto_b8UCyhm/images/partner_7566825030804.png?fit=max&auto=format&n=skVB8Wto_b8UCyhm&q=85&s=aac848dc15d9404ccef7718dd66e25ea" alt="Zapier My Apps Add connection screen" width="2880" height="1442" data-path="images/partner_7566825030804.png" />

2. Search for MoEngage. A new window will open for you to enter your credentials.

<img src="https://mintcdn.com/moengage/skVB8Wto_b8UCyhm/images/partner_7566894151060.png?fit=max&auto=format&n=skVB8Wto_b8UCyhm&q=85&s=a479deb98bd12edee7a67abfb9d5da23" alt="Zapier MoEngage credentials window" width="1488" height="882" data-path="images/partner_7566894151060.png" />

You can get these credentials from your MoEngage Dashboard. Copy your Data API ID and Data API Key.

Fill the following fields in Zapier from the MoEngage dashboard:

| Field    | Action                                                                                                                                                                                                                                                   |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Username | Type or copy and paste the Data API ID. The Data API ID and the Workspace ID of your MoEngage account are the same. The Workspace ID of your MoEngage account is available at **Settings > Account > APIs > Workspace ID**.                              |
| Password | Type or copy and paste the Data API Key. The Data API key of your MoEngage account is available at **Settings > Account > APIs > API keys > Data** API settings.                                                                                         |
| Region   | MoEngage data center that you signed with you on MoEngage. For more information about the data center that you signed up with, refer to [Data Centers in MoEngage](https://www.moengage.com/docs/user-guide/data/key-concepts/data-centers-in-moengage). |

3. Click *Yes, Continue*.
4. You should now see MoEngage listed under your apps. You can validate your MoEngage app name and region here.

<img src="https://mintcdn.com/moengage/skVB8Wto_b8UCyhm/images/partner_7567012951316.png?fit=max&auto=format&n=skVB8Wto_b8UCyhm&q=85&s=6a93bd0c77346c4f4362602fe3b9fd93" alt="MoEngage app listed under Zapier apps with name and region" width="2880" height="1438" data-path="images/partner_7567012951316.png" />

Congratulations! Now that your MoEngage account is connected with Zapier, you can start creating workflows as per your requirements.

### Creating your first Zap

In the following example, we will be sending cohorts from Google Form to MoEngage. These cohorts can then be used for targeting in MoEngage campaigns. We will create a zap: "For Every New Response (trigger) in Google Form, Add the User to a Cohort (action) in MoEngage".

On your Zapier Dashboard, click on the "Create Zap" button.

#### Step A: Select your trigger app

1. Type in "Google Forms" and select it.

<img src="https://mintcdn.com/moengage/skVB8Wto_b8UCyhm/images/partner_7568521728148.png?fit=max&auto=format&n=skVB8Wto_b8UCyhm&q=85&s=d76f6a5c285af16fa338621b3c1c7b67" alt="Selecting Google Forms as the trigger app in Zapier" width="1804" height="1300" data-path="images/partner_7568521728148.png" />

2. In the workflow editor:
   1. **Choose event:** *New Form Response*. Click on Continue and then sign in to your Google Account.
   2. **Choose account:** Select your connected account from the dropdown and click on *Continue*.
   3. **Setup trigger:** Select the form name from the dropdown box and click on *Continue*. Zapier will then fetch a sample entry for you to test out the trigger. Then click on Continue to move on to the next step.

<img src="https://mintcdn.com/moengage/skVB8Wto_b8UCyhm/images/partner_7568817024404.png?fit=max&auto=format&n=skVB8Wto_b8UCyhm&q=85&s=99b8d81b97e9cc667d9fce544cb1c0f3" alt="Setup trigger step showing form selection and sample data" width="1628" height="1510" data-path="images/partner_7568817024404.png" />

3. Now you need to setup MoEngage as an action. Click on "+" and search for MoEngage.

<img src="https://mintcdn.com/moengage/skVB8Wto_b8UCyhm/images/partner_7568867646612.png?fit=max&auto=format&n=skVB8Wto_b8UCyhm&q=85&s=e0e208cee79897e4113ade59931f3d8c" alt="Searching for and selecting MoEngage as an action" width="1628" height="1270" data-path="images/partner_7568867646612.png" />

4. Select "Add or Remove User from Cohort (Audience)" from the list of Actions. Click on "Continue".
5. Next, choose your account from the list of populations. It should already show the account you connected before. Click "Continue".
6. Type in the value for the fields. Read more about [Cohort APIs here](https://www.moengage.com/docs/api/cohort-sync/sync-cohort-members). You are free to either type values or choose to map the outputs of the previous steps.

<img src="https://mintcdn.com/moengage/skVB8Wto_b8UCyhm/images/partner_7568994011924.png?fit=max&auto=format&n=skVB8Wto_b8UCyhm&q=85&s=1afdd46c54f1f5f37de94d14fe17caaf" alt="Cohort action fields mapped from Google Form outputs" width="1628" height="1288" data-path="images/partner_7568994011924.png" />

7. Click on "Test & Continue".
8. Your Zap is now ready to be published.

## Some templates to get you started

You can browse Zapier templates on the [Zapier MoEngage page](https://zapier.com/apps/moengage/integrations) to get started.
