{ "nodes": [ { "name": "Set", "type": "n8n-nodes-base.set", "position": [ 630, 990 ], "parameters": { "values": { "number": [ { "name": "deal_value", "value": "={{$json[\"properties\"][\"amount\"][\"value\"]}}" }, { "name": "deal_id", "value": "={{$json[\"dealId\"]}}" } ], "string": [ { "name": "deal_name", "value": "={{$json[\"properties\"][\"dealname\"][\"value\"]}}" }, { "name": "deal_date", "value": "={{$json[\"properties\"][\"closedate\"][\"timestamp\"]}}" }, { "name": "deal_description", "value": "={{$json[\"properties\"][\"description\"][\"value\"]}}" }, { "name": "deal_type", "value": "={{$json[\"properties\"][\"dealtype\"][\"value\"]}}" }, { "name": "deal_stage", "value": "={{$json[\"properties\"][\"dealstage\"][\"value\"]}}" } ] }, "options": {}, "keepOnlySet": true }, "typeVersion": 1, "id": "8b9016ec-9ec8-4163-97df-762adee6ea54", "notes": "This set node performs automated tasks as part of the workflow." }, { "name": "Switch", "type": "n8n-nodes-base.switch", "position": [ 830, 740 ], "parameters": { "rules": { "rules": [ { "value2": "closedwon" }, { "output": 1, "value2": "presentationscheduled" }, { "output": 2, "value2": "closedlost" } ] }, "value1": "={{$node[\"Hubspot\"].json[\"properties\"][\"dealstage\"][\"value\"]}}", "dataType": "string" }, "typeVersion": 1, "id": "d7fb8f03-e590-4c93-ac52-ec97adde12f1", "notes": "This switch node performs automated tasks as part of the workflow." }, { "name": "If Node", "type": "n8n-nodes-base.if", "position": [ 830, 1140 ], "parameters": { "conditions": { "number": [ { "value1": "={{$json[\"deal_value\"]}}", "value2": 500, "operation": "larger" } ], "string": [ { "value1": "={{$json[\"deal_type\"]}}", "value2": "newbusiness" }, { "value1": "={{$json[\"deal_stage\"]}}", "value2": "closedlost|closedwon", "operation": "notEqual" } ] } }, "typeVersion": 1, "id": "db6928a5-97a9-450a-bdd0-fb952f9447af", "notes": "This if node performs automated tasks as part of the workflow." }, { "name": "high-priority", "type": "n8n-nodes-base.hubspot", "position": [ 1030, 1040 ], "parameters": { "stageId": "1", "resource": "ticket", "pipelineId": "0", "ticketName": "=Deal: {{$json[\"deal_name\"]}}", "additionalFields": { "priority": "HIGH", "description": "={{$json[\"deal_description\"]}}", "ticketOwnerId": 12345 } }, "credentials": { "hubspotApi": "hubspot_nodeqa" }, "typeVersion": 1, "id": "7d56d0a4-d40e-4f21-a871-ddee401a1315", "notes": "This hubspot node performs automated tasks as part of the workflow." }, { "name": "low-priority", "type": "n8n-nodes-base.hubspot", "position": [ 1030, 1240 ], "parameters": { "stageId": "1", "resource": "ticket", "pipelineId": "0", "ticketName": "=Deal: {{$json[\"deal_name\"]}}", "additionalFields": { "priority": "MEDIUM", "description": "={{$json[\"deal_description\"]}}" } }, "credentials": { "hubspotApi": "hubspot_nodeqa" }, "typeVersion": 1, "id": "7782edd6-7ee2-43bc-81a1-777687401f44", "notes": "This hubspot node performs automated tasks as part of the workflow." }, { "name": "#closedwon", "type": "n8n-nodes-base.slack", "position": [ 1030, 590 ], "parameters": { "text": "=We successfully closed the deal {{$node[\"Set\"].json[\"deal_name\"]}}!", "channel": "deals", "attachments": [], "otherOptions": {} }, "credentials": { "slackApi": "slack_nodeqa" }, "typeVersion": 1, "id": "f37fb545-1245-4ff5-a26f-95304f173a46", "notes": "This slack node performs automated tasks as part of the workflow." }, { "name": "Airtable", "type": "n8n-nodes-base.airtable", "position": [ 1030, 890 ], "parameters": { "table": "lost_deals", "fields": [ "deal_name", "deal_id", "deal_type" ], "options": {}, "operation": "append", "application": "appqwertz", "addAllFields": false }, "credentials": { "airtableApi": "airtable_nodeqa" }, "typeVersion": 1, "id": "304c299e-5514-4dd0-9e0f-202223c43d22", "notes": "This airtable node performs automated tasks as part of the workflow." }, { "name": "Google Slides", "type": "n8n-nodes-base.googleSlides", "position": [ 1030, 740 ], "parameters": { "title": "=Presentation for deal {{$node[\"Set\"].json[\"deal_name\"]}}", "authentication": "{{ $credentials.oAuth2 }}" }, "credentials": { "googleSlidesOAuth2Api": "slides" }, "typeVersion": 1, "id": "b1109f6d-673a-4bc0-b67a-d19a91a41118", "notes": "This googleSlides node performs automated tasks as part of the workflow." }, { "name": "Hubspot Trigger", "type": "n8n-nodes-base.hubspotTrigger", "position": [ 240, 990 ], "webhookId": "12345", "parameters": { "eventsUi": { "eventValues": [ { "name": "deal.creation" } ] }, "additionalFields": {} }, "typeVersion": 1, "id": "16ea1eea-b67c-4f34-97ed-78316f07f2d4", "notes": "This hubspotTrigger node performs automated tasks as part of the workflow." }, { "name": "Hubspot", "type": "n8n-nodes-base.hubspot", "position": [ 440, 990 ], "parameters": { "dealId": "={{$json[\"dealId\"]}}", "operation": "get", "additionalFields": {} }, "typeVersion": 1, "id": "e777373c-7f2b-4228-9de8-06af80c6107a", "notes": "This hubspot node performs automated tasks as part of the workflow." }, { "id": "error-fc0c498d", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [ 1000, 400 ], "parameters": { "message": "Workflow execution error", "options": {} } } ], "connections": {}, "name": "Set Workflow", "description": "Automated workflow: Set 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-fa27f333", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:45.535436", "updatedAt": "2025-09-29T07:07:45.535444", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "notes": "Excellent quality workflow: Set Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }