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

pdf to text
View
Wait Splitout Create Webhook
View
Openweathermap Twilio Automate Webhook
View
Manual Rundeck Automate Triggered
View
Splitout Code Create Webhook
View
Scrape Today's Github Trend 13 Top Repositories
View
Credentials Transfer
View
Receive messages from a queue via RabbitMQ and send an SMS
View
Limit Code Send Scheduled
View
OpenAI Assistant workflow: uploa file, create an Assistant, chat with it!
View