{ "nodes": [ { "id": "trigger-47dcf425", "name": "Manual Trigger", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ 100, 100 ], "parameters": {} }, { "name": "Data 1", "type": "n8n-nodes-base.function", "position": [ 602, 350 ], "parameters": { "functionCode": "items[0].json = {\n\"data\": [\n{\n\"pointer\": \"12345\",\n\"panel\": \"234234\",\n\"subject\": \"Blah Blah\",\n\"note\": \"\",\n\"interviewers\": [\n{\n\"id\": \"111222333\",\n\"name\": \"Bobby Johnson\",\n\"email\": \"bobbyj@example.com\"\n}\n],\n\"timezone\": \"America/Los_Angeles\",\n},\n{\n\"pointer\": \"98754\",\n\"panel\": \"3243234\",\n\"subject\": \"Yadda Yadda\",\n\"note\": \"\",\n\"interviewers\": [\n{\n\"id\": \"444555666\",\n\"name\": \"Billy Johnson\",\n\"email\": \"billyj@example.com\"\n}\n],\n\"timezone\": \"America/Los_Angeles\",\n},\n],\n\"hasNext\": false\n};\nreturn items;\n" }, "typeVersion": 1, "id": "60f469d1-bf73-4346-9e57-5de9af65457f", "notes": "This function node performs automated tasks as part of the workflow." }, { "name": "Data 2", "type": "n8n-nodes-base.function", "position": [ 602, 550 ], "parameters": { "functionCode": "items[0].json = [\n{\n\"name\": \"test\",\n\"fields\": {\n\"FirstName\": \"Bobby\",\n\"LastName\": \"Johnson\",\n\"JobTitleDescription\": \"Recruiter\",\n\"HomeDepartmentDescription\": \"Recruiting Team\",\n\"Photo\": [\n{\n\"x\": \"attPuc6gAIHUOHjsY\",\n\"url\": \"{{ $env.WEBHOOK_URL }}\",\n\"filename\": \"photo.jpg\",\n\"size\": 28956,\n\"type\": \"image/jpeg\"\n}\n],\n\"eid\": \"111222333\"\n},\n\"createdTime\": \"2019-09-23T04:06:48.000Z\"\n},\n{\n\"name\": \"test2\",\n\"fields\": {\n\"FirstName\": \"Billy\",\n\"LastName\": \"Johnson\",\n\"JobTitleDescription\": \"CEO\",\n\"HomeDepartmentDescription\": \"Boss Team\",\n\"Photo\": [\n{\n\"x\": \"attPuc6gAIHUOHjsY\",\n\"url\": \"{{ $env.WEBHOOK_URL }}\",\n\"filename\": \"photo.jpg\",\n\"size\": 28956,\n\"type\": \"image/jpeg\"\n}\n],\n\"eid\": \"444555666\"\n},\n\"createdTime\": \"2019-09-23T04:06:48.000Z\"\n}\n,\n{\n\"name\": \"test3\",\n\"fields\": {\n\"FirstName\": \"Susan\",\n\"LastName\": \"Smith\",\n\"JobTitleDescription\": \"CFO\",\n\"HomeDepartmentDescription\": \"Boss Team\",\n\"Photo\": [\n{\n\"x\": \"attPuc6gAIHUOHjsY\",\n\"url\": \"{{ $env.WEBHOOK_URL }}\",\n\"filename\": \"photo.jpg\",\n\"size\": 28956,\n\"type\": \"image/jpeg\"\n}\n],\n\"eid\": \"777888999\"\n},\n\"createdTime\": \"2019-09-23T04:06:48.000Z\"\n}\n];\nreturn items;" }, "typeVersion": 1, "id": "7da09e9b-b88a-4529-8b31-f1fcfcf6c2f8", "notes": "This function node performs automated tasks as part of the workflow." }, { "name": "Convert Data 1", "type": "n8n-nodes-base.function", "position": [ 752, 350 ], "parameters": { "functionCode": "const newItems = [];\n\nfor (const item of items[0].json.data) {\n newItems.push({ json: item });\n}\n\nreturn newItems;" }, "typeVersion": 1, "id": "863adff0-f519-4b8a-b07e-dafc340cdcb1", "notes": "This function node performs automated tasks as part of the workflow." }, { "name": "Convert Data 2", "type": "n8n-nodes-base.function", "position": [ 752, 550 ], "parameters": { "functionCode": "const newItems = [];\n\nfor (const item of items[0].json) {\n newItems.push({ json: item });\n}\n\nreturn newItems;" }, "typeVersion": 1, "id": "55ba4759-b1d5-4295-b927-44506921f884", "notes": "This function node performs automated tasks as part of the workflow." }, { "name": "Merge", "type": "n8n-nodes-base.merge", "position": [ 990, 430 ], "parameters": { "mode": "mergeByKey", "propertyName1": "interviewers[0].id", "propertyName2": "fields.eid" }, "typeVersion": 1, "id": "8c12ec7b-eb58-4bc4-93b8-c7d5cef85e8d", "notes": "This merge node performs automated tasks as part of the workflow." }, { "id": "error-020ebde4", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [ 1000, 400 ], "parameters": { "message": "Workflow execution error", "options": {} } } ], "connections": {}, "name": "Function Workflow", "description": "Automated workflow: Function 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-9df532ee", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:51.490945", "updatedAt": "2025-09-29T07:07:51.491052", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "notes": "Excellent quality workflow: Function Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }