Want to build your own 24/7 FAQ knowledge base?
LibraryH3lp subscriptions
include unlimited independent internal or public-facing
knowledge bases.
2 views | Last updated on May 29, 2026 tickets
Templates use variables to automatically insert ticket information into emails. There are variables that will automatically provide the guest's name, the original question, etc... within the notification email.
Email Notification Templates use the Mustache templating language. Most notification templates only need simple variables such as {{guest_name}} or {{ticket_subject}}, but Mustache also supports conditional content, loops, and comments.
Insert the value of a variable:
Hello {{guest_name}}
Example output:
Hello John Doe
Comments are ignored when the template is rendered.
{{! This comment will not appear in the email }}
Comments can be useful for documenting complex templates.
Display content only when a variable has a value:
{{#ticket_note}}
A note was added to this ticket.
{{/ticket_note}}
If ticket_note contains content, the message will appear. If not, nothing will be displayed.
Display content only when a variable i14s empty or missing:
{{^ticket_tags}}
No tags have been assigned.
{{/ticket_tags}}
This block will only appear when the ticket has no tags.
Some variables contain multiple values. For example, ticket_tags may contain several tags.
You can loop through the list and display each item:
Tags:
{{#ticket_tags}}
- {{.}}
{{/ticket_tags}}
Example output:
Tags: - billing - account-access - urgent
Within a loop, {{.}} refers to the current item.
Most variables should use double curly braces:
{{guest_name}}
Variables that may contain formatted content, links, or HTML should use triple curly braces:
{{{ticket_question}}}
Using triple curly braces allows HTML content to be rendered correctly in the notification email.
For example, if a ticket contains a link:
Page is <a href="https://example.org">available here</a>
Using:
{{{ticket_question}}}
will display a clickable link in the email.
Using:
{{ticket_question}}
will display the underlying HTML code instead.
Conditional blocks can be used to create more dynamic notifications.
Example:
Subject: {{ticket_subject}}
{{#ticket_note}}
A new note has been added:
{{{ticket_note}}}
{{/ticket_note}}
{{^ticket_note}}
No note was included with this update.
{{/ticket_note}}
This template displays different content depending on whether a note is present.
LibraryH3lp uses standard Mustache syntax. For more advanced examples and complete documentation, see:
FAQ URL: