# Restrict Chat with Unknown Number

This feature allows you to manage communication strictly through verified contacts by limiting interactions with mobile numbers that are not saved in Microsoft Dynamics 365.

### **When Chat with Unknown is Disabled**&#x20;

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FNEzTOy2adqc75FdgKGTl%2F1%20Chat%20with%20unknown%20as%20NO.png?alt=media&#x26;token=67c98ac7-2e43-4e2c-bf57-1ccf590818a7" alt=""><figcaption></figcaption></figure>

* Users can receive messages from unknown WhatsApp numbers.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FfGcsZgL3H1bPMb03YO5C%2F2%20New%20incoming%20message%20from%20unknown.png?alt=media&#x26;token=800ca7dc-33c4-42b5-9bca-396cf6c224ed" alt=""><figcaption></figcaption></figure>

* If a user clicks **Accept** when a new incoming message from an unknown number arrives, an **error message** appears on the chat UI.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQV4xzRZ3jTZ4OikP2vvu%2F3%20error%20when%20user%20clicks%20on%20Accept.png?alt=media&#x26;token=1992c7ee-f88d-43a6-846f-ce85b0787948" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FTeJGUwDME7natXnOmeLv%2F4%20error%20on%20chat%20UI%20and%20customer%20field.png?alt=media&#x26;token=dfb33eb8-6146-4cd7-a940-c37db1b00bfb" alt=""><figcaption></figcaption></figure>

To chat, the user must save the number in Dynamics 365.

* After that, the chat box is enabled.
* The user can now reply and continue the conversation.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FYqqhrRwzxLDuxbKMZZsr%2F5%20after%20setting%20customer.png?alt=media&#x26;token=334079fd-bff9-42c3-bc47-043a78f05b44" alt=""><figcaption></figcaption></figure>

#### **When Chat with Unknown is Enabled**&#x20;

* Users can **chat with anyone**, even if the number is not saved in CRM.
* The Chat UI is **always enabled**, and no error appears.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQGlEPjYseCfQvNmvFB04%2F6%20chat%20with%20unknown%20Yes.png?alt=media&#x26;token=ae8c494b-f55e-44da-915e-5db939e3c3b5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FC8qFM8xqEM0JtADVAeBr%2F7%20chat%20UI%20is%20enabled%20when%20chat%20with%20unknown%20is%20yes.png?alt=media&#x26;token=0db96073-e61e-4a5b-8f12-93dd003d7c77" alt=""><figcaption></figcaption></figure>

This ensures secure, CRM-based messaging within the WhatsApp4Dynamics app.
