Email Validation and Domain Extraction
detail.loadingPreview
Validate emails and extract their domains using n8n's built-in functionalities.
About This Workflow
This workflow demonstrates how to validate email addresses and extract the domain name from them directly within n8n. It utilizes the isEmail() and extractDomain() methods available for JSON data containing email fields.
Key Features
- Email Validation: Check if a given string is a valid email address.
- Domain Extraction: Extract the domain part from a valid email address.
- Data Generation: Includes a helper node to generate random email data for testing purposes.
How To Use
- Trigger: The workflow starts with a
manualTriggernode. - Data Source: The
debugHelpernode ('Generate random data') is currently used to provide sample email data. Replace this node with your actual data source (e.g., CSV, database, API). - Processing: The
setnode ('Set these fields to extract domain') processes each incoming item:- It uses
{{ $json.email.isEmail() }}to create a boolean field indicating if the email is valid. - It uses
{{ $json.email.extractDomain() }}to extract the domain name. - It also passes the original email through.
- It uses
- Output: The results of the
setnode will contain the original email, a validation status, and the extracted domain.
Apps Used
Workflow JSON
{
"id": "492822d3-f6ab-4b32-93ac-b9f5d433d89a",
"name": "Email Validation and Domain Extraction",
"nodes": 6,
"category": "Data Quality",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 492822d3-f6ab...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automate Local Business Outreach with AI-Powered Yelp Scraper
This workflow automates the process of scraping local business details from Yelp using AI, then leverages that data to send personalized partnership proposals via Gmail. It's perfect for sales and marketing teams looking to streamline lead generation and outreach campaigns.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.