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

Slack Typeform Create Triggered
View
Eventbrite Automate Triggered
View
e-mail Chatbot with both semantic and structured RAG, using Telegram and Pgvector
View
Upload video, create playlist and add video to playlist
View
Create, update, and get an incident on PagerDuty
View
RAG on living data
View
#️⃣Nostr #damus AI Powered Reporting + Gmail + Telegram
View
Code Extractfromfile Monitor Triggered
View
Splitout Code Create Webhook
View
Phishing_analysis__URLScan_io_and_Virustotal_
View