{ "nodes": [ { "name": "On clicking 'execute'", "type": "n8n-nodes-base.manualTrigger", "position": [ 240, 300 ], "parameters": {}, "typeVersion": 1, "id": "40ac1f73-1a1e-4785-9f29-0dc8fc81e3d8", "notes": "This manualTrigger node performs automated tasks as part of the workflow." }, { "name": "Extract domain name", "type": "n8n-nodes-base.function", "position": [ 700, 300 ], "parameters": { "functionCode": "// Take email and extract the domain name \nvar email = ($json[\"email\"]);\nvar name = email.substring(0, email.lastIndexOf(\"@\"));\nvar domain = email.substring(email.lastIndexOf(\"@\") +1);\n\n//To display the final domain name. (result)\n\nreturn [{\n json: { domain }\n}]" }, "typeVersion": 1, "id": "08d81291-d38d-4354-93a9-cb6d30c3ea9c", "notes": "This function node performs automated tasks as part of the workflow." }, { "name": "Sample email", "type": "n8n-nodes-base.set", "position": [ 460, 300 ], "parameters": { "values": { "string": [ { "name": "email", "value": "email@domain2.com" } ] }, "options": {}, "keepOnlySet": true }, "typeVersion": 1, "id": "6f1779ec-d199-4726-a8bf-f8f2c75aab5d", "notes": "This set node performs automated tasks as part of the workflow." }, { "id": "error-72146026", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [ 1000, 400 ], "parameters": { "message": "Workflow execution error", "options": {} } } ], "connections": {}, "name": "Manualtrigger Workflow", "description": "Automated workflow: Manualtrigger Workflow. This workflow processes data and performs automated tasks.", "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000 }, "meta": { "instanceId": "workflow-0b481ed4", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:48.657528", "updatedAt": "2025-09-29T07:07:48.657540", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "notes": "Excellent quality workflow: Manualtrigger Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }