Mazecare Logo
Integrations & Settings

Email Templates & Notifications

How to create and customize email message templates using Liquid variables, bind them to appointment templates, and set up automated notifications and reminders.

Mazecare integrates automated email delivery directly with clinical and scheduling events. This guide details how to create and configure email message templates, map them to appointment templates, and set up automated trigger-based notifications (including scheduled reminders).


Overview of Email & Notification Architecture

Mazecare's notification system connects reusable email layouts with appointment lifecycle triggers:


Detailed Step-by-Step Walkthrough

Step 1: Create Email Message Templates

Create and design reusable layouts for your client-facing and provider-facing emails:

  1. Log in to Mazecare as an Administrator or Staff member.
  2. Click the Global Search input box in the top-center navigation bar, or press the Cmd + K (Mac) or Ctrl + K (Windows/Linux) keyboard keys to focus the search field instantly.
  3. Type template or email in the search bar and select Email Message Templates under the Settings category to open the email message templates page.

  1. On the templates list page, review existing templates or click the + New Email Message Template button to create a new one.

  1. In the template editor form:
    • Template Name: Enter a descriptive name for internal identification (e.g., General Consultation Booking Confirmation).
    • Template Description: Provide internal documentation about the template's purpose and intended triggers.
    • From Name: Specify the display sender name (e.g., Mazecare Medical Clinic or Dr. Smith's Practice).
    • From Email: Preconfigured with the system's verified sending domain (e.g., admin@mazecare.com).
    • Subject: Enter the email subject line. Liquid variable tags can be inserted directly in the subject.
    • Body: Compose the email content using the visual editor or switch to HTML Mode for advanced layouts.

Editor Mode Best Practice
If you are building custom layouts using raw HTML in HTML Mode, avoid switching back and forth between Visual Mode and HTML Mode before saving, as the visual editor's parser may strip custom table wrappers, inline styles, or container tags.

Step 2: Utilize Dynamic Liquid Placeholders

Mazecare supports dynamic Liquid tags in both the Subject and Body fields. Placeholders automatically resolve to context-specific appointment and entity data at send time:

Dynamic TagLiquid PlaceholderDescriptionExample Output
Patient Name{{patientName}}Full name of the patientJohn Doe
Patient Email{{patientEmail}}Primary contact email of the patientjohn.doe@example.com
Doctor Name{{doctorName}}Primary attending physician's nameDr. Michel Doe
Doctor Names{{doctorNames}}Comma-separated list of all assigned doctorsDr. Michel Doe, Dr. Sarah Jenkins
Doctor Email{{doctorEmail}}Attending physician's contact emailmichel.doe@example.com
Current Date{{currentDate}}Current formatted execution date14/08/2026
Appointment Date{{date}}Scheduled start date of the appointment15/08/2026
Start Time{{startTime}}Scheduled start time formatted in clinic timezone09:00 AM
End Time{{endTime}}Scheduled end time formatted in clinic timezone10:00 AM
Meeting Link{{spaceUrlLink}}Secure video consultation link (for virtual appointments)https://cms-hk-dev.mazecare.com/...

To insert tags:

  • Type @ in the editor to trigger the auto-suggestion dropdown.
  • Alternatively, click any placeholder token in the editor suggestions sidebar to insert it at your cursor location.


Step 3: Preview and Send Test Emails

Before applying templates to production appointments, verify the rendered output:

  1. Click the Preview button in the template action bar to open the slide-over preview drawer.
  2. The preview automatically replaces all Liquid variables with realistic test data, allowing you to inspect sender headers, subject line, and layout.
  3. Under the Send Test Email section:
    • Enter your personal or test recipient email address in the Recipient Email field.
    • Click Send.
    • Mazecare dispatches a live test email through the email delivery pipeline to confirm inbox rendering and styling.
  4. Click Save to persist the template.

Step 4: Configure Appointment Templates

Bind email templates to appointment templates so notification triggers fire automatically during scheduling:

  1. Click the Global Search input box (Cmd + K or Ctrl + K).
  2. Type appointment or templates and select Appointment Templates under Settings to open the appointment templates page.

  1. On the appointment templates page, select an existing template to edit or click + New Appointment Template.

  1. Configure general appointment parameters:
    • Name & Description: Internal appointment template identifier.
    • Appointment Title & Description: Default patient-facing title and clinical notes (supports Liquid tags).
    • Duration: Default duration in minutes.
    • Default Attendees: Pre-assign default doctors, equipment, locations, or branches.


Step 5: Add Automated Notification Triggers

Configure automated notification rules within the appointment template:

  1. Under the Appointment Details card, locate the Notifications panel.
  2. Click + Add notification template to launch the configuration modal.

  1. Set up the trigger parameters:
    • Trigger Type:
      • Appointment Created: Dispatches immediately upon booking/creating the appointment.
      • Reminder: Schedules a pre-appointment reminder based on a time offset before the visit.
      • Appointment Updated: Dispatches immediately whenever appointment details, timing, or attendees are modified.
    • Reminder Offset (for reminders):
      • Unit: Choose Minutes (1 to 59 minutes) or Hours (1 to 23 hours) prior to appointment start time.
    • Recipients: Select target recipient roles:
      • Doctor: Sends notification to attending clinicians.
      • Patient: Sends notification to the registered patient contact.
      • Select both to notify doctors and patients simultaneously.
    • Channel: Enable Email Notification (and/or In-App Notification).
    • Template: Search and select the Email Message Template created in Step 1.
  2. Click Confirm to attach the notification rule.

Step 6: Manage & Fine-Tune Template Notifications

Once notification triggers are added, manage or customize them directly from the appointment template:

  1. Active Notifications List: All configured trigger rules appear in the Notifications list with trigger badges, reminder intervals, recipient chips, and quick action controls.

  1. Customize Notification Settings:
    • Click the Gear (Cog) icon on any notification row to open the full message customization modal.
    • Switch between Email and In-App Notification tabs.
    • Adjust the associated template, customize sender name, or override subject and body content specifically for this appointment template.

  1. Inline Trigger Adjustments:
    • Change trigger types (Reminder, Appointment Created, Appointment Updated) directly from the row dropdown.
    • Adjust reminder time values and units with automatic debounce saving.
    • Toggle recipient checkboxes (Doctor, Patient) on the fly.
  2. Remove Notifications:
    • Click the X (Remove) icon next to any notification row to delete the trigger rule from the appointment template.
Copyright © 2026