{ "id": 118, "name": "Google Calendar to Slack Status & Philips Hue", "nodes": [ { "name": "On clicking 'execute'", "type": "n8n-nodes-base.manualTrigger", "disabled": true, "position": [ 420, 420 ], "parameters": {}, "typeVersion": 1, "id": "node-b2b1b8c4" }, { "name": "Google Calendar", "type": "n8n-nodes-base.googleCalendar", "position": [ 720, 600 ], "parameters": { "eventId": "={{$node[\"Event Started\"].json[\"id\"].split(\"_\")[0]}}", "options": {}, "calendar": "youremail@domain.com", "operation": "get" }, "credentials": { "googleCalendarOAuth2Api": { "id": "{{ $credentials.googleCalendarOAuth2Api.id }}", "name": "GoogleCalendar - Personal" } }, "typeVersion": 1, "id": "node-f5722467" }, { "name": "Light - Busy", "type": "n8n-nodes-base.httpRequest", "position": [ 1220, 180 ], "parameters": { "url": "{{ $env.BASE_URL }}", "options": {}, "requestMethod": "POST" }, "typeVersion": 1, "id": "node-57ec0330" }, { "name": "Light - Available", "type": "n8n-nodes-base.httpRequest", "position": [ 1220, 600 ], "parameters": { "url": "{{ $env.BASE_URL }}", "options": {}, "requestMethod": "POST" }, "typeVersion": 1, "id": "node-669e0b3e" }, { "name": "Switch", "type": "n8n-nodes-base.switch", "position": [ 1040, 460 ], "parameters": { "rules": { "rules": [ { "value2": "4dw_doing", "operation": "startsWith" }, { "value2": "4dw_managing", "operation": "startsWith" }, { "value2": "4dw_leading", "operation": "startsWith" }, { "output": 1, "value2": "4dw_living", "operation": "startsWith" } ] }, "value1": "={{$json[\"calColor\"]}}", "dataType": "string", "fallbackOutput": 3 }, "typeVersion": 1, "id": "node-93256968" }, { "name": "Light - Personal", "type": "n8n-nodes-base.httpRequest", "position": [ 1220, 340 ], "parameters": { "url": "{{ $env.BASE_URL }}", "options": {}, "requestMethod": "POST" }, "typeVersion": 1, "id": "node-369cb9c5" }, { "name": "Event Started", "type": "n8n-nodes-base.googleCalendarTrigger", "position": [ 540, 600 ], "parameters": { "options": {}, "pollTimes": { "item": [ { "mode": "everyX", "unit": "minutes", "value": 5 } ] }, "triggerOn": "eventStarted", "calendarId": "youremail@domain.com" }, "credentials": { "googleCalendarOAuth2Api": { "id": "{{ $credentials.googleCalendarOAuth2Api.id }}", "name": "GoogleCalendar - Personal" } }, "typeVersion": 1, "id": "node-e0200e99" }, { "name": "Slack - Status", "type": "n8n-nodes-base.slack", "position": [ 1040, 720 ], "parameters": { "resource": "userProfile", "operation": "update", "additionalFields": { "status_text": "={{$json[\"summary\"]}}", "status_emoji": "=:{{$json[\"calColor\"]}}:" } }, "credentials": { "slackApi": { "id": "{{ $credentials.slackApi.id }}", "name": "CompanySlack" } }, "typeVersion": 1, "id": "node-c6b8728c" }, { "name": "Set CalColor", "type": "n8n-nodes-base.function", "position": [ 880, 600 ], "parameters": { "functionCode": "for (item of items) {\n\n switch (item.json.colorId) {\n case '1':\n calColor = 'Lavendar';\n break;\n case '2':\n calColor = '4dw_leading';\n break;\n case '3':\n calColor = 'Grape';\n break;\n case '4':\n calColor = 'Flamingo';\n break;\n case '5':\n calColor = '4dw_managing';\n break;\n case '6':\n calColor = 'Tangerine';\n break;\n case '7':\n calColor = '4dw_living';\n break;\n case '8':\n calColor = 'Graphite';\n break;\n case '9':\n calColor = 'Blueberry';\n break;\n case '10':\n calColor = 'Basil';\n break;\n case '11':\n calColor = '4dw_doing';\n break;\n default:\n calColor = 'undefined';\n }\n item.json.calColor = calColor;\n}\n\nreturn items;" }, "typeVersion": 1, "id": "node-dd829aaf" }, { "id": "error-64ecd0eb", "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-48f94c16", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:48.575587", "updatedAt": "2025-09-29T07:07:48.575592", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "description": "Production-ready workflow: Google Calendar to Slack Status & Philips Hue. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }