Skip to main content

🔐 Double opt-in email verification system with Google Sheets

Workflow preview

Workflow preview
100%
🔐 Double opt-in email verification system with Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This template implements a professional Double Opt In email verification system using Google Sheets as a database. The workflow collects user emails, generates unique verification codes, stores the...

Best for

  • Lead Generation automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.form, n8n-nodes-base.code, n8n-nodes-base.emailsend, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.stickynote, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Un tal Camilo Medina.

Original n8n.io source

1.1 Workflow description

Title
🔐 Double opt-in email verification system with Google Sheets
Workflow name
🔐 Double opt-in email verification system with Google Sheets

This template implements a professional Double Opt-In email verification system using Google Sheets as a database. The workflow collects user emails, generates unique verification codes, stores them securely, and validates user access before proceeding with your main form.

How it Works

  1. User submits their email through an initial form
  2. System generates a unique 6-digit verification code
  3. Code is stored in Google Sheets along with user data
  4. Verification email is sent to the user
  5. User enters the code to verify their email
  6. Upon successful verification, user accesses the main form

Setup

Follow these steps to configure the workflow:

1. Google Sheets Configuration

Create a Google Sheets spreadsheet with the following columns:

Column Name Data Type Description
Start Date String Timestamp of form submission
ID String Workflow execution ID
Accepts Terms String Terms acceptance flag
Email String User's email address
Code String 6-digit verification code
2. Google Sheets Connection
  1. In n8n, go to Credentials
  2. Add new credential for Google Sheets OAuth2
  3. Follow the OAuth2 authorization flow
  4. In the workflow, update the "Store Data" node:
    • Replace YOUR_GOOGLE_SHEET_ID with your spreadsheet ID
    • Select the correct sheet tab
3. SMTP Configuration
  1. Add SMTP credentials in n8n:
    • Go to Credentials > Add new > SMTP
    • Enter your SMTP server details
    • Configure port, username, and password
  2. Update the "Send Email" node:
    • Change sender email to your domain
    • Customize subject line and message body
    • Set reply-to address
4. Form Customization
  1. Entry Form: Customize the title and privacy policy text
  2. Email Form: Update the description for your use case
  3. Verification Form: Modify instructions as needed
  4. Main Form: Add or modify fields for your requirements

Configuration

Email Settings
  • From Email: Replace [email protected] with your sender address
  • Subject: Customize the verification email subject
  • Message: Personalize the email template with your branding
  • Reply-To: Set your support email address
Form Messages
  • Update all form descriptions to match your brand voice
  • Customize button labels
  • Modify error messages for better user experience

Benefits

  • GDPR Compliance: Ensures legitimate user consent
  • Spam Reduction: Validates email ownership
  • Data Quality: Maintains clean contact lists
  • User Trust: Professional verification process

Use Cases

  • Newsletter subscriptions
  • User registration flows
  • Marketing campaign sign-ups
  • Lead generation forms
  • Event registrations

Error Handling

The workflow includes:

  • Invalid code detection
  • Second attempt opportunity
  • Process restart option after multiple failures
  • Clear error messaging

Security Features

  • Unique 6-digit codes for each session
  • Temporary code storage
  • Validation against stored data
  • Multiple attempt limits

Tags

Double Opt-In, Email Verification, Forms, Google Sheets, GDPR, Data Protection, Email Marketing, Lead Generation

Requirements

  • n8n v1.0+
  • Google Sheets account
  • SMTP server access
  • Basic understanding of n8n workflows

Support

For questions or issues with this template:

  1. Check the sticky notes in the workflow for detailed explanations
  2. Review the setup instructions above
  3. Ensure all credentials are properly configured
  4. Test with a personal email address first

Best Practices

  • Test the complete flow before going live
  • Monitor Google Sheets for verification attempts
  • Set up email delivery monitoring
  • Consider implementing code expiration (advanced feature)
  • Keep form messages clear and concise

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 - On form submission

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

Block 2 - Email Form

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

Block 3 - Generate Code

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

Block 4 - Send Email

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

Block 5 - Store Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 6 - Verification Form

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

Block 7 - Check Code

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

Block 8 - Main Form

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

Block 9 - Incorrect Code Form

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

Block 10 - Second Check

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

Block 11 - Reset Form

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

Block 12 - Sticky Note 1

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

Block 13 - Sticky Note 2

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

Block 14 - Sticky Note 3

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

Block 15 - Sticky Note 4

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

Block 16 - Sticky Note 5

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

Block 17 - Sticky Note 6

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

Block 18 - Sticky Note 7

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

Block 19 - Sticky Note 8

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

Block 20 - Sticky Note 9

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

Block 21 - Sticky Note 10

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

Block 22 - Sticky Note 11

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

Block 23 - Continue With Your Flow

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

Block 24 - Sticky Note

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

3. Summary Table

Workflow 🔐 Double opt-in email verification system with Google Sheets
Complexity advanced
Nodes 24
Categories Lead Generation
Author Un tal Camilo Medina
Published 09 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3953/3953.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 🔐 Double opt-in email verification system with Google Sheets do?

This template implements a professional Double Opt In email verification system using Google Sheets as a database. The workflow collects user emails, generates unique verification codes, stores the...

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 Lead Generation use case.