Community ยท n8n

Celebrate Every WooCommerce Sale Instantly in Your Discord Community

Automatically post a fun celebration message to your Discord channel every time a new WooCommerce order comes in. Keep your team or community hyped about every sale without lifting a finger.

difficulty Beginnersetup 30 minresult Every new WooCommerce order triggers a colorful Discord message celebrating the sale, including the order total and customer first name.โ€”
โ€”
  1. 1

    Catch a new WooCommerce order

    Add a WooCommerce Trigger node. Set the Event field to order.created. In the node credentials, enter your WooCommerce store URL, consumer key, and consumer secret. n8n will register a webhook on your store automatically.

  2. 2

    Extract the key order details

    Add a Set node connected to the trigger. Create three fields: orderTotal mapped to {{$json.total}}, customerName mapped to {{$json.billing.first_name}}, and orderId mapped to {{$json.id}}. These clean values will be used in the Discord message.

  3. 3

    Check the order status before celebrating

    Add an IF node connected to the Set node. Set the condition to check that {{$json.orderTotal}} is greater than 0. This prevents test or zero-value orders from triggering a celebration message in Discord.

  4. 4

    Post the celebration to Discord

    Add an HTTP Request node connected to the true branch of the IF node. Set Method to POST and paste your Discord channel webhook URL into the URL field. Set Body Content Type to JSON and use this body: {"content": "๐ŸŽ‰ New sale alert! Order #{{$json.orderId}} just came in from {{$json.customerName}} for ${{$json.orderTotal}}! Zendrop is on it โ€” let's gooo! ๐Ÿš€"}. Create a Discord webhook in your channel settings under Integrations.

  5. 5

    Verify the message was sent

    Run a test order on your WooCommerce store and watch your Discord channel. You should see the celebration message appear within seconds. Check the n8n execution log if nothing shows up โ€” common issues are an incorrect webhook URL or mismatched field names.

Frequently asked questions

Do I need to do anything special in Zendrop to make this work?

No. Zendrop handles fulfillment automatically in the background. This workflow celebrates the sale the moment WooCommerce records the order โ€” you do not need to connect Zendrop directly to n8n for this use case.

Can I customize the Discord message with emojis or more order details?

Yes. In the `HTTP Request` node body, you can add any fields from the WooCommerce order payload using n8n expressions like `{{$json.line_items[0].name}}` for the product name. Discord also supports bold text using **double asterisks** inside the message string.

What happens if a customer cancels the order after the celebration fires?

The current workflow only listens for `order.created` events, so cancellations will not trigger anything. If you want to handle cancellations, you can duplicate this workflow, set the trigger to `order.updated`, add an IF check for status equal to `cancelled`, and post a separate Discord message.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing โ€” how recipes get made. Some ingredient links are affiliate links that cost you nothing โ€” full disclosure.