新しいWooCommerce注文のTelegram通知
中級
これはSales分野の自動化ワークフローで、6個のノードを含みます。主にIf, Code, Webhook, Telegramなどのノードを使用。 📦 新しいWooCommerce注文のTelegram通知を送信
前提条件
- •HTTP Webhookエンドポイント(n8nが自動生成)
- •Telegram Bot Token
使用ノード (6)
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "JMfwq2Xn60pWz2Hy",
"meta": {
"instanceId": "2e75c9fb3cdcf631da470c0180f0739986baa0ee860de53281e9edc3491b82a3",
"templateCredsSetupCompleted": true
},
"name": "Send Telegram Alerts for New WooCommerce Orders",
"tags": [],
"nodes": [
{
"id": "bc66fcc7-55d4-46b3-929a-6e4359733601",
"name": "注文ステータスが「処理中」か確認",
"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": "メッセージテンプレートの設計",
"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 `🔹 ${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🆔 <b>Order ID:</b> ${$json.body.id}\n\n👦🏻 <b>Customer Name:</b> ${$json.body.billing.first_name} ${$json.body.billing.last_name}\n\n💵 <b>Amount:</b> ${totalAmount}\n\n📅 <b>Order Date:</b>\n➖ ${formattedDate}\n\n🏙 <b>City:</b> ${$json.body.billing.city}\n\n📞 <b>Phone:</b> ${$json.body.billing.phone}\n\n✍🏻 <b>Order Note:</b>\n${$json.body.customer_note || 'No notes'}\n\n📦 <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": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1120,
540
],
"parameters": {
"color": 3,
"width": 1035.4009739750634,
"height": 868.2813781621796,
"content": "## ⚙️ Setup Instructions\n\n### 1. 🛒 **Configure WooCommerce Webhook**\n- Navigate to **WooCommerce ➡️ Settings ➡️ Advanced ➡️ Webhooks** in your WordPress dashboard.\n- Click on ➕ **Add Webhook**.\n- Set the **Status** to **Active**.\n- Choose **Topic**: **Order updated**.\n- Paste the **Webhook URL** from the 🔗 Webhook node in this workflow into the **Delivery URL** field.\n- Click 💾 **Save Webhook**.\n\n### 2. 🤖 **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. 🔑 **Set Up Telegram Credentials in n8n**\n- In **n8n**, go to **Credentials**.\n- Click ➕ **Create** and select **Telegram Bot**.\n- Paste the **API Token** you copied earlier.\n- **Save** the credentials.\n\n### 4. ✏️ **Configure the Telegram Node**\n- Open the 📨 **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. 🚀 **Activate and Test the Workflow**\n- Ensure the workflow is 🟢 **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## 💡 Notes\n- **Customize the message format** in the 🖋️ **Design Message Template** node to include additional order details if needed.\n"
},
"typeVersion": 1
},
{
"id": "5555e7ff-46d9-4b91-a42c-4d83fc9b5edb",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1120,
300
],
"parameters": {
"color": 5,
"width": 1040.2541837971148,
"height": 216.11554963705538,
"content": "## 📦 Send Telegram Alerts for New WooCommerce Orders\n\n📝 **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": "WooCommerce 注文を受信",
"type": "n8n-nodes-base.webhook",
"position": [
20,
760
],
"webhookId": "9aeff297-db6b-4c69-93bf-21b194ef115c",
"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,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "f1a12e0e-e2a2-4eea-b7a6-cc4c7439bef9",
"connections": {
"99ecb702-0264-4aeb-8b15-4383b97bc5ee": {
"main": [
[
{
"node": "5605e14d-a125-41c1-b7e8-cc1feeb6a1e1",
"type": "main",
"index": 0
}
]
]
},
"acde9b85-4ae7-462f-91c0-13a4209fb013": {
"main": [
[
{
"node": "bc66fcc7-55d4-46b3-929a-6e4359733601",
"type": "main",
"index": 0
}
]
]
},
"bc66fcc7-55d4-46b3-929a-6e4359733601": {
"main": [
[
{
"node": "99ecb702-0264-4aeb-8b15-4383b97bc5ee",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 営業
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
AI不動産エージェント:エンドツーエンド運用自動化(Web、データ、音声)
AI不動産エージェント:エンドツーエンド運用自動化(Web、データ、音声)
If
Set
Code
+
If
Set
Code
45 ノードSam Yassine
営業
Salesforce のチケットを自動のに新規にGeotabセクションを作成
Salesforceの新しいチケットに自動のにGeotabエリアを作成
If
Set
Code
+
If
Set
Code
22 ノードSobek
営業
太陽エネルギー潜在顧客の資格審査
Google SheetsとGmailを使ってソーラー potentialsの資格審査とフォローアップを自動化する
If
Code
Gmail
+
If
Code
Gmail
17 ノードDavid Olusola
営業
TG-Bot-Module-Quiz-v4-db-sell-full
Telegram経由でPostgresで自動テストと応答の収集("クイズ"モジュール)
If
Set
Code
+
If
Set
Code
36 ノードAndrew
営業
BatchData を使用したリードキャプチャ審査
BatchDataを使用した自動不動産リードスコアリング
If
Code
Slack
+
If
Code
Slack
17 ノードPreston Zeller
営業
Shopify 注文を Google Sheets に保存して Telegram 通知を送信する
Shopify 注文を自動のに Google スプレッドシートに保存し、Telegram 通知を送信する
If
Set
Webhook
+
If
Set
Webhook
9 ノードRedOne
営業
ワークフロー情報
難易度
中級
ノード数6
カテゴリー1
ノードタイプ5
作成者
AmirHossein
@amir676080Hi ! I'm Amirhossein Mansouri Zade, a student with 4 years of experience in SEO and search engine optimization. Currently, I'm focused on solving various problems and challenges. I’m gradually transitioning into the product field and enjoy building the tools I need using N8N. I'll be sharing my workflows and experiences here along the way. 🚀
外部リンク
n8n.ioで表示 →
このワークフローを共有