In this article we will go through how you can send transactional campaigns in Mailmodo from your WebEngage account.

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 2:- Either 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 back arrow.

Step 4:- Click on save and exit.

Step 5:- You will be redirected to the home page. Click on transactional from the vertical menu on the left. Next, click on New Transactional Campaign. 

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

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

Step 8:- You will be redirected to trigger on events. Select WebEngage from the list of platforms. Click on next.

 

Step 9:- 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.

Step 10:- You will be redirected to Trigger Info section. Click on Copy URL button. We will use this webhook url in WebEngage.

 

To access this page in future, go to transactional in the vertical menu (left side)->select the campaign->trigger info

WebEngage Setup

STEP 1:- In WebEngage go to Journeys → + → Create new journey

 

STEP 2:- In the Journey builder, drag and drop Occurrence of Event and select your event of choice.

STEP 3:- Add your next event as Call API. Add a connector to this from the event, to call the action whenever the event is triggered.

 

STEP 4:- Build your API Request, Select POST and paste your webhook url from Mailmodo. Set your body as picked from Mailmodo.

 

STEP 5:- Test your response, Review and Save.

STEP 6:- Publish your Journey.

STEP 7:- Through postman call your Event API 

Sample Event curl

curl -X POST <HOST>/v1/accounts/<YOUR_WEBENGAGE_LICENSE_CODE>/events \

    --header 'Authorization: Bearer <YOUR_API_KEY>' \

    --header 'Content-Type: application/json' \

    --data '{

        "userId": "johndoe",

        "eventName": "MM Email opened",

        "eventTime": "2018-09-15T18:29:00-0800",

        "eventData": {

                "email_subject": "First shirt on us!",

"campaign_id": "123",

                "campaign_name": "New Customer Discount"

    }

}'

 

STEP 7:- Once you hit the API, your Journey will be triggered.

STEP 8:- Once your campaign is sent, go to your Users Dashboard in Journey. Select the user from whom the event has been triggered.

 

Under the Events section, expand the event of choice and you will be able to see the desired data.

That's it! You have successfully created a trigger campaign!