Edit an Existing Message Template

Update a message that lives within your Message Template Library

You can send emails and SMS text messages to customers through your TripWorks account using Email & SMS Message Templates. These templates live within your Message Template Library, can be sent via Automated Messaging or Manual Messaging‍, and are available for editing at any time.

 

How to Edit a Message Template 

Step 1: Find a Message Template to Edit 

To edit a message template, you must first navigate to the desired template from your Message Template Library.

  • From the toolbar, select More > Discover More
  • Select Message Templates
  • Select the template you want to edit. Upon selection, you will be directed to the Editor View of the message template

From the Editor View, you can perform a number of actions. Expand the items below for guidance, and be sure to Save any changes you make to your message templates.  
 

Important Note

If you want your customers to receive a message via both email and SMS (text message), you must enable SMS delivery (for further instruction, skip to the section below titled "Enable SMS (text message) delivery for your message template"). If SMS delivery is not enabled, your message will be sent via email only.

 

 

Step 2: Add Your Message Content 

Edit the subject line of your message template

  • Click or tap the Subject Line portion of the template
  • Replace the existing subject line with your desired text
  • Save your changes if you're finished editing
 
 

Add text to your message template

  • Click or tap the message body portion of the template.
  • Add your desired content. (For content options and formatting tips, explore the other expandable items in this article.)
  • Save your changes if you're finished editing
 
 

Add a button to your message template

  • In the message body, insert the text you want to appear on the button
  • Tap and hold, or use your device cursor to highlight the button text


 

  • With the button text still highlighted, select the link icon  
  • Select Insert Link
  • Provide the desired link, either by filling in the URL text field or by selecting an item from the Choose a Pre-Defined Link drop-down menu

or 

  • Select the Open link in new tab checkbox if you want the button link, when followed, to open in a new tab for users
  • Select Insert to add your link 
  • Choose the Paragraph icon 
  • Select Button 
  • Your highlighted text should now be formatted to look like a button
  • Save your changes if you're finished editing
 
 

Add a hyperlink to your message template

  • In the message body, highlight the content you want to appear as the anchor text for your hyperlink
  • With the anchor text still highlighted, choose the the Link icon
  • Select Insert Link
  • Provide the desired link, either by filling in the URL text field or by selecting an item from the Choose a Pre-Defined Link drop-down menu

or 


 

  • Select the Open link in new tab checkbox if you want the button link, when followed, to open in a new tab for users
  • Choose Insert. Your anchor text should now be formatted as a hyperlink
  •  Save your changes if you're finished editing
 
 

Add an image to your message template

  • In the message body, place your cursor where you want the image to appear
  • Choose the Image icon to open the Image dialogue
  • Select the desired photo as prompted by the Image dialogue box. Your image should appear where your cursor was previously located
  • Save your changes if you're finished editing
 
 

Add a merge tag (autofill smart text) to your message template

Merge tags allow you to populate your email and SMS messages with unique data — including customer contact information, booking details, activity details, payment history information, and much more. Once a message is sent, these items autofill with the correct details for the message recipient in question. For example, here is how a Refund Processed message might appear from your Message Template Library vs. how it appears to the message recipient:

Message as seen from your Message Template Library 

Message as seen from the recipient's point of view 

How to Add a Merge Tag to Your Template

  • In the message body, place your cursor where you want the merge tag to appear.
  • Select the Merge Tag icon to access your content autofill options
  • Choose your desired merge tag. The content should appear where your cursor was previous located
  • Save your changes if you're finished editing
 
 

Use text variables in link URLs or HTML

The merge tag button inserts a visual tag into your message text. But when you want to include a dynamic value inside a link URL — for example, passing a booking confirmation number to an external system — you need a text variable instead.

Text variables use the format #variable_name# and are typed directly into the URL field of the link dialog, or into HTML source view. When the message is sent, TripWorks replaces each variable with the real value for that booking.

Text variables work anywhere in the template HTML — inside link href attributes, in plain text, or in the subject line. The merge tag button and text variables are two separate tools that serve different purposes.

 

Available text variables

Variable What it inserts
#trip_confirmation_code# The booking confirmation number (e.g. BVGG-JNUJ)
#customer_portal_url# Link to the customer self-service portal
#payment_url# Link to the payment request page
#waiver_url# Link to the waiver signing page
#review_url# Link to the review request page
#tip_url# Link to the tip / gratuity page
#abandon_cart_url# Link to recover an abandoned cart
#company_url# Your company website URL

Example: pass the confirmation number to an external URL

