{ "id": "06v55r6E13Wfvo66", "meta": { "instanceId": "workflow-9e8c0e46", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:48.397543", "updatedAt": "2025-09-29T07:07:48.400956", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "name": "Gumroad sale trigger", "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "nodes": [ { "id": "789f1dec-d2d2-4e09-9530-719d354d259c", "name": "Assign to group", "type": "n8n-nodes-base.httpRequest", "position": [ 140, -280 ], "parameters": { "url": "{{ $env.BASE_URL }}", "method": "POST", "options": {}, "authentication": "{{ $credentials.predefinedCredentialType }}", "nodeCredentialType": "YOUR_CREDENTIAL_HERE" }, "credentials": { "mailerLiteApi": { "id": "i9V49FSxbwJhAGfI", "name": "Mailer Lite account" } }, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "53c0df02-5571-485c-91ce-6be2f62fd6d6", "name": "Gumroad Sale Trigger", "type": "n8n-nodes-base.gumroadTrigger", "position": [ -520, -280 ], "webhookId": "06a01b99-cbf1-4694-8502-94ac51670ba4", "parameters": { "resource": "sale" }, "credentials": { "gumroadApi": { "id": "wgjGSvLjsRBJImsQ", "name": "Gumroad account" } }, "typeVersion": 1, "notes": "This gumroadTrigger node performs automated tasks as part of the workflow." }, { "id": "ee782134-e2d4-4f8b-a9d9-a09a919577ab", "name": "append row in CRM", "type": "n8n-nodes-base.googleSheets", "position": [ 480, -280 ], "parameters": { "columns": { "value": { "date": "={{ $('Gumroad Sale Trigger').item.json.sale_timestamp }}", "email": "={{ $('Gumroad Sale Trigger').item.json.email }}", "country": "={{ $('Gumroad Sale Trigger').item.json.ip_country }}", "product name": "={{ $('Gumroad Sale Trigger').item.json.product_name }}" }, "schema": [ { "id": "date", "type": "string", "display": true, "removed": false, "required": false, "displayName": "date", "defaultMatch": false, "canBeUsedToMatch": true }, { "id": "product name", "type": "string", "display": true, "removed": false, "required": false, "displayName": "product name", "defaultMatch": false, "canBeUsedToMatch": true }, { "id": "email", "type": "string", "display": true, "removed": false, "required": false, "displayName": "email", "defaultMatch": false, "canBeUsedToMatch": true }, { "id": "country", "type": "string", "display": true, "removed": false, "required": false, "displayName": "country", "defaultMatch": false, "canBeUsedToMatch": true } ], "mappingMode": "defineBelow", "matchingColumns": [], "attemptToConvertTypes": false, "convertFieldsToString": false }, "options": {}, "operation": "append", "sheetName": { "__rl": true, "mode": "list", "value": "gid=0", "cachedResultUrl": "{{ $env.WEBHOOK_URL }}", "cachedResultName": "Sheet1" }, "documentId": { "__rl": true, "mode": "list", "value": "1XYMstoZ4j3O5T-UYz21ky7P5bkUtzYXQGYCQTRVWCI4", "cachedResultUrl": "{{ $env.WEBHOOK_URL }}", "cachedResultName": "Gumroad sales CRM" } }, "credentials": { "googleSheetsOAuth2Api": { "id": "Ou2SgvNZctBeYWT5", "name": "Google Sheets account" } }, "typeVersion": 4.5, "notes": "This googleSheets node performs automated tasks as part of the workflow." }, { "id": "98ff519b-3065-4c6b-bdeb-2d9095e3f52a", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [ -680, -540 ], "parameters": { "width": 460, "height": 460, "content": "## Trigger on a new Gumroad sale\n### Requirements\n- A [Gumroad]() account\n- A product listed. We used ours [here]({{ $env.WEBHOOK_URL }}\n- Head to Settings > Advanced, and create a new application\n\n### Set up\n- Paste your access token on this Gumroad sale trigger" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "f5ccfe9f-c56c-4394-bebf-1f7438a0dcdf", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [ -140, -660 ], "parameters": { "color": 4, "width": 480, "height": 580, "content": "## Connection to [MailerLite]({{ $env.WEBHOOK_URL }} newsletter \n### Requirements\n- A [Mailerlite]({{ $env.WEBHOOK_URL }} account\n- A subscriber group created\n- Generate a new API from the Integrations menu\n\n### Set up\n- You will first need to create the subscriber with a simple Mailer lite node\n- In the second node call the endpoint to [assign that same subscriber to the group]({{ $env.WEBHOOK_URL }} you created manually on Mailerlite. For example, we named the group \"Gumroad\"\n- To get the group id, we ran a node that calls the [\"list groups\" endpoint]({{ $env.WEBHOOK_URL }} and we appended it to the url.\n" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "e4cea86a-494f-4c3c-9743-3e8eca461a04", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [ 420, -460 ], "parameters": { "color": 4, "width": 480, "height": 380, "content": "## Load into CRM\n### Requirements\n- Set up your api and credentials for Google Sheets. You can find the n8n docs [here]({{ $env.WEBHOOK_URL }}\n- Append the row to your table with your desired data collected previously" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "e81b7ae0-510e-454e-82ff-6d42bde9e81a", "name": "add subscriber to MailerLite", "type": "n8n-nodes-base.mailerLite", "position": [ -60, -280 ], "parameters": { "email": "={{ $json.email }}", "additionalFields": { "customFieldsUi": { "customFieldsValues": [ { "value": "={{ $json.ip_country }}", "fieldId": "country" } ] } } }, "credentials": { "mailerLiteApi": { "id": "i9V49FSxbwJhAGfI", "name": "Mailer Lite account" } }, "typeVersion": 2, "notes": "This mailerLite node performs automated tasks as part of the workflow." }, { "id": "9cc00d13-81d9-4584-9066-4b00b2ff7a47", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [ -160, -60 ], "parameters": { "color": 5, "width": 520, "height": 180, "content": "## Why assign the subscriber to a group? \nIn [MailerLite]({{ $env.WEBHOOK_URL }} you can set up an automation that when a new subscriber is added into a group, a new email sequence begins, which allows you to send multiple emails to this user at a specific frequency.\n\nThis is a very powerful feature to funnel users to engage with your products or services." }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." } ], "active": true, "pinData": {}, "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000 }, "versionId": "3b94b27b-05cc-4996-9f1f-33ba7c3632ae", "connections": { "789f1dec-d2d2-4e09-9530-719d354d259c": { "main": [ [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-ae4ba372", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-29661e86", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-f3edbbe4", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-e080b8ff", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-e082db3f", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-cd4197a9", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-59f532f0", "type": "main", "index": 0 } ], [ { "node": "error-handler-789f1dec-d2d2-4e09-9530-719d354d259c-17bc39df", "type": "main", "index": 0 } ] ] }, "ee782134-e2d4-4f8b-a9d9-a09a919577ab": { "main": [ [ { "node": "error-handler-ee782134-e2d4-4f8b-a9d9-a09a919577ab-38c4d39b", "type": "main", "index": 0 } ] ] } }, "description": "Automated workflow: Gumroad sale trigger. This workflow integrates 6 different services: stickyNote, httpRequest, stopAndError, mailerLite, googleSheets. It contains 11 nodes and follows best practices for error handling and security.", "notes": "Excellent quality workflow: Gumroad sale trigger. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }