Table of Contents

Two-Step Email Verification

Abby Updated by Abby

In this article we'll show you how to create a two-step email verification with a Formula block and a SendGrid Email block.

At the starting point we use a Forms block to ask the user for their email and saved it in the variable @email, we've made this question mandatory

The next step in the flow is a Formula block where we'll generate a random four digit number:

We'll add the following snippet:

  Random(1111,9999)

This block creates a random four digit number and saves it in the variable @verification_code

Next we'll add the SendGrid block:

Here's what we'll add inside of the block:

We'll send it to our email lead using the variable @email

In the email message we'll add the variable @verification_code

Next we've added a 'Question: Number' block and saved the variable as @user_input

After the user enters the code we'll use a condition to see if @user_input is equal to @verification_code, if so that's it!

Otherwise:

We'll ask them if they'd like to change their email address, or if they'd like to try and input the verification code again.

If they'd like to change their email address we'll redirect them back to the first input block

Here's the message they'll get in their inbox:

Was this article helpful?

Send Files Hosted in Landbot to Your Google Drive with Make

Fixing Web Bot Loading Issues for iOS Devices in Meta Campaigns with Disclaimers

Contact