Email or Phone Verification
This page explains how a chatbot can verify the email or the phone of a user.
Email Verification
Below you can find an example of a bot diagram and the preview bot, which verify the email of a user. Note that we select the “verified” option in the dropdown of the Email box.
Phone Number Verification
We can also add the “verified” option to a Phone node. With this, after the user inputs a phone number, the message: “Here is your verification code: {code}” will be sent to the number for verification. Note that this functionality requires Twilio integration, which can be configured in the SETTINGS tab.
The Phone node also has the option of “not verified.” This option’s path is followed only if the code is sent to the user’s phone, and the user inputs the code incorrectly.
A useful application of SMS verification is to allow existing users to chat in a Web bot, but still be able to access the information in their profile.
For example, consider user Joe Doe, who is already in the system because he interacted with an SMS chatbot using his phone number which is +1-949-1234567. Suppose that SMS chatbot asked for his insurance group id, which it stored in user profile variable user_insurancegid.
The next day, Joe Doe visits a web page that hosts a Web bot. That bot first asks Joe Doe to verify his phone number. If successfully verified, the bot checks that it already has user_insurancegid for this user, so it does not need to ask for it. Essentially, what happens in the background is that the new Web bot chat is automatically linked to user Joe Doe with phone number +1-949-1234567.