# How to Collect Leads' Email and Phone Number

### Benefits of Collecting Emails and Phone Numbers <a href="#benefits_of_collecting_emails_and_phone_numbers" id="benefits_of_collecting_emails_and_phone_numbers"></a>

Use the email address or phone number collected to:

* [merge Contacts](https://docs.is-messenger.com/ismessenger/modules/contacts) when a lead messages you from a different Channel.
* be able to [enrich data from your CRM](https://docs.is-messenger.com/ismessenger/sales-use-cases).
* gain lead qualification information.

### Methods to Collect Contact Identification <a href="#methods_to_collect_contact_identification" id="methods_to_collect_contact_identification"></a>

Here are three methods that you can use to collect Contact identifiers:

1. Automatically obtained from Channel's Metadata.
2. Ask for a phone number or email using Workflows.
3. Use a Pre-Chat Form on the Website Chat Widget.

### **Automatically obtained from Channel's Metadata**

**Use this method** when you are using channels that pass metadata containing Contact's phone number or email to IS-Messenger platform.

IS-Messenger platform automatically receives Contact's phone number or email address for the following channels:

* [WhatsApp](https://docs.is-messenger.com/ismessenger/messaging-channels/whatsapp)
* [SMS](https://docs.is-messenger.com/ismessenger/messaging-channels/sms)
* [Email](https://docs.is-messenger.com/ismessenger/messaging-channels/email)

For channels that do not provide Contact's phone number or email to IS-Messenger platform, use the other two methods to collect Contact identifiers.

### **Ask for a phone number or email using Workflows**

{% hint style="success" %}
**Use this method** when you expect leads to message you via instant messaging.
{% endhint %}

**Method Objectives**

* Select and customize Workflow Template
* Continue Workflow when the question is skipped

**Workflow Setup**

There are Workflow templates set up by our team that you can use immediately. These templates can be edited to fit your business needs.

{% hint style="info" %}
Learn more about [Workflow Templates here](https://docs.is-messenger.com/ismessenger/modules/workflow).
{% endhint %}

### **Select and customize Workflow Template**

On the IS-Messenger platform, click **Workflows** > **+ Add Workflow** and choose your templates.

To collect emails, click **Welcome Message & Ask For Email** > **Use Template**.

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2F5NBkHQbFB7SvMnSO3Nic%2Fusetemplate.png?alt=media&#x26;token=cbc921e9-b776-405b-84dc-c8b83713abb9" alt=""><figcaption></figcaption></figure>

To collect phone numbers, click **Welcome Message & Ask For Phone Number** > **Use Template**.

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2F9l88c9K72qfkxcTU88FX%2Fusetemplate-1.png?alt=media&#x26;token=0a7e7413-89b6-4046-b8ac-b9a4fca3b13c" alt=""><figcaption></figcaption></figure>

Then, customize the [Welcome Message](https://docs.is-messenger.com/ismessenger/getting-started/quick-start) & [Ask a Question](https://docs.is-messenger.com/ismessenger/modules/workflow) Step as desired.

<details>

<summary>Ask a Question Step configuration for Email</summary>

Click the **Ask for Email** step to edit the **Question Text**. The **Question Type** should remain as Email. Finally, click **Save** and **Publish** to activate the Workflow.\
![](https://files.helpdocs.io/9e3syfbzn8/articles/atcsdq6alt/1676279846779/emailquestio.png)

</details>

<details>

<summary>Ask a Question Step configuration for Phone Number</summary>

Click the **Ask for Phone Number** step to edit the **Question Text**. The **Question Type** should remain as Phone. Finally, click **Save** and **Publish** to activate the Workflow.\
![](https://files.helpdocs.io/9e3syfbzn8/articles/atcsdq6alt/1676279899042/phnoquestio.png)

</details>

{% hint style="info" %}
Additionally, you can configure the Save Response As to [save the answer as a variable](https://docs.is-messenger.com/ismessenger/contact-and-messages/untitled) to reference it at a later step of the Workflow.
{% endhint %}

### **Continue Workflow when the question is skipped**

These Workflow templates are set up with a Branch Step to check if the Contact Field already contains the email address or phone number.

| **Condition**                     | **Outcome**       |
| --------------------------------- | ----------------- |
| Contact identifier does not exist | Ask the question  |
| Contact identifier exists         | Skip the question |

Add a Jump Step to continue to the next step in the Workflow when the question is skipped. In most cases, you will choose the Step after the Ask a Question Step.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/atcsdq6alt/1676280039042/jumpste.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Learn how to configure the [Jump Step here](https://docs.is-messenger.com/ismessenger/modules/workflow).
{% endhint %}

{% hint style="info" %}
Consider continuing your Workflow with [Lead Enrichment](https://docs.is-messenger.com/ismessenger/sales-use-cases), [Routing](https://docs.is-messenger.com/ismessenger/sales-use-cases), or [Assignment](https://docs.is-messenger.com/ismessenger/sales-use-cases).
{% endhint %}

### **Use a Pre-Chat Form on the Website Chat Widget**

**Use this method** when you expect Contacts to message you via Website Chat Widget.

Unlike instant messaging channels, which provide the name of the contact, when contacts message from the Website Chat Widget, you’ll also need to get their name in addition to the phone number or email address.

**Method Objective**

{% hint style="success" %}
Use Pre-Chat Forms to ask for Contact's name, phone number or email.
{% endhint %}

**Feature SetupS**

{% hint style="warning" %}
**Must-have:** First add and install the [IS-Messenger Chat Widget](https://docs.is-messenger.com/ismessenger/messaging-channels/website-chat-widget).
{% endhint %}

{% hint style="info" %}
Learn more about [Pre-Chat Forms here](https://docs.is-messenger.com/ismessenger/messaging-channels/website-chat-widget).
{% endhint %}

Here’s how to set up the Contact information you want to collect from the Pre-Chat Form.

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2FboGNxtU4vlEhWnQCjmcw%2Fspaces_-Mbui1HRO4dGghy5ITOz_uploads_Yg8c2PN8doY0ujWqIJP1_Screenshot%202023-07-13%20113008.webp?alt=media&#x26;token=35214459-f9e7-402b-9070-fbf08a6ae24b" alt=""><figcaption></figcaption></figure>

Navigate to **Settings** module > **Channels** > **Website Chat Channel** > **Customize**.

<details>

<summary>Pre-Chat Form Configuration for Name &#x26;amp; Email</summary>

1. Open the Pre-Chat toggle and enable Pre-Chat Form.
2. Add First Name and Email Address field to the form.
3. Make the fields Mandatory so Contacts must fill them out.\
   \
   ![](https://files.helpdocs.io/9e3syfbzn8/articles/atcsdq6alt/1664254173404/2-webchat-email-name.png)

</details>

<details>

<summary>Pre-Chat Form Configuration for Name &#x26;amp; Phone Number</summary>

1\. Open the Pre-Chat toggle and enable Pre-Chat Form.\
2\. Add First Name and Phone Number Field to the form.\
3\. Make the fields Mandatory so Contacts must fill them out.\
![](https://files.helpdocs.io/9e3syfbzn8/articles/atcsdq6alt/1664254342636/2-a-webchat-phone-name.png)

</details>

####


---

# 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.is-messenger.com/ismessenger/sales-use-cases/how-to-collect-leads-email-and-phone-number.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.
