Triggers give you a powerful way to communicate automatically. You can respond to guests with personalized messages or notify third parties without lifting a finger! To read more about triggers, check out our Trigger overview support article. We've created a small library of trigger examples to help get you started.
In this example, we're dealing with a booking for the following scenario:
Scenario: Notify Cleaning Staff of a New Booking
Keeping your cleaning staff in the loop about new bookings is imperative! You'll want to notify your cleaners about a new booking as fast as possible. OwnerRez can do that for you with message triggers.
Here are the steps for how to set up a template and trigger for this scenario:
- Create a Booking Template to Notify Cleaning Staff of a New Booking
- Create a Trigger that Applies to a New Booking to Notify Your Cleaning Staff
Create a Booking Template to Notify Cleaning Staff of a New Booking
Go to Settings > Templates to configure the message you want to send. Since this template will be used for new bookings, create a "Booking" type of template.
There are two choices for the type of template you can create - email, and SMS. These are the delivery methods that will be used for your response. To send these types of templates, you'll need your cleaners' contact information you can send the message to. For instance, if you want to send an SMS message, you'll need your cleaners' cell phone number.
Notifying by Email
First, we'll create an email template, so go to Settings > Templates > Email tab > click the Create Email Template button > select the "Booking" option. This will open an email editor with some sample field codes filled in. For detailed information about how email templates and field codes work, check out the email templates overview article and field codes articles.
Copy and paste the following values into your new email template.
Name:
Notify Cleaning Staff of a New Booking Email Template
From Name:
{MYCOFULL}
From Address:
{MYEMAIL}
To Name:
Cleaner Name
To Address:
Cleaner email address
Subject:
New Booking Notification for {BARR}-{BDEP} at {PDISPNAME}
Body:
Hi Cleaner name,
Just got a new booking and here are the details:
{BARR} to {BDEP} at {PDISPNAME} for {BNGUEST} guests.
{MYFIRST}
If you're wondering what those field codes do, check out the field codes support article or use the "Preview" button on the template to take a live look.
Here's a quick preview of what the above email message looks like:
Notice how clean and personalized the content is. The subject line is dynamic to the property, and dates booked, so it will match the guest booking. It includes the property, booking dates, and number of guests. In other words, it looks like a hand-written manual response, even though it wasn't.
After copying and pasting the above subject and body into your template, feel free to play with the words and styles to make it your own. However, remember that we are creating a message specific to notify your cleaning staff of a new booking. If this template is used for a guest, the message body would be confusing to your guest. Similarly, if you do not include the {BARR} arrival date and {BDEP} departure date field codes in either the Subject field or body of the email template, the cleaner will not see booking dates displayed.
Optionally, if your property has an entry door that uses a manual door code, that your cleaner changes before each booking, you could include the {BDOORCODE} door code field code in this email message. And if you use the {BCLEANDATE} cleaning date field code that is manually set in individual OwnerRez bookings, you could include that as well.
We are now armed with a solid email notification for cleaners of any new bookings. But what about sending an SMS message to notify cleaners of any new bookings?
Notifying by SMS
If you have your cleaners' cell phone number, let's put it to good use by notifying them of new bookings.
Using our SMS premium feature, you can notify them directly via SMS to their cell phone. For detailed information about how SMS templates work, check out the SMS Templates and field codes support articles.
To create an SMS template, go to Settings > Templates > SMS tab > click the Create SMS Template button > select the "Booking" option. This will open an SMS message editor with some sample field codes filled in.
Copy and paste the following values into your new SMS template.
Name:
Notify Cleaning Staff of a New Booking SMS Template
To Phone Number:
Cleaner cell phone number
Body:
Cleaner first name, just got a new booking for {BNGUEST} guests, {BARR} to {BDEP} at {PDISPNAME}! 😁
Once again, smack that Preview button to see how this looks live! SMS templates are plain text with no colors or formatting options, but you can still dress them up with personalized field codes and light-hearted emojis.
Here is a quick look at how the above SMS template looks in preview mode:
Not a fan of emojis? No worries, edit that part out!
You'll notice that this SMS template differs from the email template in that it is much shorter. Instead, it's a quick sentence to notify your cleaner of the new booking. If you'd rather say something else - that's totally fine.
Now that we have some message templates created, it's time to configure the trigger that will send them.
Create a Trigger that Applies to a New Booking to Notify Your Cleaning Staff
Since each trigger can only send one message template, you'll need to create a trigger for each type of message you send. Above, we crafted messages for email and SMS, so we'll need to create two triggers to send each one.
First, we'll create a trigger to send the email message. Navigate to Settings > Messaging > Triggers > and click + Create Trigger to pull up the new trigger screen.
Here is a list of all the settings the trigger needs to have:
- Type: Immediate
- Event: Booking is created
- Action: Email Templates > Notify Cleaning Staff of a New Booking Email Template
Now, let's talk about what the above settings mean!
The Type and Event fields will make the trigger run as soon as any new booking is received or recorded in your account. Remember that bookings can be received or recorded in different ways.
This trigger has no Conditions applied to it because we want to notify our cleaners of every new booking.
You may want to add other conditions, but for now, this is enough to make our trigger send the email message to notify cleaners when new bookings come in.
But what if you have more than one property, and each property has a different cleaning staff? Clearly, you'd have to add the Condition of "Property is Only" and select those specific properties to ensure that the correct cleaning staff is notified for the properties that they clean only.
Finally, the last thing we select is the "Action" for the email template we want to send. Since this trigger is supposed to send an email message, select the email template and be careful not to select the SMS template.
At this point, your trigger should look like this:
Nice and simple!
These actions do exactly what they say.
That's it! Click Save, and now you have a trigger ready to go.
But we're not done. You created a template for an SMS message too, so now you need to create a trigger to send that.
Using the instructions above, create one more trigger with the same type, event, and conditions, but select the SMS template as your "Action" instead of email.
There is no "Phone Number on File" condition, but that's okay because the trigger won't send an SMS message if there's no phone number to send it to. And we manually entered our cleaner's cell phone number in the Phone Number Field. The trigger will silently skip sending a message if there is no way to send it.
All done! You now have active triggers in place that will automatically notify your cleaning staff of a new booking!