# Configuring Message Templates

Configuring message templates in TextSMS4Dynamics 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 from within the Dynamics environment.

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

You can now create message templates on Microsoft Dynamics 365 CRM after you have done the setup.

To do so, follow the steps:

* In **TextSMS4Dynamics** click **Configurations**, and navigate to **Message Templates.**
* Click **+New Message Template** to create a new message template.

<figure><img src="/files/NxGW7R8b5DSNWECuLs2g" alt=""><figcaption></figcaption></figure>

* **Fill Up All the Fields**
  * Select Template Type – Choose between Entity or Global template:

1. **Entity Template:**

* If you select the entity template, the custom message template will only be visible for selected   entities Chat Interface.
* **Record Type –** Choose the Entity in which the message template needs to be shown.
* **Title –** Add a desired title or describe the message template.

<figure><img src="/files/kkpy7aJaR6q3dRF0k8AF" alt=""><figcaption></figcaption></figure>

* **Message –** Customize the curly brackets, add dynamic values or CRM fields as values to create message templates in the message section according to your requirements.

**For Example:** As shown in the screenshot below, the **Support** team has created a greeting message for the CRM Record (Contact).

*Dear {ikl\_t4d\_firstname} {ikl\_tkd\_lastname}.*

*Greetings! We are pleased to welcome you to our network.*

<figure><img src="/files/S4tsn2ZW2hwLnccK7fJy" alt=""><figcaption></figcaption></figure>

2. **Global Template:**

* If you select the Global Template, the custom message template will be available for all entities in the Chat Interface.
* **Title –** Add a desired title or describe the message template.
* **Message –** Write the content of your message in the message field.

<figure><img src="/files/64nMH2KwahqyMbgoWau2" alt=""><figcaption></figcaption></figure>

* **Save the Template:** Click the **"Save"** button to store your new message template. Once you save the message template, make sure to **“Publish”** it to reflect in the chat UI in both template types.

<figure><img src="/files/6zuH0HPCQHdLYfp7Pfh0" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inogic.com/textsms4dynamics/configuration/configuring-message-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
