🎣 πŸ” Double opt-in email verification system with Google Sheets

⚑ 334 views · 🎣 Lead Generation & Enrichment

πŸ’‘ Pro Tip β€” For lead enrichment, ScraperNode can pull LinkedIn profiles, company data, and job listings directly into your pipeline β€” useful for building prospect lists without manual research.

View All Scrapers

Description

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 NameData TypeDescription
Start DateStringTimestamp of form submission
IDStringWorkflow execution ID
Accepts TermsStringTerms acceptance flag
EmailStringUser’s email address
CodeString6-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

Form Messages

Benefits

Use Cases

Error Handling

The workflow includes:

Security Features

Tags

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

Requirements

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

πŸ”— Nodes Used

Send Email, Google Sheets, n8n Form Trigger, n8n Form

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup