# Configuring Record Types

In WhatsApp4Dynamics, a **Record Type** refers to the entities that must be configured before users can start chatting. Once a record type (such as Contact, Opportunity, etc.) is configured, users can initiate and manage conversations directly from that entity.&#x20;

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

Follow the steps below to configure a new Record Type:&#x20;

**Step 1: Create a New Record**&#x20;

Click on the “+ New” button to create a new record type.&#x20;

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

**Step 2: Configure the Required Fields**&#x20;

Fill in the following fields:&#x20;

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

**Record Type:** Select or enter the entity you want to enable for chatting. &#x20;

* You can choose any entity, including Out-of-the-Box (OOB) or Custom entities.&#x20;
* Ensure that the selected entity has at least one phone number field, as messaging depends on it. &#x20;

**Related Record Type:** This field helps the system fetch customer details (such as phone number) if they are not available in the main record type.  \
\
**Example:** an “Opportunity” record usually does not store the customer’s phone number. By setting Contact as the Related Record Type, the system will fetch the phone number from the associated Contact record.&#x20;

* This allows you to send WhatsApp messages directly from both:&#x20;
* The Opportunity record.&#x20;
* The related Contact record.&#x20;

**Compliance field**: The Compliance Field determines whether messages can be sent for a particular record. &#x20;

* Displays all available Boolean (Yes/No) fields in the selected entity.&#x20;
* If the value is Yes → WhatsApp messages can be sent.&#x20;
* If the value is No → WhatsApp messages will be restricted.&#x20;

**Phone number field**: Select the phone number field to be used for communication.&#x20;

* All available phone number fields in the selected entity record will be listed.&#x20;
* Choose the field that contains a valid and active contact number. &#x20;

**Default Country Code (Optional)**: This field ensures proper formatting of phone numbers.&#x20;

* If the phone number saved in the entity record (such as Contact, Account) does not include a   country code, the value entered inside default country code will be automatically added on the chat record.&#x20;
* Example: If “+91” is set as a default country code, it will be added to phone numbers saved without a country code.&#x20;

**Priority Order (Optional):** The Priority Order determines which record will be selected when the same phone number is present across multiple entities (for example, Contact, Account, or Lead). In such cases, the system uses the defined priority to decide which record should be considered as the primary customer record for the chat. \
\
**How it works:**&#x20;

* If the same phone number exists in multiple records (e.g., both Contact and Account), the system checks the priority assigned to each record type.&#x20;
* The record type with the higher priority (i.e., lower number) will be selected.&#x20;
* The selected record will then be set as the Customer in the chat.&#x20;

**Example:** \
\
If the same phone number exists in both Contact and Account, and:&#x20;

* Contact has priority 1&#x20;
* Account has priority 2&#x20;
* The system will prioritize the Contact record and set it as the Customer in the chat.&#x20;

**Important Points:**&#x20;

* Priority values typically start from 0, 1, 2, and so on&#x20;
* Lower number = Higher priority&#x20;
* It is recommended to assign priority carefully to ensure the correct record is selected during conversation.&#x20;

&#x20;**Step 3: Save the Configuration**&#x20;

Once all fields are filled, click on the “Save” button to complete the setup.&#x20;

<figure><img src="/files/J05JLkcJEVnAmPkD2Aab" 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/whatsapp4dynamics/configuration/configuring-record-types.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.
