Navigation

10.28. Customize Email Templates with Variables

Find, insert, and safely use variables such as the ticket title, client name, or invoice total in AlgaPSA system email templates.

10.28. Customize Email Templates with Variables
Find, insert, and safely use variables such as the ticket title, client name, or invoice total in AlgaPSA system email templates.
10. SettingsUpdated: 12/1/2026

A ticket update is more useful when it names the ticket, the client, and the technician who picked it up. Email template variables put those live details into your custom templates. For example, a ticket assignment email to GreenLeaf Dental Group can show the ticket number, its title, and the assigned technician without anyone typing them.

Each system template has its own set of variables. A variable works only in the templates that list it, so an invoice variable is empty in a ticket email.

Find the variables a template supports

Open Settings > General, select Notifications under Communication, choose Email Notifications, and open the Email Templates tab. Select Variable reference to search every template across ticketing, billing, projects, appointments, and other areas.

Figure 1: Search every variable and see which templates can use it.

Each result shows the variable, its type, what it contains, and the templates that use it. Select the copy icon to put the complete token on your clipboard.

Insert a variable while you edit

Choose Customize for a standard template or Edit for an existing custom template, then open the Variables tab. The panel lists only the variables that this template supports.

  1. Type {{ in the subject, HTML, or plain-text editor to open suggestions at the cursor.
  2. Keep typing to filter the list, then press Enter or Tab to complete the token.
  3. Or select a variable in the panel to insert it at the last cursor position.

Figure 2: The editor limits the variable panel and its suggestions to the selected template.

A subject for the Ticket Assigned template can combine several variables:

Ticket {{ticket.id}} assigned to {{ticket.assignedToName}}: {{ticket.title}}

Variables you will use most

These examples come from the Ticket Assigned and Invoice Email templates. Check the variable reference before you use one in a different template.

VariableWhat it containsExample
{{ticket.id}}The ticket number your team and the client see.TCK-1234
{{ticket.title}}The ticket's title.Printer not working on 3rd floor
{{ticket.priority}}The priority name.High
{{ticket.status}}The current status name.In Progress
{{ticket.clientName}}The client the ticket belongs to.GreenLeaf Dental Group
{{ticket.assignedToName}}The assigned technician's full name.Jane Smith
{{ticket.url}}A link that opens the ticket.
{{invoice.number}}The invoice number shown to the client.INV-000123
{{invoice.amount}}The total due, already formatted as currency.$1,250.00
{{invoice.dueDate}}The payment due date, formatted for display.August 9, 2026
{{company.name}}Your MSP's company name.Northwind Managed IT

Double and triple braces

Use double braces for ordinary values, such as {{ticket.title}}.

Variables of type raw-html use triple braces, such as {{{comment.contentHtml}}}. Their value is markup that AlgaPSA has already prepared. Use triple braces only for variables marked raw-html.

Optional values

Some values are not always present. Keep the conditional section around them so the email does not show an empty box:

{{#if customMessage}}
  <p>{{customMessage}}</p>
{{/if}}

Check the template before you save

  • Preview the template with sample data and send a test email.
  • Check the subject, the links, the optional sections, and the plain-text version.
  • ticket.id and project.id are the ticket or project number, not an internal identifier.
  • Some link variables open the client portal for client recipients and the MSP workspace for your team. Do not assume the address from an example value.
  • Dates can be display text or timestamps, depending on the variable. Follow the description of the specific variable.

See every variable

The Variable reference in the app is the quickest way to look up one variable. For the complete list in one place, with a table for every system template, see the email template variable reference in the AlgaPSA repository.

For the template editor and email colors, see 10.22. Brand System Emails and Edit Notification Templates.