# Configuring Message Templates

Configuring message templates in WhatsApp4Dynamics allows users to set up predefined message formats for commonly used responses or communication scenarios.

These templates can then be easily accessed and used when sending messages through WhatsApp from within the Dynamics environment. However, these templates need to be pre-approved by Twilio & configured beforehand.

{% hint style="info" %}
**Note:** Although, you can only initiate a conversation by sending a message template. You have the choice to send freeform messages when a customer initiates a conversation or replies on a sent template.
{% endhint %}

To configure WhatsApp message templates in Microsoft Dynamics 365 CRM using Twilio, you can follow these steps:

1. Login to your Twilio Account.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FWN51YmzvtYPlIzp5pye2%2Fwhatsapp4dynamics8.png?alt=media&#x26;token=2ecce7f6-c9bf-45aa-b4d5-4cc2e452f026" alt=""><figcaption></figcaption></figure>

1. Navigate to **Try it out**, and then click on **Send a WhatsApp message**.
2. **Business-Initiated Messages**

Once you have established a connection with **Twilio WhatsApp Sandbox**, you can customise the default templates under, **Business-Initiated Messages**. There are multiple **Twilio** message templates that you can choose.

{% hint style="info" %}
**Note:** Twilio (Sandbox) limits you to default message templates. Twilio templates can be used on WhatsApp4Dynamics within Microsoft Dynamics 365 CRM.
{% endhint %}

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FUaeeohEuvJW50mKkND90%2Fwhatsapp4dynamics1.png?alt=media&#x26;token=723a448b-6f78-4cf4-b147-bd5ff5b0e966" alt=""><figcaption></figcaption></figure>

**For Example:** The **Appointment Reminders** template says *“Your appointment is coming up on {{1}}”* In the curly brackets users can add dynamic values or CRM fields as values, while creating templates. However, the template cannot be changed.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FwEZoI0GMIsNTXoT1NTus%2Fwhatsapp4dynamics2.png?alt=media&#x26;token=0d8197c1-d77f-4e66-8aed-33fb262b8726" alt=""><figcaption></figcaption></figure>

**Another Example:** The **Order Notification** template that says *“Your {{1}} order of {{2}} has shipped and should be delivered on {{3}}. Details: {{4}}”* Similarly to the above example, in the curly brackets users can add dynamic values or CRM fields as values.

3. **Create Messages Templates in Microsoft Dynamics 365 CRM**

You can now create WhatsApp message templates on Microsoft Dynamics 365 CRM after you have done the setup and are ready to copy templates from your Twilio Account.

To do so, follow the steps:

* In WhatsApp4Dynamics click **Configurations**, and navigate to **Message Templates.**
* Click **+New Message** Template to create a new WhatsApp Message Template.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FHBTA0G46si2snDMtwnAf%2Fwhatsapp4dynamics3.png?alt=media&#x26;token=55f3ec05-f39e-45c6-9713-5688a5d5c8f7" alt=""><figcaption></figcaption></figure>

* **Fill Up All the Fields**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F2DJOq1OmYgi7F7gWeoG7%2Fwhatsapp4dynamics4.png?alt=media&#x26;token=58af6f9f-32dd-48c9-829b-2d65eff399e6" alt=""><figcaption></figcaption></figure>

* **Template Type** – Entity Template
* **Title** – Add a fitting title or describe the template.
* **Record Type** – Mention in which Entity the message template needs to show.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F0JKiv7Al9vuSxUuEQfO1%2Fwhatsapp4dynamics6.png?alt=media&#x26;token=a4d6ee89-e8d6-4c01-a731-41a191f8918b" alt=""><figcaption></figcaption></figure>

* **Message –** In the message section, copy & paste the template from Twilio and customize the curly brackets. Add dynamic values or CRM fields as values to create templates as required.

**For Example:** As shown in the screenshot below, the **Support** team has created a WhatsApp message reminder about the appointment for the **CRM Record (Contact)**. *“Your appointment is{accountname} with{contactid}”* Here accountname & contacted are the dynamic values and can be changed as per your preference.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FYNq2iDchXqosmvSsaaMd%2Fwhatsapp4dynamics7.png?alt=media&#x26;token=1afa8a4f-ff7e-4120-95c1-e8c3586aa2d4" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
For further queries, reach out to us at <crm@inogic.com>
{% endhint %}
