{ "id": 86, "name": "Check for valid Mautic contact email", "nodes": [ { "name": "If is not new contact", "type": "n8n-nodes-base.if", "position": [ 780, 460 ], "parameters": { "conditions": { "string": [ { "value1": "={{$json[\"mautic.lead_post_save_new\"]}}", "operation": "isEmpty" } ] } }, "typeVersion": 1, "id": "node-043eeaca" }, { "name": "On Contact Identified", "type": "n8n-nodes-base.mauticTrigger", "position": [ 600, 460 ], "webhookId": "a3ee0f93-2870-44e2-bb2f-0175433263b3", "parameters": { "events": [ "mautic.lead_post_save_new" ], "authentication": "{{ $credentials.oAuth2 }}" }, "credentials": { "mauticOAuth2Api": { "id": "{{ $credentials.mauticOAuth2Api.id }}", "name": "Mautic account" } }, "typeVersion": 1, "id": "node-81143f3f" }, { "name": "extract information", "type": "n8n-nodes-base.itemLists", "position": [ 980, 480 ], "parameters": { "options": {}, "fieldToSplitOut": "mautic.lead_post_save_new" }, "typeVersion": 1, "id": "node-ce3546ad" }, { "name": "validate email", "type": "n8n-nodes-base.oneSimpleApi", "position": [ 1180, 480 ], "parameters": { "resource": "utility", "emailAddress": "={{$json[\"lead\"][\"fields\"][\"core\"][\"email\"][\"value\"]}}" }, "credentials": { "oneSimpleApi": { "id": "{{ $credentials.oneSimpleApi.id }}", "name": "One Simple account" } }, "typeVersion": 1, "id": "node-db988646" }, { "name": "If the email is suspicious", "type": "n8n-nodes-base.if", "notes": "IF\ndeliverability is not good\nOR\nDomain is not valid\nOR\nEmail is Disposable", "position": [ 1360, 480 ], "parameters": { "conditions": { "string": [ { "value1": "={{$json[\"deliverability\"]}}", "value2": "GOOD", "operation": "notEqual" } ], "boolean": [ { "value1": "={{$json[\"is_domain_valid\"]}}" }, { "value1": "={{$json[\"is_email_disposable\"]}}", "value2": true } ] }, "combineOperation": "any" }, "typeVersion": 1, "id": "node-839c8bf9" }, { "name": "Send to Slack", "type": "n8n-nodes-base.slack", "position": [ 1560, 460 ], "parameters": { "text": "=:warning: New Contact with Suspicious Email :warning:\n*Name: * {{$node[\"extract information\"].json[\"contact\"][\"fields\"][\"core\"][\"firstname\"][\"normalizedValue\"]}} {{$node[\"extract information\"].json[\"contact\"][\"fields\"][\"core\"][\"lastname\"][\"normalizedValue\"]}}\n*Email: * {{$node[\"extract information\"].json[\"contact\"][\"fields\"][\"core\"][\"email\"][\"normalizedValue\"]}}\n*Link: * https://mautic.my.domain.com/s/contacts/view/{{$node[\"extract information\"].json[\"contact\"][\"id\"]}}\n*Creator: * {{$node[\"extract information\"].json[\"contact\"][\"createdByUser\"]}}", "channel": "#mautic-alerts", "attachments": [], "otherOptions": {} }, "credentials": { "slackApi": { "id": "{{ $credentials.slackApi.id }}", "name": "Slack Access Token" } }, "typeVersion": 1, "id": "node-3d2d2c73" }, { "id": "error-d7ef652e", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [ 1000, 400 ], "parameters": { "message": "Workflow execution error", "options": {} } } ], "active": false, "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3 }, "connections": {}, "meta": { "instanceId": "workflow-48617fe0", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:50.940939", "updatedAt": "2025-09-29T07:07:50.940950", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "description": "Production-ready workflow: Check for valid Mautic contact email. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }