{ "id": 88, "name": "Check for valid Hubspot contact email", "nodes": [ { "name": "When contact created", "type": "n8n-nodes-base.hubspotTrigger", "position": [ 540, 480 ], "webhookId": "d24ffb14-1e00-4d4e-b3b8-a812690c40d5", "parameters": { "eventsUi": { "eventValues": [ {} ] }, "additionalFields": {} }, "credentials": { "hubspotDeveloperApi": { "id": "{{ $credentials.hubspotDeveloperApi.id }}", "name": "Hubspot Developer account" } }, "typeVersion": 1, "id": "node-542efb57" }, { "name": "Get contact email address", "type": "n8n-nodes-base.hubspot", "position": [ 720, 480 ], "parameters": { "resource": "contact", "contactId": "={{$json[\"contactId\"] ? 151 : 151}}", "operation": "get", "additionalFields": { "properties": [ "email" ], "propertyMode": "valueOnly" } }, "credentials": { "hubspotApi": { "id": "{{ $credentials.hubspotApi.id }}", "name": "Hubspot account" } }, "typeVersion": 1, "id": "node-f300abf3" }, { "name": "validate the email", "type": "n8n-nodes-base.oneSimpleApi", "position": [ 900, 480 ], "parameters": { "resource": "utility", "emailAddress": "={{$json[\"properties\"][\"email\"][\"value\"]}}" }, "credentials": { "oneSimpleApi": { "id": "{{ $credentials.oneSimpleApi.id }}", "name": "One Simple account" } }, "typeVersion": 1, "id": "node-4081bbb3" }, { "name": "If email is suspicious", "type": "n8n-nodes-base.if", "notes": "IF\ndeliverability is not good\nOR\nDomain is not valid\nOR\nEmail is Disposable", "position": [ 1080, 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-73da7f61" }, { "name": "Send to Slack", "type": "n8n-nodes-base.slack", "position": [ 1280, 460 ], "parameters": { "text": "=:warning: New Contact with Suspicious Email :warning:\n*Name: * {{$node[\"Item Lists\"].json[\"contact\"][\"fields\"][\"core\"][\"firstname\"][\"normalizedValue\"]}} {{$node[\"Item Lists\"].json[\"contact\"][\"fields\"][\"core\"][\"lastname\"][\"normalizedValue\"]}}\n*Email: * {{$node[\"Item Lists\"].json[\"contact\"][\"fields\"][\"core\"][\"email\"][\"normalizedValue\"]}}\n*Creator: * {{$node[\"Item Lists\"].json[\"contact\"][\"createdByUser\"]}}", "channel": "#hubspot-alerts", "attachments": [], "otherOptions": {} }, "credentials": { "slackApi": { "id": "{{ $credentials.slackApi.id }}", "name": "Slack Access Token" } }, "typeVersion": 1, "id": "node-b6a105a3" }, { "id": "error-456f6d07", "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-fc89a119", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:52.326985", "updatedAt": "2025-09-29T07:07:52.326993", "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 Hubspot contact email. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }