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

Manual Schedule Automation Scheduled
View
Luma AI - Webhook Response v1 - AK
View
Manual Stickynote Automation Webhook
View
Splitout Limit Create Webhook
View
Manual GoogleSheets Update Triggered
View
Fetch the Most Recent Document from Google Drive
View
Receive messages from a topic and send an SMS
View
Hugging Face to Notion
View
Backup workflows to git repository on Gitea
View
Create a new card in Trello
View