# Macros

<span class="rvts20">**Macros** allow you to reference information from your customer and the appointment in your text messages and emails.They allow you to create a single template that feels personally written for every individual customer by pulling specific data points from your database.</span>

<span class="rvts20">Here is a breakdown of how to master their use:</span>

### **<span class="rvts0"><span class="rvts24">The Anatomy of a Macro</span></span>**

<span class="rvts20">For the system to recognize a macro, it must be wrapped in a specific set of characters:</span>

- <span class="rvts21">The Trigger:</span><span class="rvts20"> </span><span class="rvts117">$(</span>
- <span class="rvts21">The Field Name:</span><span class="rvts20"> </span><span class="rvts117">NAME\_OF\_FIELD</span>
- <span class="rvts21">The Closer:</span><span class="rvts20"> </span><span class="rvts117">)</span>

<span class="rvts21">Complete Syntax:</span><span class="rvts20"> </span><span class="rvts117">$(D\_LONG)</span>

---

### **<span class="rvts0"><span class="rvts24">How They Work (The Transformation)</span></span>**

<span class="rvts20">When the system prepares to send a message, it scans the text for that specific syntax and "swaps" it for the real-world value stored in the appointment record.</span>

<div class="rvps10" id="bkmrk-use-case-macro-to-us"><table><tbody><tr><td>**<span class="rvts21">Use Case</span>**

</td><td>**<span class="rvts21">Macro to Use</span>**

</td><td>**<span class="rvts21">Final Output Example</span>**

</td></tr><tr><td><span class="rvts21">Formal Date</span>

</td><td><span class="rvts20">$(D\_LONG)</span>

</td><td><span class="rvts20">October 17th, 2025</span>

</td></tr><tr><td><span class="rvts21">Appointment Time</span>

</td><td><span class="rvts20">$(TIME)</span>

</td><td><span class="rvts20">2:15 PM</span>

</td></tr><tr><td><span class="rvts21">Customer Name</span>

</td><td><span class="rvts20">$(C\_NAME)</span>

</td><td><span class="rvts20">Alex Rivera</span>

</td></tr></tbody></table>

</div>---

### **<span class="rvts0"><span class="rvts24">Example Usage</span></span>**

<span class="rvts20">In your Email Confirmation, you might say the following: </span>

<span class="rvts20">Dear $(C\_NAME)</span>

<span class="rvts20">Your appointment is scheduled for $(TIME) on $(D\_LONG).</span>

### **<span class="rvts0"><span class="rvts24">Best Practices for Implementation</span></span>**

- <span class="rvts21">Punctuation Matters:</span><span class="rvts20"> Be careful where you place periods or commas. If you write </span><span class="rvts117">Hello $(C\_NAME),</span><span class="rvts20"> the comma will appear immediately after the person's name in the final message.</span>
- <span class="rvts21">The "Insert Macro" Button:</span><span class="rvts20"> This is your best friend. Instead of typing them manually (which can lead to typos), use the </span><span class="rvts21">Insert Macro</span><span class="rvts20"> button found in your message editor. It provides a categorized list of every field available to you.</span>
- <span class="rvts21">Test Your Layout:</span><span class="rvts20"> Always send a test message to yourself. Sometimes a macro (like a long address) can change the way text wraps in an SMS or email.</span>