Re: Trigger email based on link clicked in alert?

Jroscoe
Level 2

Trigger email based on link clicked in alert?

Hi - 

I'd like to implement a flow for event approvals that looks like this:

  1. Person registers via a form and sees thank you message that approval is pending
  2. Alert goes to approver with a link to click to approve or decline
  3. Email is then triggered to the person who registered, confirming or declining their attendance

I can't figure out how to trigger the email send to the person who registered. Would a webhook be able to do this?

Tags (1)
8 REPLIES 8
Miray
Level 4 - Champion

Re: Trigger email based on link clicked in alert?

@Jroscoe  Which event platform are you using? Do you have Integration alredy set up with marketo and the event platform ?

Jroscoe
Level 2

Re: Trigger email based on link clicked in alert?

@Miray  not using one unfortunately, which is one of the reasons I'm trying to see what's possible within Marketo. 

Miray
Level 4 - Champion

Re: Trigger email based on link clicked in alert?

@JroscoeCan you confirm that you are looking to build a process similar to the one below?

 

2025-01-31_11-34-13.png

Jroscoe
Level 2

Re: Trigger email based on link clicked in alert?

Yes @Miray ! With the approval email being sent to someone internal as an alert. 

 

The status on Filled out form = Waitlisted. Then once approved = Registered. Declined = Declined. 

Miray
Level 4 - Champion

Re: Trigger email based on link clicked in alert?

@Jroscoe if you wanna automate this process I would create 2 landing pages, one for lead registartion and another one for internal use for approval process. 

Event Registration Lead Landing Page and Form :

This page will serve as the primary entry point for leads to register for the event.

Components:

  • Event Form: Include all necessary fields for lead registration.
  • Action: Once a lead fills out the form, their event campaign member status should be automatically set to "Waitlisted." into Event Program

Internal Use Page - Registration Approval

Purpose: This page will be used internally to manage and approve event registrations.

Components:

  • Lead Email Address: A field to input the lead's email address. Ensure your internal team uses the registrant's email address.
  • Event Approval Status: A pick list with the options "Approved" and "Declined."

Action:

  • Alert Email: When a lead fills out the registration form, send an alert email to the internal team. The email should contain the lead's details, such as their email address, ( You can use tokens to dynamically insert the lead's details into the email.) and include a link to the event approval form page.

Smart Campaign:

  • Trigger or Batch Campaign When a member of the program has a status of "Waitlisted" and the Event Approval status is changed to "Approved." or Event Approval field value is Approved
  • Confirmation Email: Send a confirmation email to the leads whose status has been changed to "Approved."

 

Jroscoe
Level 2

Re: Trigger email based on link clicked in alert?

@Miray  Thank you so much! I got up to the approver clicking the link in the alert on my own, basically the same way you have laid it out, before posting here. Then I got stumped on how to associate the approval email to the person who registered. 

 

So if I understand what you are explaining - the approver fills out the form and with the email and selects the approve / decline picklist on the landing page ( I like this as it takes out the issue of bot clicks).

 

Then I trigger the approval or decline email send based on the status change triggered by the form fill? 

 

In my workflow, how do I make sure that the status change is associated with the email address entered by the approval form submission? 

 

 

 

 

 

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Trigger email based on link clicked in alert?

@Miray one part you left out is you must remove the tracking info from the form post. Otherwise the approver’s Munchkin session is associated with the original lead, so the approver’s web page visits will be logged to the lead. We don’t want that!

SanfordWhiteman
Level 10 - Community Moderator

Re: Trigger email based on link clicked in alert?


Would a webhook be able to do this?

Webhooks wouldn’t be of use here.

 

But meeting your overall requirements is quite simple in Marketo.

 

First, realize — not just in this context, but anywhere in marketing automation — you cannot trust a mere link click to be a human action. Both mail scanners (bots) and humans register link clicks. For something as sensitive as approval, you almost certainly do not want to trust a link click. I wouldn’t.

 

Instead, you use the Big Button Form concept. You take them to a page with a big button — you’ve surely encountered this in your online travels — and they click the button. Behind the button is a form, but they don’t need to know that. The important part is mail scanners won’t click that button, so you can always trust a human did it.

 

So you set up a Big Button Form, e.g. a Marketo form with only the button shown. Make Email Address a hidden field, set to Auto-Fill from a query parameter Email.

 

Create an LP with an unguessable name. Use a GUID, for example.

 

Just before the closing </body> tag on the LP, add this code to make sure source fields are not included in the form submission, like so:

 

MktoForms2.whenReady(function (form) {
   form.addHiddenFields({ 
      _mkt_trk: "",
      mkt_tok: ""
   });
   
   form.onSubmit(function (form) {
      form.vals({ 
         _mkt_trk: "",
         mkt_tok: ""
      });
   });
})

 

 

Now you have a suitable approval form. Send the approver a link to the LP, attaching the Email Address field to the URL using a Velocity {{my.token}}:

 

<a href="https://pages.example.com/9685cfed-f705-4b41-bc60-4f728a4d68a4?Email=${esc.url($lead.Email)}">Approve this person</a>

 

 

Now, when the approver clicks that link and then submits the Big Button Form, the activity will show up in the original lead’s activity log and you can trigger on it any way you want.