💬 Two-factor authentication with ClickSend voice calls and email verification

123 views · 💬 Support Chatbots

Description

N8N Workflow: Send and Check TTS (Text-to-speech) Voice Calls with Email Verification

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.

How it Works

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.

Use Cases

Setup Instructions

  1. 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.

  2. SMTP Credentials: In the Send Email node, you must set up your SMTP credentials for the sender’s email.

Workflow Logic

  1. Trigger: The workflow is started by submitting a form.

  2. Set Voice Code: The workflow sets a predefined voice verification code.

  3. Send Voice Call: A voice call is made to the provided phone number using the ClickSend API, where a synthesized voice reads the code.

  4. Verify Voice Code: A form appears to prompt the user to enter the voice code they received.

  5. Conditional Check: An If node checks if the entered voice code is correct.

  6. 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.

  7. Verify Email Code: The user is then prompted to enter the code from the email.

  8. 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 Descriptions

Node NameDescription
On form submissionThis trigger node presents a form to the user to collect their phone number, desired voice, language, email, and name.
Set voice codeA Set node that defines the verification code for the voice call.
Code for voiceA Code node that adds spaces between the digits of the voice code to make it sound clearer during the call.
Send VoiceThis httpRequest node sends a POST request to the ClickSend API to initiate the TTS voice call.
Verify voice codeA 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 codeA Set node that defines the verification code for the email.
Send EmailThis node uses an SMTP credential to send an email to the user with their verification code.
Verify email codeA 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.
SuccessA form node that displays a success message upon completion of both verifications.
Fail voice codeA form node that displays a failure message if the voice code is incorrect.
Fail email codeA form node that displays a failure message if the email code is incorrect.

Customization Tips

Suggested Sticky Notes for Workflow

Required Files

Testing Tips

Suggested Tags & Categories

🔗 Nodes Used

Send Email, HTTP Request, n8n Form Trigger, n8n Form

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup