Workflow: Woocommerce Slack Create

Workflow Details

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

Related Workflows

Splitout Filter Create Webhook
View
Dashboard
View
Manual Awssns Automate Triggered
View
Upload a file and get a list of all the files in a bucket
View
Manual Renamekeys Automate Triggered
View
Receive updates when a form submission occurs in your Webflow website
View
GoogleCalendar Form Create Triggered
View
Stopanderror Awss3 Automation Webhook
View
On new Stripe Invoice Payment update Hubspot and notify the team in Slack
View
Verify phone numbers
View