Slack Notifications with Marketo
Last updated
Last updated
The Marketo Slack integration uses webhooks from Marketo that are then sent to Slack containing the message to be shared in a direct message or a channel. There are three main parts: creating an app in Slack, creating the Webhook in Marketo, and then building a workflow in Marketo.
Navigating to the Apps section of the Slack API center
Click “Create an App”
Click “From scratch”
Enter “Marketo” for the App Name
Select your Slack workspace to integrate with Marketo
Click “Create App”
Click on “Incoming Webhooks” on the follow-up screen or under “Features” in the left-hand navigation tree
Toggle on “Activate Incoming Webhooks”
Click on “Add New Webhook to Workspace”
Select the Slack channel or individual you would like to send notifications to
Click “Allow”
Copy the “Webhook URL” that appears for this channel/person
You will need this “Webhook URL” later on in Marketo when setting up the destination for the webhook.
Navigate to the Admin section in Marketo.
Click on “Webhooks” under the “Integration” section in the navigation tree on the left-hand side.
Click on “New Webhook” at the top of the screen.
Name your webhook using the “Webhook Name” field.
Enter an optional description if you desire.
Paste the “Webhook URL” that you copied from the Slack App in the previous section.
Leave the “Request Type” as “Post”.
What you put in the “Template” (Payload Template) field will depend on the message you are trying to send to Slack.
You can select default Marketo Tokens using the Insert Token button.
To send Tourial Enagement Data, you can use Trigger Tokens. See additional details on Trigger Tokens and templates you can copy below.
Leave the “Request Token Encoding” field as “None”.
Leave the “Response type” field as “None”.
Sample Slack notification 👇
Adding Trigger Tokens is simple, they just need to be included within the “Payload Template” when configuring the webhook.
Trigger Name: {{trigger.Trigger Name}}
Name: {{trigger.Name}}
Tourial Name: {{trigger.Tourial Name}}
Total time spent: {{trigger.Tourial Total Seconds}}
Tourial URL: {{trigger.Tourial URL}}
Total time spent: {{trigger.Tourial Total CTA Clicks}}
External links clicked: {{trigger.Tourial Total External Links Clicked}}
Lead Link MKTO: https://app-sj36.marketo.com/leadDatabase/loadLeadDetail?leadId={{Lead.Id}}
🛑 Note - replace sj36 in the URL for Lead Link above with your Data Center ID. Find it in Marketo URL after opening a Person Record, or go to Admin > My Account > Scroll to Support Info > Data Center.
To use the message setup from the Sample notification, copy and paste this Payload Template below. Then, update the text and/or tokens. Don't forget to update the Lead Link MKTO URL with your Data Center ID.
Copy and paste this into the Payload Template field:
Once you've setup the Webhook, you can create Interesting Moments using a Smart List and Flow to tell Marketo to listen for a trigger and then send a Slack notification.
Select Marketing Activities and select the folder you want to build the workflow in. In our example below, we're building it under Interesting Moments.
Click on Smart List and then add the Views Tourial trigger from the righthand panel.
From here, use the dropdown menu to determine whether you want to pull all Tourials viewed (in which you could use Tourial Name: is not empty), or include and exclude specific Tourials based on the name.
Select Add Constraints to choose additional Tourial Engagement Data criteria.
With your Smart List triggers done, move over to Flow. This is where you add the actions you want to happen when a trigger occurs.
Select Add Webhook in the righthand panel and then click the Slack Webhook you just created.
Tip: Use Tourial Engagement Data to influence your lead scoring model. More engagement, longer sessions, multiple views... these all indicate higher buyer intent!
Under Schedule, be sure to edit the Qualification Rules if you want people to be able to enter this flow more than once.
And that's it! Once you've set up one webhook, you can set up multiple for different Tourial Engagement parameters, or a separate one for when someone submits a form within your product tour.
Like this one!
Feel free to copy and paste this payload template too 😎