Skip to main content

Build an omnichannel OTP verification flow

Workflow preview

Workflow preview
100%
Build an omnichannel OTP verification flow preview
Open on n8n.io

1. Workflow Overview

How it works • Receives user identity data from multiple channels (WhatsApp, Telegram, email). • Generates and stores secure one time passwords (OTP). • Validates OTP codes against Postgres records...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.if, n8n-nodes-base.stickynote, n8n-nodes-base.postgres, n8n-nodes-base.emailsend, n8n-nodes-base.code, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Build an omnichannel OTP verification flow
Workflow name
Build an omnichannel OTP verification flow

How it works

• Receives user identity data from multiple channels (WhatsApp, Telegram, email). • Generates and stores secure one-time passwords (OTP). • Validates OTP codes against Postgres records. • Centralizes user identity across channels. • Maintains session continuity for onboarding and verification.

Set up steps

• Import the workflow into n8n. • Configure Postgres or Supabase credentials. • Download and create the required database tables in Supabase. • Connect messaging channel credentials. • Define OTP expiration and validation rules. • Test using sample user verification scenarios.

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 - Webhook

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

Block 2 - If

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

Block 3 - Sticky Note

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

Block 4 - Sticky Note1

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

Block 5 - Execute a SQL query

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 6 - If1

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

Block 7 - waiting_for_otp

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 8 - If2- extracted_email

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

Block 9 - Send email

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

Block 10 - If2

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

Block 11 - Execute a SQL query1

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 12 - Execute a SQL query2

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 13 - IF_resend_otp

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

Block 14 - Execute a SQL query3

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 15 - Execute a SQL query5

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 16 - If4

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

Block 17 - IF_step- waiting_otp

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

Block 18 - If email en session

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

Block 19 - Upsert user_channel

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 20 - Universal normalization

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

Block 21 - Check if the channel already exists

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 22 - Channel already verified

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

Block 23 - Search onboarding_session

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 24 - Extract email

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

Showing the first 24 of 45 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Build an omnichannel OTP verification flow
Complexity advanced
Nodes 45
Categories Support Chatbot, AI Chatbot
Author Yenire
Published 20 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14209/14209.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 Build an omnichannel OTP verification flow do?

How it works • Receives user identity data from multiple channels (WhatsApp, Telegram, email). • Generates and stores secure one time passwords (OTP). • Validates OTP codes against Postgres records...

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.