{ "meta": { "instanceId": "workflow-f07ca58a", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:45.729434", "updatedAt": "2025-09-29T07:07:45.729454", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "nodes": [ { "id": "acf47a04-1f3f-448a-b571-a94c84004c45", "name": "Current won time Not Equal to Previous", "type": "n8n-nodes-base.if", "position": [ 140, 260 ], "parameters": { "conditions": { "string": [ { "value1": "={{ $json[\"current\"].won_time}}", "value2": "={{ $json[\"previous\"].won_time}}", "operation": "notEqual" } ] } }, "typeVersion": 1, "notes": "This if node performs automated tasks as part of the workflow." }, { "id": "452a0208-be12-4aac-8c1a-9101ab79f8fb", "name": "On deal updated", "type": "n8n-nodes-base.pipedriveTrigger", "position": [ -80, 260 ], "webhookId": "af0f5626-e92f-4e29-bdc8-8e13c9c9cf99", "parameters": { "action": "updated", "object": "deal" }, "credentials": { "pipedriveApi": { "id": "{{ $credentials.pipedriveApi.id }}", "name": "Pipedrive account" } }, "typeVersion": 1, "notes": "This pipedriveTrigger node performs automated tasks as part of the workflow." }, { "id": "202b9a47-2f00-43ec-bbab-ba82f94e4174", "name": "Get organisation details", "type": "n8n-nodes-base.pipedrive", "position": [ 380, 240 ], "parameters": { "resource": "organization", "operation": "get", "organizationId": "={{ $json[\"current\"].org_id }}", "resolveProperties": true }, "credentials": { "pipedriveApi": { "id": "{{ $credentials.pipedriveApi.id }}", "name": "Pipedrive account" } }, "typeVersion": 1, "notes": "This pipedrive node performs automated tasks as part of the workflow." }, { "id": "b88e18a3-1514-424f-ba96-c8bb94c14cb3", "name": "Search customer", "type": "n8n-nodes-base.httpRequest", "position": [ 600, 100 ], "parameters": { "url": "{{ $env.API_BASE_URL }}", "options": {}, "authentication": "{{ $credentials.predefinedCredentialType }}", "queryParametersUi": { "parameter": [ { "name": "query", "value": "=name:'{{ $json[\"Name\"] }}'" } ] }, "nodeCredentialType": "YOUR_CREDENTIAL_HERE" }, "credentials": { "stripeApi": { "id": "{{ $credentials.stripeApi.id }}", "name": "Stripe account" } }, "typeVersion": 2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "b4a4491e-8d69-41b6-83a4-128f228108e3", "name": "Customer does not exist", "type": "n8n-nodes-base.if", "position": [ 860, 100 ], "parameters": { "conditions": { "string": [ { "value1": "={{ JSON.stringify($json[\"data\"]) }}", "value2": "[]" } ] } }, "typeVersion": 1, "notes": "This if node performs automated tasks as part of the workflow." }, { "id": "6aeaa043-ce4b-4665-a1eb-9fe66d86202f", "name": "Continue with organisation data", "type": "n8n-nodes-base.merge", "position": [ 1120, 220 ], "parameters": { "mode": "passThrough", "output": "input2" }, "typeVersion": 1, "notes": "This merge node performs automated tasks as part of the workflow." }, { "id": "21bc3b5a-72eb-4015-957a-7facfce371e0", "name": "Create customer", "type": "n8n-nodes-base.stripe", "position": [ 1360, 220 ], "parameters": { "name": "={{ $json[\"Name\"] }}", "resource": "customer", "operation": "create", "additionalFields": { "address": { "details": { "city": "={{ $json[\"City/town/village/locality\"] }}", "line1": "={{ $json[\"Street/road name\"] }} {{ $json[\"House number\"] }}", "state": "={{ $json[\"State/county\"] }}", "country": "={{ $json[\"Country\"] }}", "postal_code": "={{ $json[\"ZIP/Postal code\"] }}" } } } }, "credentials": { "stripeApi": { "id": "{{ $credentials.stripeApi.id }}", "name": "Stripe account" } }, "typeVersion": 1, "notes": "This stripe node performs automated tasks as part of the workflow." } ], "connections": { "b88e18a3-1514-424f-ba96-c8bb94c14cb3": { "main": [ [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-c332a95c", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-75298d3f", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-eca96590", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-d56979d3", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-69ce819e", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-29697248", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-cabbe860", "type": "main", "index": 0 } ], [ { "node": "error-handler-b88e18a3-1514-424f-ba96-c8bb94c14cb3-13e00884", "type": "main", "index": 0 } ] ] } }, "name": "If Workflow", "description": "Automated workflow: If 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 }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "notes": "Excellent quality workflow: If Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }