Skip to main content

Two-factor authentication with ClickSend voice calls and email verification

Workflow preview

Workflow preview
100%
Two-factor authentication with ClickSend voice calls and email verification preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.formtrigger, n8n-nodes-base.emailsend, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.form, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Amit Mehta.

Original n8n.io source

1.1 Workflow description

Title
Two-factor authentication with ClickSend voice calls and email verification
Workflow name
Two-factor authentication with ClickSend voice calls and email verification

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
  • Two-factor authentication (2FA) for user registration or login.
  • Automated verification for phone numbers and email addresses.
  • Building a custom verification system for web applications.
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 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.
Customization Tips
  • You can change the verification codes by modifying the values in the Set voice code and Set email code nodes.
  • The form can be customized to change the fields, labels, and dropdown options for voice and language.
  • The email content and subject can be customized in the Send Email node.
Suggested Sticky Notes for Workflow
  • 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".

Required Files
  • 1g8EAij2RwhNN70t_xSend_and_check_TTS_(Text-to-speech)_voice_calls_end_email_verification.json: The n8n workflow export file for this automation.
Testing Tips
  • Run the workflow and submit the form with your phone number and email.
  • Check your phone for the voice call and listen for the code.
  • Enter the correct voice code in the next form and submit.
  • Check your email for the second verification code.
  • Enter the correct email code to test the success path, or an incorrect one to test the failure path.
Suggested Tags & Categories
  • #Verification
  • #Voice
  • #Email
  • #API
  • #Authentication

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Send Voice

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 5 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Send Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 7 - Code for voice

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Set voice code

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Verify voice code

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 10 - Fail voice code

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 11 - Set email code

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Verify email code

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 13 - Is email code correct?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Is voice code correct?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 15 - Success

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 16 - Fail email code

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 17 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Two-factor authentication with ClickSend voice calls and email verification
Complexity advanced
Nodes 19
Categories Support Chatbot, AI Chatbot
Author Amit Mehta
Published 18 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8712/8712.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Two-factor authentication with ClickSend voice calls and email verification do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.