The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide β
{
"id": "2575",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Notify on Telegram When a New Order is Created in WooCommerce \ud83d\udce6 ",
"tags": [],
"nodes": [
{
"id": "bc66fcc7-55d4-46b3-929a-6e4359733601",
"name": "Check if Order Status is Processing",
"type": "n8n-nodes-base.if",
"position": [
260,
760
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "0509abb0-c655-49de-8f2c-c4649b478983",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.body.status }}",
"rightValue": "processing"
}
]
}
},
"typeVersion": 2
},
{
"id": "99ecb702-0264-4aeb-8b15-4383b97bc5ee",
"name": "Design Message Template",
"type": "n8n-nodes-base.code",
"position": [
500,
740
],
"parameters": {
"jsCode": "// Data extraction and processing for order details\nconst lineItems = $json.body.line_items;\n\n// Getting the total amount directly from WooCommerce\nconst totalAmount = parseInt($json.body.total).toLocaleString();\n\n// Constructing the product message in the desired format\nconst filteredItems = lineItems.map(item => {\n const name = item.name;\n const quantity = item.quantity;\n return `\ud83d\udd39 ${name}<b> (${quantity} items)</b>`;\n}).join('\\n'); // Separating each product with a new line\n\n// Getting the order creation date and time\nlet dateCreated = new Date($json.body.date_created_gmt || new Date());\n\n// Directly using the server's local time (no timezone conversion)\nlet formattedDate = dateCreated.toLocaleString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n hour12: false\n});\n\n// Constructing other parts of the message in an organized manner\nconst orderInfo = `\n\n\ud83c\udd94 <b>Order ID:</b> ${$json.body.id}\n\n\ud83d\udc66\ud83c\udffb <b>Customer Name:</b> ${$json.body.billing.first_name} ${$json.body.billing.last_name}\n\n\ud83d\udcb5 <b>Amount:</b> ${totalAmount}\n\n\ud83d\udcc5 <b>Order Date:</b>\n\u2796 ${formattedDate}\n\n\ud83c\udfd9 <b>City:</b> ${$json.body.billing.city}\n\n\ud83d\udcde <b>Phone:</b> ${$json.body.billing.phone}\n\n\u270d\ud83c\udffb <b>Order Note:</b>\n${$json.body.customer_note || 'No notes'}\n\n\ud83d\udce6 <b>Ordered Products:</b>\n\n${filteredItems}\n`;\n\n// Returning the final message\nreturn {\n orderMessage: orderInfo.trim() // Remove extra spaces from the beginning and end of the message\n};"
},
"typeVersion": 2
},
{
"id": "c2c49759-5309-42bc-872d-7b34faf34f62",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1120,
540
],
"parameters": {
"color": 3,
"width": 1035.4009739750634,
"height": 868.2813781621796,
"content": "## \u2699\ufe0f Setup Instructions\n\n### 1. \ud83d\uded2 **Configure WooCommerce Webhook**\n- Navigate to **WooCommerce \u27a1\ufe0f Settings \u27a1\ufe0f Advanced \u27a1\ufe0f Webhooks** in your WordPress dashboard.\n- Click on \u2795 **Add Webhook**.\n- Set the **Status** to **Active**.\n- Choose **Topic**: **Order updated**.\n- Paste the **Webhook URL** from the \ud83d\udd17 Webhook node in this workflow into the **Delivery URL** field.\n- Click \ud83d\udcbe **Save Webhook**.\n\n### 2. \ud83e\udd16 **Create a Telegram Bot**\n- Open **Telegram** and start a chat with **@BotFather**.\n- Send the command **/newbot** and follow the instructions to create your bot.\n- Copy the **API Token** provided by **BotFather**.\n\n### 3. \ud83d\udd11 **Set Up Telegram Credentials in n8n**\n- In **n8n**, go to **Credentials**.\n- Click \u2795 **Create** and select **Telegram Bot**.\n- Paste the **API Token** you copied earlier.\n- **Save** the credentials.\n\n### 4. \u270f\ufe0f **Configure the Telegram Node**\n- Open the \ud83d\udce8 **Send Order Notification to Telegram** node.\n- Select your **Telegram credentials**.\n- Enter your **Chat ID** where you want to receive notifications. \n **Tip**: Use **@userinfobot** in Telegram to find your **Chat ID**.\n\n### 5. \ud83d\ude80 **Activate and Test the Workflow**\n- Ensure the workflow is \ud83d\udfe2 **Active**.\n- Place a new order in your **WooCommerce store**.\n- Update the order status to **\"Processing\"**.\n- You should receive a **Telegram notification** with the **order details**!\n\n## \ud83d\udca1 Notes\n- **Customize the message format** in the \ud83d\udd8b\ufe0f **Design Message Template** node to include additional order details if needed.\n"
},
"typeVersion": 1
},
{
"id": "5555e7ff-46d9-4b91-a42c-4d83fc9b5edb",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1120,
300
],
"parameters": {
"color": 5,
"width": 1040.2541837971148,
"height": 216.11554963705538,
"content": "## \ud83d\udce6 Send Telegram Alerts for New WooCommerce Orders\n\n\ud83d\udcdd **Description** \nThis workflow automatically sends a **Telegram notification** whenever a **WooCommerce order** status is updated to \"Processing\". It's perfect for **online store owners** who want instant updates when orders are ready to be fulfilled.\n"
},
"typeVersion": 1
},
{
"id": "acde9b85-4ae7-462f-91c0-13a4209fb013",
"name": "Receive WooCommerce Order",
"type": "n8n-nodes-base.webhook",
"position": [
20,
760
],
"parameters": {
"path": "9aeff297-db6b-4c69-93bf-21b194ef115c",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2
},
{
"id": "5605e14d-a125-41c1-b7e8-cc1feeb6a1e1",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
720,
740
],
"parameters": {
"text": "{{ $json.orderMessage }}",
"chatId": "<Your-Chat-ID>",
"additionalFields": {
"parse_mode": "HTML",
"appendAttribution": true
}
},
"typeVersion": 1.2
}
],
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "f1a12e0e-e2a2-4eea-b7a6-cc4c7439bef9",
"connections": {
"Design Message Template": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Receive WooCommerce Order": {
"main": [
[
{
"node": "Check if Order Status is Processing",
"type": "main",
"index": 0
}
]
]
},
"Check if Order Status is Processing": {
"main": [
[
{
"node": "Design Message Template",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Notify on Telegram When a New Order is Created in WooCommerce π¦. Uses telegram. Webhook trigger; 6 nodes.
Source: https://github.com/tommyshum/n8n_template_library/blob/87d0b7db31db00fcf781424ca7d9e86f1c9a9e1b/templates/official/template_2575/workflow.json β original creator credit. Request a take-down β
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow is designed for e-commerce store owners, operations managers, and developers who use Shopify as their e-commerce platform and want an automated way to track and analyze their order data.
Shopify Order Data to Airtable
This workflow provides a robust, end-to-end automated pipeline for managing e-commerce orders. It bridges the gap between your storefront and your fulfillment team by handling inventory validation, mu
This n8n workflow helps Shopify store owners and teams automatically confirm orders via WhatsApp. It checks if the customer's number is valid using Rapiwa API, sends a personalized message, and logs e
What Problem Does It Solve? Keeping product data consistent between Shopify and Odoo is a major operational challenge. Manually creating new products in Odoo every time they are added to Shopify is sl