How to trigger campaigns through CleverTap on Mailmodo
Modified on: Thu, 9 Jun, 2022 at 1:55 AM
You can trigger emails through webhook configured in your CleverTap account.
When you create and enable the trigger campaign, you get a specific Webhook URL. Use that url to configure Webhook in CleverTap.
Follow the steps to set this up completely. ⤵
Step 1 : From the list in Trigger on events section, select 'CleverTap' and click Next.
Step 2 : In the review section, ensure all the details are correctly shown. After reviewing, click on 'Enable Campaign' to create the transactional campaign.
Step 3 : A Webhook URL will be generated on the Trigger Info page. Use this page to connect your campaign to your platform.
Step 4 : Use the copy URL button to copy the Webhook URL.
Step 5 : Go to settings in your CleverTap account, under the engage section, select Channel, and click on Webhooks
Step 6 : Create a new Webhook and enter the ‘Trigger Endpoint’ from your campaign into the ‘Destination URL’.
Choose ‘POST’ as the ‘HTTP method’ & name your Webhook
Step 7 : Now you can use this Webhook to trigger emails to be sent from Mailmodo in your CleverTap account
An example on how you can add Webhook to your CleverTap journeys.
Step 1 - Click on the Webhook block to open its settings. Choose the Webhook you just created under the ‘Webhook URL’ dropdown
Step 2 - Then copy the following code snippet into the Webhook payload and choose the format as JSON:
Step 3 - The argument to “email” points to recipient emails and “data” points to the personalisation parameters. Replace the email argument ‘firstname.lastname@example.org’ with ‘@’ and select the email field from your contact list.
Step 4 - Also replace the parameter ‘John’ with ‘@’ and select the appropriate field matching the parameter ‘firstName’.
Step 5 - You can add more parameters depending on the campaign, by adding a few extra lines of code in the “data” section
Step 6 - Make sure that the key of the parameter is exactly the same as the key written in the email campaign
Step 7 - Save and Close the Webhook. Now this Webhook trigger is part of your journey and can trigger emails from Mailmodo
Did you find it helpful?
Sorry we couldn't be helpful. Help us improve this article with your feedback.