How to collect user names, emails and phone numbers from users

A Guide on How to Collect User Names, Emails, and Phone Numbers From Users.

Your chatbots can be used to collect sales leads. You can enable your chatbot to collect the name and email of every user before they can start a conversation.

For EU customers, Wonderchat is compliant with the GDPR. You can read more about our privacy policy here: Wonderchat's Privacy Policy

Here's how to enable sales leads collection:


Step 1: Go to Dashboard > Actions (⋮) > "Edit Chatbot"

Step 2: Navigate under "Lead Collection" tab

Step 3: Set your Lead Collection Settings

Lead Collection Settings

The Lead Collection Settings allow you to gather personal information from users to qualify chats and capture lead details such as their name, email, and phone number. These fields can be mandatory or optional, depending on your preferences. You can also customize the fields to suit your needs.

  1. Required Collection Button: Toggle this option to specify whether lead information (like name, email, or phone number) is mandatory during the chat interaction. If required, chat users must submit their information before being allowed to continue chatting with your chatbot.

  2. Collect Leads After [X] Messages: This setting allows you to specify when the chatbot will start collecting lead information. You can set it to trigger after a certain number of user messages (e.g., after the user sends two messages).

  3. Collect Email, Name, Mobile:

    • Enable the toggles to collect the user's email, name, or mobile number during the chat.

    • You can customize the message that asks the user for each piece of information. For example, “Please provide your email so we can follow up with you.”

  4. Add Custom Field: If you need to collect additional information not included by default, click Add Custom Field to create your own data collection fields.

Leads collection is optional by default (i.e. not ‘required)

  • It is not mandatory for a user to fill up the chatbot information with their names and emails. Users who refuse to fill in their name and emails can still chat with your chatbot without filling in the information.

  • The required switch should be on only if you want to make it mandatory for users to fill up the leads collection fields before proceeding to chat with your bot.

By enabling the lead collection settings, your chatbot will show the “name”, “email” and/or “phone number” field in the chat widget as part of the conversation with the user.

Step 4: Find names, phone numbers and emails of the users reflected in the chatlogs

From the chatlogs, you can access the contact details of the customers as long as they have provided their details in the name, email and/or phone number fields in the chat widget (example shown earlier).


If you have any more questions, feel free to reach out to us at support@wonderchat.io

Last updated