Skip to content
  • There are no suggestions because the search field is empty.

How to Use Email & SMS Events Triggers in Workflows

In this article, we will show you how to start a workflow when a client or lead opens, clicks, bounces or unsubscribes from an email, clicks a trigger link, or does not receive an email or SMS, and how to filter those events with conditions and merge tags.

NOTE: These triggers work with emails and SMS that Pabau sends. An email sent through a connected Gmail or Outlook mailbox has no delivery events, so it never starts an Email event or bounce workflow, and messages sent by WhatsApp are not covered.

The Three Triggers

The Email & SMS events card sits under Messages & reviews in the trigger list and has three triggers:

Trigger Starts when
Email opened, clicked, bounced or unsubscribed A client or lead opens, clicks a link in, bounces, unsubscribes from or marks as spam any email Pabau sent them – campaigns, reminders, workflow emails and the rest.
Trigger link clicked A client or lead clicks one of your trigger links in an email or SMS that a workflow sent them. See How to Create Trigger Links.
Email or SMS failed to deliver An SMS fails to deliver, an email bounces or is dropped, or a message is not sent because the phone number or email address is not valid.

Step 1: Create a Workflow

Go to Setup → Workflows and click Create workflow, then Start from scratch.

Step 2: Choose an Email & SMS Events Trigger

In Choose what starts this workflow, type email in the search box. Under Messages & reviews → Email & SMS events, click the trigger you want.

The Email & SMS events card with its three triggers in the trigger list

The three Email & SMS events triggers

The panel describes what the trigger does. Choose Who can enter this workflow (Every time, Only once or Once every…) and click Set trigger & continue.

The selected Email event trigger with its description and the Set trigger & continue button

The selected trigger and its description

Step 3: Filter the Events with a Condition

Each trigger starts on every event of its kind, so add a Condition straight after it to keep only the events you want. Click + under the trigger, choose Condition, then pick a Field, an Operator and a Value. For example, for the email trigger choose Event is Opened.

A condition on Event offering Opened, Clicked, Bounced, Unsubscribed and Marked as spam

The Event condition for the email trigger

These fields are available for each trigger:

Trigger Its own fields
Email opened, clicked, bounced or unsubscribed Event (Opened, Clicked, Bounced, Unsubscribed, Marked as spam) · Clicked link (the link's address without its query) · Automatic open (Yes or No)
Trigger link clicked Trigger link (choose from your trigger links' names) · Trigger link ID · Workflow (the workflow whose email or SMS held the link)
Email or SMS failed to deliver Failure (SMS failed, Invalid phone number, Invalid email address, Bounced, Dropped) · Failure reason · Failure code

All three also offer Channel (Email or SMS), Message subject, Sent by (Campaign, Newsletter, Workflow, Template, Appointment, Invoice or Other), Template, Campaign, Sent to (Client or Lead) and Event date, plus the usual client and lead fields.

A condition on Failure offering SMS failed, Invalid phone number, Invalid email address, Bounced and Dropped

The Failure condition for the delivery failed trigger

TIP: Some mail apps (for example Apple Mail Privacy Protection) and email security tools open every email by themselves when it arrives. To act only on opens by a real reader, add Automatic open is No to your condition.

Step 4: Add Your Actions and Use the Merge Tags

Click + under the condition, choose Action and add what should happen – for example Send SMS when an email bounces, or a task for the front desk when a phone number is not valid. In the action's text you can insert these merge tags, as well as the client and lead tags:

Merge tag What it holds Trigger
Message Event What happened, e.g. Opened, Clicked, Bounced, SMS failed All three
Message Channel Email or SMS All three
Message Subject The email's subject, where Pabau knows it All three
Message Sent By Campaign, Newsletter, Workflow, Template, Appointment, Invoice or Other All three
Message Template / Message Campaign The template or email campaign it came from, if any All three
Message Recipient The email address or phone number it went to All three
Message Person Whether it went to a Client or a Lead All three
Message Event Date When it happened All three
Clicked Link / Automatic Open The clicked link's address without its query / Yes when the mail app opened it by itself Email event
Trigger Link / Trigger Link ID / Message Workflow The clicked trigger link's name and id, and the workflow whose message held it Trigger link clicked
Failure Reason / Failure Code Why it failed in the provider's words, and its error or SMTP code if it gave one Delivery failed
Message Text An SMS's text, so you can send it again another way (empty for an email) Delivery failed

Step 5: Test, Save and Publish

Test the workflow, click Save and then Publish it as usual.

How Often Does Each Trigger Start?

  • Email event: once per email, per recipient, for each kind of event. A second open of the same email does not start it again. Clicks start it once per link.
  • A mail app's automatic open and a reader's open are separate events – Automatic open tells them apart.
  • Trigger link clicked: once per link, per message, per recipient. Link previews, mail scanners and a repeat click within a minute are not counted.
  • Delivery failed: once per message, per recipient. An SMS that fails twice is one event.

Can These Workflows Loop?

No. An event about an email or SMS that an Email event or Delivery failed workflow sent never starts either of those triggers again. So a workflow that emails on Bounced will not keep emailing the bouncing address. For the same reason, actions whose messages Pabau cannot follow – such as Send Aftercare, newsletters, Send Payment Link and Send Plan – cannot be used in an Email event or Delivery failed workflow. Trigger link clicked is never held back this way, because a person has to click.

Why Is Bounced in Two Triggers?

Email event is about what happened to an email that was sent, so a bounce sits beside unsubscribes and spam reports. Delivery failed is about any message, email or SMS, that did not reach the person, and adds dropped emails, failed SMS and refused sends. If you build workflows on Bounced with both triggers, one bounce runs each of them once. To unblock an address after a bounce, see How to Unblock a Client's Email Address After a Bounce.

What's Next?

More about workflows and message tracking:


Was this guide helpful? Let us know by voting below - your feedback helps us write clearer articles.

For more guides, browse the related articles below or use the search bar at the top of the page. You can also watch our video learning series, the Pabau Academy, or visit the Support page for additional help.