In this article we will see how to configure transactional campaigns in Mailmodo, triggered by events recorded in WebEngage journey.

This article will cover:

1. How to create a transactional campaign in Mailmodo

2. Webengage setup

It is available with the following plans in Mailmodo:








How to create a transactional campaign in Mailmodo?

Step 1: Go to templates from the vertical menu on the left side. Click on 'Create new template'.

Step 2Either select a blank template or a pre made template

Step 3:  Use the editor to edit the template. Save and rename the template upon completion.  After saving, click on the back arrow.

You will be redirected to the template library. The saved template should be visible here.

Step 4Go to 'Trigger' under Campaigns from the vertical menu on the left. Click on New Transactional Campaign.

Step 5Select the template you saved before. Click on Next.

Step 6Add Subject line, Pre header Text, From Name and Reply to Email. Select sender email. Click on Next.

Step 7You will be redirected to trigger on events. Select Webengage from list of platforms. Click on Next.

Step 8Review 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.

Step 9You would be able to see the Webhook URL. Click on Copy URL. We will use this Webhook URL in Webengage journey.

To access this URL in the future, go to Transactional->Select Campaign->Trigger Info

Webengage setup

Step 1Create a journey in Webengage

Step 2:  Drag and drop Trigger condition from the left panel to the journey builder area. Configure trigger condition. 

Step 3Create desired journey. From the actions menu on the left side, select Call API. Drag and drop it in the journey builder area. Connect the respective actions and triggers with arrows. Click on Call API to set up the webhook.

Step 3Select request type as POST. Paste the webhook URL copied from Mailmodo. 

Step 4Click on Set Body. Paste this in the Request Body field.

{   "email": "",   "data": {     "first name": ""   } }

The argument to “email” points to recipient emails and “data” points to the personalisation parameters.

Step 5Map the respective parameters as shown below.

Note- You can add other personalisation parameters in the "data" section.

Make sure that the key of the parameter is exactly the same as the key written in the email campaign.

For example:

{ "email":"", "data":{ "firstName":"John", “lastName”:”Doe”, “Age”:”18”, }

Step 6After mapping, click on Continue. Test your webhook. To do so, replace the personalisation parameters with actual values. For eg. replace {{user["system"]["email"]}} with (email id whom you want to send test response)

Click on the green strip to call the API.

You should receive 200 success code

Upon successful testing, save the webhook.

Step 7Publish the journey.

Every time the trigger event occurs, an email will be sent to the relevant contact.