Validate Email Format from a WordPress Form and Save a Contact in Mautic - n8n Workflow | Neura Market
Validate Email Format from a WordPress Form and Save a Contact in Mautic
When you collect leads from a form, you need to format the incoming data such as the lead's name and also apply basic validation of the email entered.
Lucky for us, N8N offers all of these features with simple expressions that can easily be applied to data.
This workflow aims to show how you can process your lead data before saving it in Mautic.
## How it Works
1. This workflow receives data from a WordPress form;
2. Applies name formatting and basic validation to the email;
3. Creates the contact in Mautic;
4. If the email is invalid, add the lead to the Do Not Contact list.
## Setup Steps
- Set up credentials when you first open the workflow. You'll need a Mautic account.
- You need to configure a form in WordPress (Elementor, WPForms, etc.) and send it to the N8N Webhook address;
- Now map the fields you need to apply formatting and validation.
- After testing your workflow, swap the test URL to Production URL in Discourse and activate your workflow.
Platform
n8n
Category
Other
Price
Free
Creator
Promovaweb
if
set
noOp
mautic
webhook
stickyNote
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.