{ "meta": { "instanceId": "workflow-0a8626b0", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:59.000563", "updatedAt": "2025-09-29T07:07:59.000578", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "nodes": [ { "id": "74a81d54-6cc9-4c17-88fe-aca27d491b73", "name": "Webhook", "type": "n8n-nodes-base.webhook", "position": [ 640, 40 ], "webhookId": "1d3d0c06-f979-4573-b644-1a5b13153471", "parameters": { "path": "paypal-NVP-SOAP-Webhook", "options": {}, "httpMethod": "POST" }, "typeVersion": 2, "notes": "This webhook node performs automated tasks as part of the workflow." }, { "id": "59caade5-a67d-4d22-822c-bec8bf9baf69", "name": "Event Capture Type", "type": "n8n-nodes-base.switch", "position": [ 1160, 0 ], "parameters": { "rules": { "values": [ { "outputKey": "YOUR_CREDENTIAL_HERE", "conditions": { "options": { "version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict" }, "combinator": "and", "conditions": [ { "id": "68917137-6042-4e47-9432-d006dca17872", "operator": { "type": "string", "operation": "equals" }, "leftValue": "={{ $json.body.event_type }}", "rightValue": "=PAYMENT.CAPTURE.COMPLETED" } ] }, "renameOutput": true } ] }, "options": {} }, "typeVersion": 3.2, "notes": "This switch node performs automated tasks as part of the workflow." }, { "id": "cba1ef91-2e34-4bd5-9972-565296137851", "name": "Get Order Details", "type": "n8n-nodes-base.httpRequest", "position": [ 1360, 0 ], "parameters": { "url": "{{ $env.BASE_URL }}", "options": {}, "authentication": "{{ $credentials.genericCredentialType }}", "genericAuthType": "oAuth2Api" }, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "ecab1f76-8c53-459c-8c5f-26356ec9e675", "name": "Email Data", "type": "n8n-nodes-base.set", "position": [ 1540, 0 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "8d56c774-9adb-4981-9295-6f6f2ec59749", "name": "First Name", "type": "string", "value": "={{ $json.payment_source.paypal.name.given_name }}" }, { "id": "0f6136eb-f5e1-47b9-a829-f42dff2b7c9e", "name": "Last Name", "type": "string", "value": "={{ $json.payment_source.paypal.name.surname }}" }, { "id": "f4da90dc-b4d5-4951-91b8-2ef4b2bf870d", "name": "EmaiID", "type": "string", "value": "={{ $json.payment_source.paypal.email_address }}" }, { "id": "f7a31ec1-4305-4df0-8791-0f59a04f0c7e", "name": "Product Purchased", "type": "string", "value": "={{ $json.purchase_units[0].items[0].name }}" } ] } }, "typeVersion": 3.4, "notes": "This set node performs automated tasks as part of the workflow." }, { "id": "211fbba0-67b1-4ece-b6a7-79b7c5cd0f7a", "name": "Wait", "type": "n8n-nodes-base.wait", "position": [ 920, 40 ], "webhookId": "16debf49-5196-473a-8b55-b2450b9b575a", "parameters": {}, "typeVersion": 1.1, "notes": "This wait node performs automated tasks as part of the workflow." }, { "id": "c4b9bcab-42ab-4fca-b064-ab262cdcf05e", "name": "getJSON", "type": "n8n-nodes-base.httpRequest", "position": [ 2060, 0 ], "parameters": { "url": "{{ $env.WEBHOOK_URL }}", "options": {} }, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "b92f72a4-25c2-4c6d-9cc1-366cd1dc2dd1", "name": "Event Capture Type1", "type": "n8n-nodes-base.switch", "position": [ 1760, 0 ], "parameters": { "rules": { "values": [ { "outputKey": "YOUR_CREDENTIAL_HERE", "conditions": { "options": { "version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict" }, "combinator": "and", "conditions": [ { "id": "68917137-6042-4e47-9432-d006dca17872", "operator": { "type": "string", "operation": "equals" }, "leftValue": "={{ $json[\"Product Purchased\"] }}", "rightValue": "=AI-Powered Social Media Content Generator & Publisher" } ] }, "renameOutput": true } ] }, "options": {} }, "typeVersion": 3.2, "notes": "This switch node performs automated tasks as part of the workflow." }, { "id": "10f88f6c-1062-48c5-8a90-116c18954d95", "name": "Conver to File", "type": "n8n-nodes-base.code", "position": [ 2280, 0 ], "parameters": { "jsCode": "const content = JSON.stringify($json, null, 2); // Pretty-print JSON\n\nreturn [\n {\n binary: {\n data: {\n data: Buffer.from(content).toString('base64'),\n mimeType: 'application/json',\n fileName: 'data.json'\n }\n }\n }\n];\n" }, "typeVersion": 2, "notes": "This code node performs automated tasks as part of the workflow." }, { "id": "4c95905c-0c77-488a-8fb3-e8f4f4b83e54", "name": "Send Email", "type": "n8n-nodes-base.emailSend", "position": [ 2600, 0 ], "webhookId": "e2895df8-6c42-44ff-ba08-fbf7a9df93c6", "parameters": { "html": "=\n\n
\n \n\n Hi {{ $('Event Capture Type1').item.json['First Name'] }} {{ $('Event Capture Type1').item.json['Last Name'] }} ,\nThank you for purchasing {{ $('Event Capture Type1').item.json['Product Purchased'] }} - n8n workflow template from SyncBricks! 🚀 \nYour template is attached with this email. We hope it helps you build powerful automations with ease. \n\n Here are some helpful resources to take things further: \n
🎥 Watch a quick guide on how to use your template: \n\nNeed help or have questions? Just reply to this email . \n | \n