Implement robust MFA using this n8n workflow. Combines ClickSend TTS voice verification and SMTP email codes for enhanced security. Utilize the n8n trigger form to start the flow.
Download this n8n workflow template and start using it instantly.
Security Teams: Needing to prototype or deploy MFA solutions quickly. Developers: Looking for an integrated example of using Text-to-Speech APIs (ClickSend) within a low-code environment like n8n. Business Operations: Requiring verified user contact information (phone and email) through a single, automated n8n workflow. n8n Users: Interested in advanced flow control and combining external APIs (ClickSend) with standard email protocols (SMTP).
This comprehensive n8n workflow provides a robust solution for implementing multi-factor authentication (MFA) without relying on complex, custom-built backend services. Utilizing an On form submission n8n trigger, users submit their phone number and email details, initiating a dual-factor verification process. This specific n8n template ensures security by sequentially validating two distinct factors: a voice code and an email code.
The voice code is delivered using the ClickSend API's Text-to-Speech (TTS) capabilities, ensuring the user hears the code spoken aloud. If the voice verification succeeds, the n8n workflow immediately sends a secondary verification code via email using an SMTP connection. Every n8n node in this flow handles a specific critical step—from code generation and voice formatting to conditional logic (If nodes) and external communication, demonstrating the power of the n8n platform for mission-critical authentication processes. This powerful n8n workflow helps secure user accounts and verify contact details efficiently.
This n8n workflow executes a sequential, two-step verification process:
On form submission n8n trigger, providing their phone number, desired voice language, email address, and name.Set voice code n8n node defines the initial numerical code (e.g., '12345'). The subsequent Code for voice n8n node runs a custom JavaScript script to add spaces between the digits (e.g., '1 2 3 4 5') to improve the clarity of the Text-to-Speech voice call.Send Voice n8n node (HTTP Request configured for ClickSend) uses the spaced code to initiate a voice call to the user’s number, speaking the verification number.Verify voice code form. The Is voice code correct? n8n node checks if the input matches the set code. If the code fails, the user is redirected to the Fail voice code completion form.Set email code n8n node defines the second code (e.g., '56789'). The Send Email n8n node then delivers this code to the user via SMTP.Verify email code form. The Is email code correct? n8n node performs the final validation. If both factors are correct, the Success n8n node displays the completion message. If the email code fails, the Fail email code n8n node terminates the process.To deploy this powerful n8n template, follow these steps:
Send Voice n8n node, create a new 'HTTP Basic Auth' credential. Use your ClickSend username and the API Key as the password.Send Email n8n node with your SMTP credentials.Send Email n8n node to a valid sender address.Set voice code and Set email code n8n nodes. While currently static for demonstration, you should consider using a function or a custom n8n node to generate a random, time-bound code in a production environment.On form submission n8n trigger. On form submission (n8n trigger): The starting point of the n8n workflow. It collects user input including phone number ('To'), preferred TTS voice, language, email, and name.
Set voice code / Set email code (Set n8n node): Used to hardcode the verification numbers (12345 and 56789) for demonstration purposes.
Code for voice (Code n8n node): Executes a Javascript function to modify the voice code, inserting spaces between characters (e.g., 1 2 3 4 5) to ensure the Text-to-Speech (TTS) engine pronounces the digits individually.
Send Voice (HTTP Request n8n node): Interfaces with the ClickSend REST API to initiate a TTS voice call. It uses Basic Authentication and dynamically injects the user's phone number and the spaced verification code.
Verify voice code / Verify email code (Form n8n node): Acts as a prompt to the user to enter the code they received via call or email.
Is voice code correct? / Is email code correct? (If n8n node): Implements the core flow control logic. This critical n8n node compares the user-submitted code against the internally stored correct code, directing the n8n workflow down the success or failure path.
Deploy a robust AI agent backend using this advanced n8n workflow. Integrates Supabase for vector storage, RAG capabilities, and full CRUD operations (messages, tasks, status, knowledge). Essential for custom n8n templates.

Automate Supabase CRUD operations using natural language chat inputs. This powerful n8n workflow uses an AI Agent to interact with your database using custom tools.

Deploy a modular, specialized GitHub AI agent using this advanced n8n workflow. Automate repo management, issues, and pull requests via natural language commands using the n8n agent framework.

Use this powerful n8n workflow to automate daily Magento 2 MSI inventory checks. Get proactive low stock alerts sent immediately via Slack and Gmail using specialized n8n node configurations.

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza







































