# Macros

### **Using Macros in Messages and Emails**

Macros allow you to automatically insert customer and appointment information into your messages and emails. Instead of creating individual messages for each recipient, you can use a single template that is personalized with details such as the customer's name, appointment date, and time.

#### **How Macros Work**

A macro is a placeholder that is automatically replaced with information from a customer or appointment record when the message is sent.

Every macro follows the same format: `<strong>$(FIELD_NAME)</strong>`

For example:

<table id="bkmrk-macro-description-ex"><tbody><tr><th>Macro</th><th>Description</th><th>Example Output</th></tr><tr><td><code>&#36;&#40;C&#95;NAME&#41;</code></td><td>Customer name</td><td>Alex Rivera</td></tr><tr><td><code>&#36;&#40;D&#95;LONG&#41;</code></td><td>Appointment date</td><td>October 17th, 2025</td></tr><tr><td><code>&#36;&#40;TIME&#41;</code></td><td>Appointment time</td><td>2:15 PM</td></tr></tbody></table>

#### **Example: Appointment Confirmation**

You can include macros in an appointment confirmation email:

```
Dear $(C_NAME),

Your appointment is scheduled for $(TIME) on $(D_LONG).

We look forward to seeing you!
```

When the email is sent, the macros are automatically replaced with the customer's appointment details:

> Dear Alex Rivera,
> 
> Your appointment is scheduled for 2:15 PM on October 17th, 2025.
> 
> We look forward to seeing you!

#### **Where Can I Use Macros?**

Macros can be used throughout your **Online Scheduling Site** and in emails sent to participants.

To customize messages for a specific event, select your event from the **Events Preview** page.

#### **Online Scheduling Site Messages**

Go to **Settings / CUI Messages**.

This page allows you to customize messages displayed to customers throughout the online scheduling process. You can include macros to personalize these messages with customer or appointment information.

#### **Email Notifications**

Go to **Settings / Notification Setup**.

Here, you can customize the emails sent to participants, such as confirmation, cancellation, and reminder emails. Macros allow you to automatically include relevant appointment details in these notifications.

#### **Tips for Using Macros**

- **Use the Insert Macro button.** Rather than typing macros manually, select **Insert Macro** in the message editor. This displays a categorized list of available macros and helps prevent typing errors.
- **Check spacing and punctuation.** Macros are replaced with text exactly where they appear. For example, `Hello $(C_NAME),` becomes `Hello Alex Rivera,`.
- **Test your messages.** Before sending notifications to participants, send a test message to confirm that the macros display correctly and that the message formatting looks as expected.

**Tip:** The **Insert Macro** button is the easiest way to see which macros are available and insert them into your messages.