An operator wants to link customers to their own tracking portal at https://myportal.com/booking, passing the confirmation number as a query parameter.

  1. Highlight the link text in the message body (e.g. "View your booking details")
  2. Click the Link icon and select Insert Link
  3. In the URL field, type: https://myportal.com/booking?id=#trip_confirmation_code#
  4. Click Insert

When TripWorks sends the message, the link becomes https://myportal.com/booking?id=BVGG-JNUJ for that specific booking.

You can also type text variables directly in HTML source view. Click the HTML icon in the editor toolbar to switch to source view, add your variable inside an href attribute, then click HTML again to return to the visual editor.

 
 
 

Use custom field values in your message templates

If you've set up Custom Fields on your activities, you can pull those values into your message templates the same way you'd use any other merge tag. There are two ways to do it.

Option 1: Use the merge tag button (recommended)

Every custom field you've configured shows up in the merge tag picker by its label — no need to look up an ID.

  1. Place your cursor in the message body where you want the value to appear.
  2. Click the Merge Tag icon in the editor toolbar.
  3. Scroll to the Custom Fields section of the picker and select the field you want to insert.
  4. The field is added to your template. When the message is sent, TripWorks replaces it with the value the customer entered for that booking.

The merge tag button only inserts custom fields into the body text. If you need to include a custom field value inside a link URL or in HTML source, use the text variable form below.

Option 2: Use the #cf-{id}# text variable

For URL embedding, HTML source edits, or SMS templates, type the custom field text variable directly. The format is:

#cf-{id}#

Where {id} is the numeric ID of the custom field. When the message is sent, the variable is replaced with the value the customer entered for that field.

How to find a custom field's ID

  1. In the message template editor, insert the custom field using the merge tag button (steps above).
  2. Click the HTML icon in the editor toolbar to switch to source view.
  3. Find the tag you just inserted — it will look like <span class="merge-tag merge-tag-cf-42">...</span>. The number after merge-tag-cf- is the custom field's ID.
  4. Use that number in the text variable format. For the example above, the variable would be #cf-42#.

Example: pass a custom field value to an external URL

An operator has a "Group Name" custom field (ID 42) and wants to include the group name as a query parameter on an external link.

  1. Highlight the link text in the message body (e.g., "View group page").
  2. Click the Link icon and select Insert Link.
  3. In the URL field, type: https://myportal.com/groups?name=#cf-42#
  4. Click Insert.

When TripWorks sends the message, the link becomes https://myportal.com/groups?name=Smith%20Family%20Reunion (or whatever the customer entered for that booking).

The text variable only resolves when the booking actually has a value for that custom field. If the customer didn't enter anything, the variable is replaced with an empty string.

Edit your message template using HTML

  • Select the HTML icon to access the HTML view of your template
  • Apply any changes you want to make to the HTML code
  •  Select the HTML icon again to preview your changes
  • Save your changes if you're finished editing
 
 

 

Step 3 (Optional): Enable SMS (text message) delivery for your message template 

If you want your customers to receive a message via SMS (text message), you must both:

  1. Add SMS content to your template, and 
  2. Enable SMS delivery

Follow the instructions below to complete both components of enabling SMS delivery. This is an optional field; If SMS delivery is not enabled, your message will be sent via email only.  

  •  Inside the Message Template editor, scroll down to the Enable SMS Delivery section and select Yes 
  • Place your cursor in the text field of the Enable SMS Delivery section that appears 
  • Add your desired content. (For content options and formatting tips, such as inserting hyperlinks or merge tags, explore the other expandable items in this article above.)
  • Save your changes if you're finished editing

Step 4: Add Pre-Header Content to Your Message Template

A message template pre-header appears to the message recipient from their email inbox. It is intended to act as a concise, contextual preview of the message's content

  • Scroll to the Pre-Header section
  • Insert the desired content into the Pre-Header text field. Note that you can insert merge tags as desired.
  • Save your changes if you're finished editing

Step 5: Assign the Message Template to a Category 

Each template in your Message Template Library is assigned to a unique category. A template's assigned category impacts the automations available for use for that template.

For instance, if you have an “Event Reminder” message template in your library, but it is assigned to the User Defined Message category, you will not have the option to automatically send that message to customers when setting up your Event Reminder Messages within each activity. By assigning the template to the correct category (in this case, the Event Reminder category), you make it possible to enable the corresponding auto-send settings.

Visit Automated Messaging to learn more about ‍message template categories.

  • Scroll to the Category section
  • Select a category for your message template from the dropdown   
  • Save your changes if you're finished editing