Take the first steps towards 2 way Marketo text messaging and sending text notifications by learning how to build outbound text messaging into your Marketo campaigns using webhooks to call the Telnyx messaging API.
If you want to learn how to set up webhooks in Marketo, see different use cases, and how to troubleshoot issues then check out the Marketo Webhook Guide with Examples.
Introduction to Telnyx Text Messaging
If you are looking for an introduction to the Telnyx CPaas platform and why they should be your messaging provider take a look at the Marketo SMS Marketing with Telnyx post where I explain the pricing and features of Telnyx messaging. Also if you want a sneak peek at the cool things you can do once you have set up Marketo text messaging then check out the Marketo SMS Integration: Webinar Reminders post.
The first step to Marketo text messaging is to set up your Telnyx account. This Messaging Quickstart Portal Setup Guide will walk you through the steps below.
- Create a free Telnyx portal account
- Buy a messaging capable phone number
- Create a messaging profile
- Associate your number with this messaging profile
Creating the Marketo Text Message Webhook
Next login to Marketo and navigate to the “Webhooks” section in “Admin”
- Select “New Webhook”
- Name the webhook
- Paste
https://api.telnyx.com/v2/messages
into the “URL” field - Leave the “Request Type” as “POST”
- Paste the code below into the “Template” field
{
"from": "+12345678910",
"to": "{{lead.Form - Marketing Phone}}",
"text": "Hello Workflow Pro"
}
Notice how a lead token is used to pull in the phone number of the person the message will be sent to. You will need to swap in your own lead phone number field in here and replace the “+12345678910” number above with the messaging-enabled phone number you purchased before.
- Leave “Request Token Encoding” as “None”
- Set “Response Format” to “JSON”
- Click “Create”
Authorizing the Marketo Text Message Webhook
Navigate to the Auth section of your Telnyx account and create a new API Key following the steps below:
- Select “Create API Key”
- Click “Create”
- Copy the “API Key”
Next, follow these steps in Marketo to set up the Authorization header:
- Click on “Webhook Actions”
- Select “Set Custom Header”
- Click “Add”
- Put “Authorization” in the header column
- Put the word “Bearer” followed by a space in the “Value” column
- Paste your Telnyx API key in the “Value” column
- Click “Add”
- Put “Content-Type” in the header column
- Put the word “application/json” in the “Value” column
- Click “Save”
Marketo Text Messaging with Number Pooling
Telnyx offers the ability to distribute outbound text messages over the numbers associated with a messaging profile with a feature called “Number Pooling”. If you want to learn about how number pooling can help you increase throughput and deliverability rates as well as an explanation of the features like “Sticky Sender” check out the Marketo SMS Marketing with Telnyx post.
The setup and custom header of the webhook will be the exact same with the only changes being that the URL must be updated to the number pool endpoint and the payload must be updated to specify the messaging profile id instead of the “From” phone number.
https://api.telnyx.com/v2/messages/number_pool
{
"messaging_profile_id": "5569779b-06a9-442e-9153-4c366be5a2c0",
"to": "{{lead.Form - Marketing Phone}}",
"text": "Hello Workflow Pro"
}
Marketo 2 Way Text Messaging
As with email marketing, it is important to adhere to regulations governing text message communications. Take a look at the Marketo 2 Way SMS using Telnyx and Zapier post to see how you can auto-respond to inbound text messages like “HELP” and “STOP” to comply with text message regulations.
Once you have implemented 2 way text messaging you are now ready to start using text messages in your smart campaigns for examples such as webinar reminders.
If you instead want to send SMS in bulk using numbers stored in a Google sheet then check out the Zapier Loop Through Array from Google Sheets post.