# Table Reservation Canceled Template

### Use Case 1 : Reservation Canceled

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FpFJqd5IroIGd76yPR14n%2Fimage.png?alt=media&#x26;token=d90ae3da-f1c7-485e-9f57-fb1b7b04a7a7" alt=""><figcaption><p>Table Reservation Canceled Template</p></figcaption></figure>

When a customer cancels their table reservation, they should receive a WhatsApp / SMS message that includes:

* Customer name
* Date and time
* Optional link to rebook

## Steps involved in setting up an Automated Workflow

{% hint style="info" %}
If you have already set up the WhatsApp / SMS template for the **Table Reservation Cancellation** event, then jump to this [section](#b.-adding-the-whatsapp-sms-template-to-the-automated-workflow).&#x20;
{% endhint %}

<details>

<summary><mark style="color:blue;"><strong>A .1.  Setting up the WhatsApp Template</strong></mark></summary>

1. **Navigate to WhatsApp Templates**

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FLi2ylv9RKcvkUFdG6wed%2FMercuri%20SMS%20and%20Whatsapp%20-%20Shared%20Inbox.gif?alt=media&#x26;token=20d42b7a-e868-4226-b609-5280e40764aa" alt=""><figcaption><p>Step 1  : <strong>Navigate to WhatsApp Templates</strong></p></figcaption></figure>

&#x20;1\. Go to **Templates > WhatsApp** in the Mercuri CX dashboard.

2. Click **Create Template**.

3. Select the **WhatsApp Account** that will be used to send out WhatsApp messages.

4. **Configure Template Details**

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2Fd2hACB4hNF8rrJkHCvyF%2Fimage.png?alt=media&#x26;token=66ecd97b-bc8b-433c-861f-709e5de7cd65" alt=""><figcaption><p>Step 2 : Configure Template Details</p></figcaption></figure>

**Fill in the basic template info:**

* **Template Name:** `table_reservation_canceled` (Use an easy name to identify later)
* **Language:** `English` (or as per your customer base)
* **Category:** `UTILITY` (since it’s an informational message) &#x20;

[\[ *Understand the different categories of WhatsApp templates*\]](https://docs.mercuri.cx/templates/whatsapp-templates/understand-whatsapp-template-components#id-1.-template-category)

3. **Fill Template Components**

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FwCrWph6LOtyL8SR5scN1%2Fimage.png?alt=media&#x26;token=77d784f5-4bcb-44bb-b7cd-c17c3bfca6c6" alt=""><figcaption><p>Step 3 : Template components</p></figcaption></figure>

**Header (Optional):**

*Note: Headers can contain only one variable if needed, but in this case, a fixed title is considered.*

1. **Type:** Text
2. **Example Text:**  `Reservation Canceled`

[\[*Click here to explore different media that can be added to the header* \] ](https://docs.mercuri.cx/templates/whatsapp-templates/understand-whatsapp-template-components#id-2.-template-header)

**Body:**

1. Add the message content in the **Body** section of the template.
2. To include dynamic information like order ID or customer name, use the **"Add Variable"** button located at the right end of the Body field.&#x20;

Sample message :&#x20;

`Hello {{1}}, your table reservation scheduled on {{2}} is canceled.`\
`We hope to serve you another time.`\
`Feel free to rebook anytime !`

**Variables** :&#x20;

Add a variable value to the corresponding placeholders with a sample value&#x20;

Note : Each `{{ }}`  It is a placeholder that gets replaced dynamically during automation:

* `{{1}}` → Customer name
* `{{2}}` → date and time

Note: Assign sample values for each variable before submitting for approval.

3. Click on **Create template** after filling in all the required details.

### 4. Adding Book Again Button

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FySLX3F9dTZ9zGEs28YID%2Fimage.png?alt=media&#x26;token=2d9faa57-cdfa-4f69-8998-a478e1fac2a3" alt=""><figcaption><p>Step 4 : Adding Book Again Button</p></figcaption></figure>

1. Click the **Add Button** > select **Visit Website**
2. Configure details for the Call to Action section as follows:
   * **Type of Action:**  Visit Website
   * **Button Text:** `Book Again`
   * Select URL type as **Static and** enter your website reservation page URL in **Website URL section.**

[*\[Know more about the different buttons available in templates\]*](https://docs.mercuri.cx/templates/whatsapp-templates/understand-whatsapp-template-components#id-3.-template-buttons)

</details>

<details>

<summary><mark style="color:blue;"><strong>A.2 . Setting up the SMS Template</strong></mark></summary>

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2Fwrj26dyuHNsitTRAXdVd%2Fimage.png?alt=media&#x26;token=89b5e8e6-31c5-4b6d-8a2b-48cbcb4dc5c2" alt="" width="563"><figcaption></figcaption></figure>

1. Go to the **Templates** section in the left-hand menu of the Mercuri dashboard, and select **SMS**.
2. In the top-right corner, click **Create Template** to begin.

**3. Fill in Template Details**

You’ll be directed to the SMS template creation form. Fill in the following:

* **Template Name**: Enter a short, descriptive title so it’s easy to identify the purpose of the message.

**Example**

```
Table reservation cancelled
```

* **Template Text**:\
  Craft a clear and concise message (within 160 characters). You can personalize it using dynamic variables.<br>
* Click the **Add Variable** button in the bottom-right corner of the body section to insert placeholders.

  **Example:**

  ```
  Hi! Your table reservation for {#var#} on {#var#} has been cancelled . Need help? Contact us to reschedule.
  ```

**4. Variable Mapping**

Map each `{#var#}` to the actual data fields, like **party size and date and time**&#x20;

**5. Preview**

View the **SMS Preview** to see how the final message will appear to customers.

**6. Save the Template**

Click **Create** to save your SMS template. It will now be available to use in campaigns, automations, or workflows.

</details>

### B. Adding the WhatsApp / SMS template to the Automated workflow

* Go to the **Automation** section in the dashboard.
* Click on **Create Automation**.
* Choose the **automation type** as`Table Reservation Canceled` from the list.
* Select the preferred communication channel as **WhatsApp/ SMS ,** for delivering the automated message.
* Choose the approved `table_reservation_canceled`template that we created in earlier steps.
