Mailmodo 0ff833fbTry Mailmodo for Free↗️Login Mailmodo↗️

No results

Help CenterCampaign ManagementTriggering your campaignTrigger campaigns through Zendesk in Mailmodo

Trigger campaigns through Zendesk in Mailmodo

Last updated December 25, 2023

In this article we will learn how to send campaigns from Mailmodo triggered by events recorded in Zendesk.

Use Case

Send a campaign from Mailmodo for triggers and automations recorded in Zendesk. Triggers are business rules you define that run immediately after a ticket is created or updated and automatically perform actions if specified conditions are met. Automations take action to modify ticket properties at a specified time after a ticket is updated. 

For eg. Every time a ticket is solved, an automated email will be sent to the end user asking them about their overall experience. Similar emails can be sent for a range of triggers and automations.

Overview

In this article, we will cover-

1. Creating a transactional campaign in Mailmodo

2. Zendesk setup

2.1 Creating a webhook in Zendesk

2.2. Creating a trigger or automation in Zendesk

Creating a transactional campaign in Mailmodo

Step 1Navigate to the Templates category. Click on Create New Template.

Trigger campaigns through Zendesk in Mailmodo

Step 2Create a template   using the editor  . Upon completion, save and rename the template. 

Trigger campaigns through Zendesk in Mailmodo

Step 3: You will be redirected to the home page. Click on Trigger under Campaigns from the vertical menu on the left. Next, click on Create trigger campaign.

Trigger campaigns through Zendesk in Mailmodo

Step 4: Select the template you saved before. Click on next.

Trigger campaigns through Zendesk in Mailmodo

Step 5: Add Subject Line, Pre-header text, From name and Reply to email. Click on next.

Trigger campaigns through Zendesk in Mailmodo

Step 6: You will be redirected to trigger on events. Select Zendesk from the list of platforms. Click on next.

Trigger campaigns through Zendesk in Mailmodo

Step 7: Review and test your campaign. To test, click on send test campaign->enter email ID->send test email.

Once tested and reviewed, click on enable campaign.

Trigger campaigns through Zendesk in Mailmodo

Step 8: You will be redirected to Campaign page. Select setup steps -> Click on Copy URL button. We will use this webhook url in the Zendesk series.

Trigger campaigns through Zendesk in Mailmodo

Zendesk Setup

Creating a webhook in Zendesk

Step 1Navigate to Admin from the Zendesk dashboard.

Trigger campaigns through Zendesk in Mailmodo

Go to Admin Center.

Trigger campaigns through Zendesk in Mailmodo

Step 2Navigate to Apps and Integrations from the Admin Center dashboard. Select webhooks from the list.

Trigger campaigns through Zendesk in Mailmodo

Step 3Go to Actions>Create Webhook

Trigger campaigns through Zendesk in Mailmodo

Step 4Name the webhook. Paste the webhook URL (in the Endpoint URL field) copied from Mailmodo's setup steps tab.

Trigger campaigns through Zendesk in Mailmodo

Step 5Select Request method as POST. Select Request format as JSON. Select None under Authentication.

Trigger campaigns through Zendesk in Mailmodo

Step 6: Click on Test webhook. Select Test event source as Custom test. Paste the following in the Request JSON Body.

{  "email": "john@example.com",  "data": {} }
Trigger campaigns through Zendesk in Mailmodo

Replace john@example.com with the email id on which you want to receive the test email.

Click on Send test.

You should receive 200 OK as response. This means your webhook is working.

Trigger campaigns through Zendesk in Mailmodo

Check your inbox to view the test email sent from Mailmodo.

Step 7Once you have successfully tested your webhook, click on Create.

Trigger campaigns through Zendesk in Mailmodo

Click on Complete setup. A modal will open, select leave without connecting.

Trigger campaigns through Zendesk in Mailmodo

You would be able to see the webhook status as active.

Trigger campaigns through Zendesk in Mailmodo

You have successfully created a webhook. Now, connect your webhook to a trigger or automation for it to work.

Creating a trigger or automation in Zendesk

Step 1Go to Object and Rules from the admin dashboard on the left. Navigate to Business rules. Click on triggers or automations depending on your use case.

Note- For the purpose of this tutorial, we are going to create a Trigger. Automations can be created in a similar manner. Your webhook can be connected to a trigger as well as an automation.

Trigger campaigns through Zendesk in Mailmodo

Step 2Click on Add trigger.

Trigger campaigns through Zendesk in Mailmodo

Name the trigger, give an appropriate description. Select a pre-existing category or create a new category.

Trigger campaigns through Zendesk in Mailmodo

Step 3Configure the trigger conditions.

Trigger campaigns through Zendesk in Mailmodo

Step 4Under Actions, click on Type or select actions.

Trigger campaigns through Zendesk in Mailmodo

Select Action as Notify active webhook

Trigger campaigns through Zendesk in Mailmodo

Select the webhook you created before.

Trigger campaigns through Zendesk in Mailmodo

Upon selecting the webhook, you would be able to see the webhook details.

Trigger campaigns through Zendesk in Mailmodo

Step 5Paste this in the JSON body.

{  "email": "",  "data": {    "First Name": ""  } }

Map email and first_name to the corresponding attributes in Zendesk as shown below. You can add other parameters in the data key.

Copy the attribute value from View available placeholders. Paste the value in JSON body.

Trigger campaigns through Zendesk in Mailmodo

Once the webhook body is configured, click on Create. Your trigger is successfully saved.

Navigate back to Apps and Integrations>Webhooks. The webhook status would be active.

Trigger campaigns through Zendesk in Mailmodo

Click on the three dots besides webhook name. Click on view details.

Trigger campaigns through Zendesk in Mailmodo

Navigate to Event Subscription. Your trigger should be visible here.

Trigger campaigns through Zendesk in Mailmodo

You have successfully created a trigger campaign. Every time the trigger event occurs, an email will be sent to the corresponding contact.

Was this article helpful?