AutomationFlowsSlack & Telegram › Validate New Mautic Contact Emails

Validate New Mautic Contact Emails

Original n8n title: Validate Email of New Contacts in Mautic

ByJonathan @jon-n8n on n8n.io

This workflow uses a Mautic Trigger to check for new contacts. It then validates the contacts' email using OneSimpleAPI. If there are any a message will be sent to Slack.

Event trigger★★★★☆ complexity6 nodesMautic TriggerItem ListsOne Simple ApiSlack
Slack & Telegram Trigger: Event Nodes: 6 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #1462 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "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
    },
    {
      "name": "On Contact Identified",
      "type": "n8n-nodes-base.mauticTrigger",
      "position": [
        600,
        460
      ],
      "parameters": {
        "events": [
          "mautic.lead_post_save_new"
        ],
        "authentication": "oAuth2"
      },
      "credentials": {
        "mauticOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "extract information",
      "type": "n8n-nodes-base.itemLists",
      "position": [
        980,
        480
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "mautic.lead_post_save_new"
      },
      "typeVersion": 1
    },
    {
      "name": "validate email",
      "type": "n8n-nodes-base.oneSimpleApi",
      "position": [
        1180,
        480
      ],
      "parameters": {
        "resource": "utility",
        "emailAddress": "={{$json[\"lead\"][\"fields\"][\"core\"][\"email\"][\"value\"]}}"
      },
      "credentials": {
        "oneSimpleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "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
    },
    {
      "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": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {},
  "connections": {
    "validate email": {
      "main": [
        [
          {
            "node": "If the email is suspicious",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "extract information": {
      "main": [
        [
          {
            "node": "validate email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If is not new contact": {
      "main": [
        [],
        [
          {
            "node": "extract information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On Contact Identified": {
      "main": [
        [
          {
            "node": "If is not new contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If the email is suspicious": {
      "main": [
        [
          {
            "node": "Send to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow uses a Mautic Trigger to check for new contacts. It then validates the contacts' email using OneSimpleAPI. If there are any a message will be sent to Slack.

Source: https://n8n.io/workflows/1462/ — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

Check for valid Mautic contact email. Uses mauticTrigger, itemLists, oneSimpleApi, slack. Event-driven trigger; 6 nodes.

Mautic Trigger, Item Lists, One Simple Api +1
Slack & Telegram

Check for valid Hubspot contact email. Uses hubspotTrigger, hubspot, oneSimpleApi, slack. Event-driven trigger; 5 nodes.

HubSpot Trigger, HubSpot, One Simple Api +1
Slack & Telegram

This workflow uses a Hubspot Trigger to check for new contacts. It then validates the contacts' email using OneSimpleAPI. If there are any a message will be sent to Slack.

HubSpot Trigger, HubSpot, One Simple Api +1
Slack & Telegram

Webhook Slack. Uses theHiveProjectTrigger, stickyNote, httpRequest, theHiveProject. Event-driven trigger; 63 nodes.

The Hive Project Trigger, HTTP Request, The Hive Project +1
Slack & Telegram

Key Features: Direct Case Management: Modify case details such as assignee, severity, status, and more through intuitive form inputs embedded within Slack messages. Seamless Integration: Assumes match

The Hive Project Trigger, HTTP Request, The Hive Project +1