Workflow: Woocommerce Slack Create

Workflow Details

Download Workflow
{
    "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
                    }
                ],
                []
            ]
        }
    }
}
Back to Workflows

Related Workflows

Manual Stickynote Automate Triggered
View
Code Schedule Update Scheduled
View
Create a table, and insert and update data in the table in Snowflake
View
Telegram Splitout Create Webhook
View
Openweathermap Twilio Automate Webhook
View
LINE Assistant with Google Calendar and Gmail Integration
View
Updating Shopify tags on Onfleet events
View
HTTP Stickynote Automate Webhook
View
UTM Link Creator & QR Code Generator with Scheduled Google Analytics Reports
View
Create a room, invite members from a different room, and send a message in the room we created
View