为新WooCommerce订单发送Telegram通知

初级

这是一个Sales、Building Blocks领域的自动化工作流,包含 3 个节点。主要使用 Telegram、WooCommerceTrigger 等节点。 为新WooCommerce订单发送Telegram通知

前置要求
  • Telegram Bot Token
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "370f0437fbf8d71caf7e9230e115239afcf5012c55ac368aa9dee29869df4a6b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "31722179-ef48-4a85-9a0c-ffc824e59493",
      "name": "WooCommerce 触发器",
      "type": "n8n-nodes-base.wooCommerceTrigger",
      "position": [
        -120,
        -20
      ],
      "webhookId": "6fc419e7-2af4-44e0-af83-b4f0a408138b",
      "parameters": {
        "event": "order.created"
      },
      "credentials": {
        "wooCommerceApi": {
          "id": "7FzoXyPl8TAUChEg",
          "name": "WooCommerce account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6564d1a2-87b0-4ffb-bc60-54256a85058f",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        100,
        -20
      ],
      "webhookId": "7ff0563d-eb68-4e68-a32a-54bdeab7c7ed",
      "parameters": {
        "text": "=🛒 New Order Received!\n\n🆔 Order #: {{$json.id}}  \n💰 Total: {{$json.total}} USD  \n📅 Date: {{$json.date_created}}  \n🔖 Status: {{$json.status}}  \n\n🛍️ Products:\n{{ $json.line_items.map(item => `- ${item.name} × ${item.quantity} = ${item.total} USD`).join('\\n') }}\n\n👁️‍🗨️ Click the button below to view this order.",
        "chatId": "8025476048",
        "replyMarkup": "inlineKeyboard",
        "inlineKeyboard": {
          "rows": [
            {
              "row": {
                "buttons": [
                  {
                    "text": "🔗 View Order",
                    "additionalFields": {
                      "web_app": {
                        "url": "={{ $json.payment_url }}"
                      }
                    }
                  }
                ]
              }
            }
          ]
        },
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "QCMzalgAAwQJ4qi4",
          "name": "n8nlearncombot"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b5e0a35b-f794-4f0a-b76e-f63ac8eddc7b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -360
      ],
      "parameters": {
        "width": 680,
        "height": 560,
        "content": "## 🛠 设置说明"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "WooCommerce Trigger": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

这是一个初级难度的工作流,适用于Sales、Building Blocks等场景。适合 n8n 新手,包含 1-5 个节点的简单工作流

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
初级
节点数量3
分类2
节点类型3
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
外部链接
在 n8n.io 上查看 →

分享此工作流