Sys.number

Image of an author
Luiza Jurczyk
2 min read
updated: Apr 4, 2022

Grab any number your client sends to your chatbot, including negative numbers, decimals, and quintillions.

With sys.number you can make use of any number. Add this entity to the user says section to catch numbers entered by your customers and pass them to your databases and web services.

The number can be anything: the amount of money, height, weight, latitude, and longitude, user ID or whatever you need. The system automatically exchanges numerals to numbers analyzing the user input from left to the right.

  • four hundred thirty-five million two hundred forty thousand = 435240000

  • 1,10 = 10.1

  • 3000K = 3000000

Chatbot example with the sys.number entityLink icon

To understand how this entity works, we’ll create a short scenario for a real estate chatbot that gathers information about advertised properties. To recognize the estimated price entered by our potential customers, we’ll use the sys.number entity.

Type double curly brackets {{ to trigger the entity window and select the one you you need.
Type double curly brackets {{ to trigger the entity window and select the one you you need.
  1. Create a new story called Real Estate Bot. Inside the story, add a new interaction triggered by the following input:

  2. Go to the bot responses and add a text message. This is the moment when the bot asks for the estimated price.

  3. Add a child interaction below and enter the sys.number entity into the user says fields.

  • Validation Entity – choose Sys.number

  • Save input to attribute – give a name to your new attribute

  1. To make sure that the bot collected the right value, ask users to confirm it.

  2. Save your work and test the real estate bot.

  3. Save your work and test the real estate bot.

  4. Our new sys.number works fine. Well done!

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