feat: add folder support for workflows (fixes #70)

This commit is contained in:
Praveen Mudalgeri
2025-08-05 09:40:47 +05:30
parent 307d530f9b
commit c4885eee92
2057 changed files with 985290 additions and 974268 deletions

View File

@@ -0,0 +1,93 @@
{
"id": 80,
"name": "New WooCommerce product to Slack",
"nodes": [
{
"name": "Product Created",
"type": "n8n-nodes-base.wooCommerceTrigger",
"position": [
320,
500
],
"webhookId": "267c4855-6227-4d33-867e-74600097473e",
"parameters": {
"event": "product.created"
},
"credentials": {
"wooCommerceApi": {
"id": "48",
"name": "WooCommerce account"
}
},
"typeVersion": 1
},
{
"name": "Send to Slack",
"type": "n8n-nodes-base.slack",
"position": [
540,
500
],
"parameters": {
"text": ":new: A new product has been added! :new:",
"channel": "woo-commerce",
"blocksUi": {
"blocksValues": []
},
"attachments": [
{
"color": "#66FF00",
"fields": {
"item": [
{
"short": false,
"title": "Name",
"value": "={{$json[\"name\"]}}"
},
{
"short": true,
"title": "Price",
"value": "={{$json[\"regular_price\"]}}"
},
{
"short": true,
"title": "Sale Price",
"value": "={{$json[\"sale_price\"]}}"
},
{
"short": false,
"title": "Link",
"value": "={{$json[\"permalink\"]}}"
}
]
},
"footer": "=Added: {{$json[\"date_created\"]}}"
}
],
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "53",
"name": "Slack Access Token"
}
},
"typeVersion": 1
}
],
"active": false,
"settings": {},
"connections": {
"Product Created": {
"main": [
[
{
"node": "Send to Slack",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,129 @@
{
"id": 81,
"name": "New WooCommerce order to Slack",
"nodes": [
{
"name": "Order Created",
"type": "n8n-nodes-base.wooCommerceTrigger",
"position": [
340,
500
],
"webhookId": "287b4bf4-67ec-4c97-85d9-c0d3e6f59e6b",
"parameters": {
"event": "order.created"
},
"credentials": {
"wooCommerceApi": {
"id": "48",
"name": "WooCommerce account"
}
},
"typeVersion": 1
},
{
"name": "Send to Slack",
"type": "n8n-nodes-base.slack",
"position": [
780,
480
],
"parameters": {
"text": ":sparkles: There is a new order :sparkles:",
"channel": "woo-commerce",
"blocksUi": {
"blocksValues": []
},
"attachments": [
{
"color": "#66FF00",
"fields": {
"item": [
{
"short": true,
"title": "Order ID",
"value": "={{$json[\"id\"]}}"
},
{
"short": true,
"title": "Status",
"value": "={{$json[\"status\"]}}"
},
{
"short": true,
"title": "Total",
"value": "={{$json[\"currency_symbol\"]}}{{$json[\"total\"]}}"
},
{
"short": false,
"title": "Link",
"value": "={{$node[\"Order Created\"].json[\"_links\"][\"self\"][0][\"href\"]}}"
}
]
},
"footer": "=*Ordered:* {{$json[\"date_created\"]}} | *Transaction ID:* {{$json[\"transaction_id\"]}}"
}
],
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "53",
"name": "Slack Access Token"
}
},
"typeVersion": 1
},
{
"name": "Price over 100",
"type": "n8n-nodes-base.if",
"position": [
540,
500
],
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json[\"total\"]}}",
"value2": 100,
"operation": "largerEqual"
}
]
}
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"saveManualExecutions": true,
"saveExecutionProgress": true,
"saveDataSuccessExecution": "all"
},
"connections": {
"Order Created": {
"main": [
[
{
"node": "Price over 100",
"type": "main",
"index": 0
}
]
]
},
"Price over 100": {
"main": [
[
{
"node": "Send to Slack",
"type": "main",
"index": 0
}
],
[]
]
}
}
}

View File

@@ -0,0 +1,130 @@
{
"id": 82,
"name": "New WooCommerce refund to Slack",
"nodes": [
{
"name": "Order Updated",
"type": "n8n-nodes-base.wooCommerceTrigger",
"position": [
320,
500
],
"webhookId": "f7736be3-e978-4a17-b936-7ce9f8ccdb72",
"parameters": {
"event": "order.updated"
},
"credentials": {
"wooCommerceApi": {
"id": "48",
"name": "WooCommerce account"
}
},
"typeVersion": 1
},
{
"name": "If Refund and Over 100",
"type": "n8n-nodes-base.if",
"position": [
540,
500
],
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json[\"total\"]}}",
"value2": 100,
"operation": "largerEqual"
}
],
"string": [
{
"value1": "={{$json[\"status\"]}}",
"value2": "refunded"
}
]
}
},
"typeVersion": 1
},
{
"name": "Send to Slack",
"type": "n8n-nodes-base.slack",
"position": [
780,
480
],
"parameters": {
"text": ":x: A refund has been issued :x:",
"channel": "woo-commerce",
"blocksUi": {
"blocksValues": []
},
"attachments": [
{
"color": "#FF0000",
"fields": {
"item": [
{
"short": true,
"title": "Order ID",
"value": "={{$json[\"id\"]}}"
},
{
"short": true,
"title": "Status",
"value": "={{$json[\"status\"]}}"
},
{
"short": true,
"title": "Total",
"value": "={{$json[\"currency_symbol\"]}}{{$json[\"total\"]}}"
}
]
},
"footer": "=*Order updated:* {{$json[\"date_modified\"]}}"
}
],
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "53",
"name": "Slack Access Token"
}
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"saveManualExecutions": true,
"saveExecutionProgress": true,
"saveDataSuccessExecution": "all"
},
"connections": {
"Order Updated": {
"main": [
[
{
"node": "If Refund and Over 100",
"type": "main",
"index": 0
}
]
]
},
"If Refund and Over 100": {
"main": [
[
{
"node": "Send to Slack",
"type": "main",
"index": 0
}
],
[]
]
}
}
}