Help CenterIntegrationsPabblyTrigger campaigns in Mailmodo via Pabbly

Trigger campaigns in Mailmodo via Pabbly

Last updated December 24, 2023

We can integrate Pabbly with Mailmodo to implement the following use cases-

  • Add contacts to a list in Mailmodo (  guide  )
  • Trigger a transactional campaign 

Integrating Pabbly with Mailmodo

How to create a transactional campaign in Mailmodo?

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

Trigger campaigns in Mailmodo via Pabbly

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 the back arrow.

Trigger campaigns in Mailmodo via Pabbly

Step 4: Click on save and exit.

Trigger campaigns in Mailmodo via Pabbly

Step 5: 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 in Mailmodo via Pabbly

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

Trigger campaigns in Mailmodo via Pabbly

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

Trigger campaigns in Mailmodo via Pabbly

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

Trigger campaigns in Mailmodo via Pabbly

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.

Trigger campaigns in Mailmodo via Pabbly

Step 10You will be redirected to trigger campaign page. 

We would need the API key and campaign ID in Pabbly setup.

The last part of the API endpoint is your campaign ID. 

eg. If your Trigger Endpoint is     https://api.mailmodo.com/api/v1/triggerCampaign/      ed3196e9-cab8-5ae3-816f-3a2e356ac2e7     then campaign id will be     ed3196e9-cab8-5ae3-816f-3a2e356ac2e7    .

Trigger campaigns in Mailmodo via Pabbly

Mailmodo API key

You can find the API key in the trigger info section of your transactional campaign. Alternatively, you can also go to Settings from the vertical menu on the left. Navigate to API keys. Click on Show API Key. Select and copy the API key.

Trigger campaigns in Mailmodo via Pabbly

Pabbly Setup

Step 1Go to Pabbly homepage, click on Pabbly Connect (Access Now)

Trigger campaigns in Mailmodo via Pabbly

Step 2You will be redirected to Pabbly Connect. Click on Create Workflow.

Trigger campaigns in Mailmodo via Pabbly

Step 3Give your workflow a suitable name. Click on Create.

Trigger campaigns in Mailmodo via Pabbly

Step 4Choose the first application. Events recorded in this application will trigger your workflow.

Trigger campaigns in Mailmodo via Pabbly

Step 5Select a trigger event for the chosen app.

Trigger campaigns in Mailmodo via Pabbly

Step 6You might need to follow some on screen instructions for the chosen app. The instructions will vary depending on the app you choose.

Configuring the Trigger App 

For the purpose of this tutorial, we will select Google Sheets as the trigger app.

Step 1Copy the Webhook URL from Pabbly.

Trigger campaigns in Mailmodo via Pabbly

Step 2: Create a new spreadsheet->Navigate to Extensions->Add-ons->Get Add-ons

Trigger campaigns in Mailmodo via Pabbly

Step 3A dialogue box will open, search for Pabbly Connect Webhooks. 

Trigger campaigns in Mailmodo via Pabbly

Install the extension.

Trigger campaigns in Mailmodo via Pabbly

Step 4Choose the account for which you want to download the extension, give necessary permissions. Upon successful installation, you will see the following screen. Click on Done. Refresh the page.

Trigger campaigns in Mailmodo via Pabbly

Step 5: Again navigate to Extensions->Pabbly Connect Webhooks->Initial Setup

Trigger campaigns in Mailmodo via Pabbly

Step 6A dialogue box will open, paste the webhook URL copied from Pabbly. 

Trigger campaigns in Mailmodo via Pabbly

Enter Trigger column. Trigger column will be your final data column on which if the data is added, the whole of that row data will be sent to the webhook URL.

For the spreadsheet above (see image), the last data column in B. So, trigger column for this spreadsheet is B

Note- Be careful while entering the trigger column. Wrong value will not trigger the webhook or incomplete data will be sent.

Step 7Click on Send Test. Your screen should look like this.

Trigger campaigns in Mailmodo via Pabbly

Go back to Pabbly, you should be able to see the Webhook response.

Trigger campaigns in Mailmodo via Pabbly

Step 8Click Submit on the Initial Setup dialogue box (in google sheets). Your initial setup is now saved.

Trigger campaigns in Mailmodo via Pabbly

Step 9Navigate to Extensions->Pabbly Connect Webhooks->Enable Send on Event

Trigger campaigns in Mailmodo via Pabbly

If you are manually making the change in the Spreadsheet, the updated data will be sent immediately to Pabbly Connect. Ensure enabling the Send on Event option in the add-on.

If the change is made through an external platform besides Google Forms in the Spreadsheet, the trigger will be sent once every hour. Ensure you enable the Send on Schedule option in the add-on.

Trigger campaigns in Mailmodo via Pabbly

You have successfully set up the webhook in your Google Sheets as a trigger!

Configuring the Action App (Mailmodo)

Step 1Search and select Mailmodo as the Action app.

Trigger campaigns in Mailmodo via Pabbly

Step 2Select the Action Event

Trigger campaigns in Mailmodo via Pabbly

Step 3Click on Connect. A dialogue box will open. Select Add New Connection, paste the API key copied from Mailmodo.

Trigger campaigns in Mailmodo via Pabbly

Click on Save. Your Mailmodo account is now connected.

Trigger campaigns in Mailmodo via Pabbly

Trigger Campaign

After connecting your account and selecting the Action event as Trigger Campaign, you need to enter the following details-

Trigger campaigns in Mailmodo via Pabbly

Campaign ID- To get the campaign ID, go to Mailmodo dashboard->Transactional->Select Trigger campaign->Trigger Info. The last part of your API endpoint is the campaign ID.

Email- Map it to the column in your spreadsheet containing Email ID's

Subject (Optional)- Enter subject line. If not provided, the original subject line of the campaign will be used.

Personalization Fields: Map the personalisation parameters to the respective columns in your spreadsheet eg. First Name, Customer ID etc. 

Personalization should be done as shown below.

Trigger campaigns in Mailmodo via Pabbly

Personalization format:-

"parameter_name":"Selected_parameter_from_google_sheet"

Type the name of the personalisation key used in Mailmodo (eg. first_name) inside double quotes. Insert a colon (:). Select the parameter from Google sheet, insert it between the double quotes.

Save and Send Test request. Upon successful testing, save your workflow. Make sure your workflow is ON.

Every time a row is added or updated, the contact will be sent an email. 

Was this article helpful?