Phone number entity

Daria Zaboj product content specialist
Daria Zabój
2 min read
updated: May 27, 2022

Collect customer phone numbers with a chatbot.

The phone-number entity helps your bot recognize phone numbers written in all popular standards — with country code, dashes, and brackets. The system checks if the input written by a user on chat resembles the phone number. You can then save the collected phone number and reuse it in the ongoing conversation or pass it to your databases.

How to use the phone number entity Link icon

Let’s say you want to use a chatbot to collect leads. The phone number entity can help you validate and gather phone contacts so your agents can call your leads later.

Type double curly brackets {{ to trigger the entity window and select the one you need.
Type double curly brackets {{ to trigger the entity window and select the one you need.
  1. Open a Story you want to use to collect leads. 

  2. Add a Question action in a place where you want to ask the user about their phone number. phone-number entity

  3. In the Question variant field, ask the user about their phone entity

  4. Now, you need to verify the user input. Select the system Phone number entity in the Validate response with entity to do entity

  5. Once the user input is validated, you can save the user response as an attribute. phone-number entity

  6. For the purpose of this Story, create a custom phoneNumber attribute. Then click Add attribute and close the window. phone-number entity

  7. Now, you decide what should happen if the user fails to provide the phone number. phone-number entity

  8. Once you successfully collect the phone number, you can confirm the collected data with the user. To do so, add a Bot response after the Success block

  9. Now, compose the bot’s response. You can use a custom phoneNumber attribute you created to display the user’s number on entity

  10. Finally, test your chatbot to see if everything works as expected. phone-number entity

Read more:

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our text| products