This workflow automates a two-factor verification process using a voice call and an email. It is designed to send a text-to-speech (TTS) voice call with a verification code and, upon successful voice verification, to send an email with a second verification code.
This workflow automates the process of sending voice calls for verification and combines it with email verification. It uses the ClickSend API for the voice call and an SMTP integration for sending the email.
ClickSend API: Register on ClickSend and obtain your API Key. In the Send Voice node, create a Basic Auth credential using your ClickSend username and API Key as the password.
SMTP Credentials: In the Send Email node, you must set up your SMTP credentials for the sender's email.
Trigger: The workflow is started by submitting a form.
Set Voice Code: The workflow sets a predefined voice verification code.
Send Voice Call: A voice call is made to the provided phone number using the ClickSend API, where a synthesized voice reads the code.
Verify Voice Code: A form appears to prompt the user to enter the voice code they received.
Conditional Check: An If node checks if the entered voice code is correct.
Set Email Code & Send Email: If the voice code is correct, a second code is set, and an email is sent to the user with that code.
Verify Email Code: The user is then prompted to enter the code from the email.
Final Check: A final If node verifies the email code. The workflow either leads to a Success message or a Fail email code message.
Node Name | Description |
---|---|
On form submission | This trigger node presents a form to the user to collect their phone number, desired voice, language, email, and name. |
Set voice code | A Set node that defines the verification code for the voice call. |
Code for voice | A Code node that adds spaces between the digits of the voice code to make it sound clearer during the call. |
Send Voice | This httpRequest node sends a POST request to the ClickSend API to initiate the TTS voice call. |
Verify voice code | A form node that prompts the user to enter the code they received via the voice call. |
Is voice code correct? | An If node that checks if the code entered by the user matches the predefined voice code. |
Set email code | A Set node that defines the verification code for the email. |
Send Email | This node uses an SMTP credential to send an email to the user with their verification code. |
Verify email code | A form node that prompts the user to enter the code they received via email. |
Is email code correct? | An If node that checks if the code entered by the user matches the predefined email code. |
Success | A form node that displays a success message upon completion of both verifications. |
Fail voice code | A form node that displays a failure message if the voice code is incorrect. |
Fail email code | A form node that displays a failure message if the email code is incorrect. |
STEP 1: "Register here to ClickSend and obtain your API Key... In the node 'Send Voice' create a 'Basic Auth' with the username you registered and the API Key provided as your password".
STEP 2: "Set the verification code for this explanatory flow... In the node 'Send Email' set the sender".
STEP 3: "Submit the form and you will receive a call to the phone number you entered where the selected voice will tell you the content of the text you wrote".
Set voice code: "Set the code that will be spoken in the verification phone call".
Set email code: "Set the code that will be sent in the verification email".