Build an omnichannel OTP verification flow
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 33 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Postgres.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Universal normalization (Code): runs custom JavaScript code
- Check if the channel already exists (Postgres): run a query
- If: checks a condition and branches into true / false
- Execute a SQL query (Postgres): run a query
- Execute a SQL query (Postgres): run a query
- Channel already verified (Edit Fields (Set)): sets 1 field: response_message
- Search onboarding_session (Postgres): run a query
- If: checks a condition and branches into true / false
- Extract email (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
…plus 22 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Postgres
n8n-nodes-base.postgres - Send Email
n8n-nodes-base.emailSend - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set
From the author
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…