The principle of creating a bot section for registering users does not differ from the creation of other sections. The section type should be set to "Default":
In this case, the type of validation can be left "without validation" (the type of validation can be selected during extended editing of the block):
If it is expected that the user needs to specify a number, for example, the number of years, then the type of validation can be "number":
Kwizbot has a "share phone number" option. Then the user does not need to enter the number manually, the phone number will be sent automatically.
To implement this option, create a "message with keyboard" block and, with advanced editing of the block, add the "share phone number" button (the name of the button can be anything), and in the "Json button configuration (to customize the display)" field, enter the following values :
{
"request_contact": true
}
In the script, you can add an "Action" block to check whether you received a phone number. For example, when receiving a number, you can send the user to the next step, if the phone number was not received, send the user again to the "share phone number" step.
On the part of the user, when choosing "share phone number", he will be sent a request whether he really wants to share his phone number with this bot. The user can either confirm the sending of the number, or cancel this action:
If it is enough only to check the correctness of the user entering the phone number, then you can use the "Keypad message" block and select the "phone" type of validation:
To check the correctness of the user's email input, when creating the "message with keyboard" block, select the "Email" validation type: