Marketo Engage

Modica powers your messaging solutions, including integrating your communications with the other key software you use, such as Marketo.

Using a pre-configured webhook you can use Marketo’s ‘Send Webhook’ flow step to action an Outbound SMS via the Modica platform, based on triggered activities from a Marketo Smart Campaign/Program. Follow these steps in Marketo:

Create a Webhook

  1. Navigate to the ‘Admin’ area of Marketo Engage

Colourful screenshot of Marketo software admin option

  1. Click ‘Webhooks’

Colourful screenshot of Marketo software dropdown options, highlighting webhooks

  1. Click ‘New Webhook’

Colourful screenshot of Marketo software webhook options, highlighting new webhooks

  1. Enter the following details into the Webhook:
  • Webhook Name: e.g. Modica Webhook

  • Description: e.g. SMS sent from Marketo

  • URL: this can be found in the HTTP API configuration document for Modica’s gateway access

  • Ensure the following details are updated for your specific Modica account:

    • Modica App - this is your username for your Modica account.
    • Modica Password - this is your password for your Modica account.
    • {{lead.Next SMS Message}} - this is a custom field setup in Marketo where you add the “next” message content of your specific SMS message you are sending.
    • {{lead.Mobile Phone Number}} - this is your main field you store Mobile numbers in for your Marketo database. For NZ numbers ensure the formatting starts with either ‘+64’ or ‘64’numbers starting with 021 or 027 or 0064 will now work.
  • Request Type: GET

  • Template: this is not required, but can include the message you will be sending out, however it is more flexible to use the {{lead.Next SMS Message}} approach and add your specific SMS content in each Marketo Program (see below how to do this).

  • Request Token Encoding: select Form/URL

  • Response Type: None

  • Click ‘Save’

Colourful screenshot of Marketo software webhook options, highlighting new webhooks


Use a Webhook in a Smart Campaign

To use a webhook to send SMS, add it to a Smart Campaign as a flow action.

infoNote: Webhooks can only be used in Trigger Campaigns.
  1. Create a ‘Smart Campaign’
  2. Go to the ‘Flow’ tab and drag in the ‘Call Webhook’ flow action

Colourful screenshot of Marketo Engage, showing the flow tab selected and a 'call webhook' item being dragged into the configuraion

  1. Select the webhook by searching it’s name

Colourful screenshot showing a webhook being selected

Smart Lists and Flow Steps

You can also use Webhooks in a Smart List:

Colourful screenshot showing a webhook being selected

Your webhook is also available to ‘Add Choice’ in a flow step:

Colourful screenshot showing a webhook being selected

Turn on your Smart Campaign when tested and ready.


Additional Information

Webhooks in Marketo need to be Triggered from Smart Campaigns - batched Smart Campaigns will not send webhooks directly.

You can create an alternative batch campaign in Marketo to link to a Triggered Smart Campaign (to send your webhook) by using ‘Campaign is Requested’ Trigger in your Smart Campaign - this is a useful way to test an SMS.

This would require two Smart Campaigns in your Program (one batch, one trigger)

Black and white screenshot of 2 options in Marketo software; batch activate SMS and Send SMS Webhook

To connect to your 02- Triggered Smart Campaign, you would use the following Trigger.

Black and white screenshot of Marketo software 'Change Data Value' and 'Call Webhook' areas

Of course, any Trigger will work when you are using this webhook to send to people in your database, but remember to action a Webhook send, the Smart Campaign must be a Trigger.

From the 01- Batch Smart Campaign you would set your ‘Smart List’ criteria for who will qualify for the campaign, then use the Request Campaign Flow step.

Black and white screenshot of setting up a Flow in Marketo, starting with Requesting a Campaign

The flow in 02- (as above) will then send your SMS via Modica.

Black and white screenshot of setting up a Flow by Change Data Value and Call Webhook setup, in Marketo


Create an Error Handling Program

It is good practice to create an Always On Operational Program that handles errors from the Webhook.

A common error if the mobile phone number format is incorrect is “HTTP Error 400: Bad URL request.”

Use the following Trigger in your Smart Campaign.

Black and white screenshot of the Smart List configuration of a webhook error, in Marketo

And then the following Flow step to Alert someone about the issue.

Black and white screenshot of the Flow configuration of a webhook error, to send alerts via email, in Marketo