We need to collect information from players; their game number consists of 9 digits. The task is: how to phrase the requirement so that the bot asks for exactly 9 digits? If the user enters fewer or more than 9 digits, the bot should prompt them to enter a 9-digit game account number.
Best answer by Fabio Gaulke
Hi, @Arman Shayan!
You can build something like this:
You will ask the user for the 9 digit number and store it into a Custom User Field (TEST_NUM_FIELD in my example)
As @Gustavo Boregio said, a Condition checking if the Custom Field (TEST_NUM_FIELD) is greater than or equal to 100000000 and less than or equal to 999999999.
If the number has more or less than 9 digits, it goes back and asks again for a number
If the number has 9 digits, it will continue your flow.
To create the Custom User Field go to Settings/ Fields/ User Fields (remember to create it as Number type 😉)
You won’t set the digits, you’ll need to check with a condition that the number is higher than 100000000 and lower than 999999999. If this is true, then we know the number has 9 digits.
You will ask the user for the 9 digit number and store it into a Custom User Field (TEST_NUM_FIELD in my example)
As @Gustavo Boregio said, a Condition checking if the Custom Field (TEST_NUM_FIELD) is greater than or equal to 100000000 and less than or equal to 999999999.
If the number has more or less than 9 digits, it goes back and asks again for a number
If the number has 9 digits, it will continue your flow.
To create the Custom User Field go to Settings/ Fields/ User Fields (remember to create it as Number type 😉)