为新WooCommerce订单发送Telegram通知
初级
这是一个Sales、Building Blocks领域的自动化工作流,包含 3 个节点。主要使用 Telegram、WooCommerceTrigger 等节点。 为新WooCommerce订单发送Telegram通知
前置要求
- •Telegram Bot Token
使用的节点 (3 个)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 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)可能需要您自行付费。
相关工作流推荐
TG-机器人模块-跨平台发布-v1-数据库-销售完整版
使用Postgres自动化Telegram频道帖子("跨平台发布"模块)
If
Set
Switch
+5
47 节点Andrew
Sales
TG-Bot-Module-Quiz-v4-db-sell-full
通过Telegram在Postgres中自动化测试和收集响应("测验"模块)
If
Set
Code
+9
36 节点Andrew
Sales
使用 Icypeas 批量验证 Google Sheet 中的电子邮件
使用 Icypeas 批量验证 Google Sheet 中的电子邮件
Code
Http Request
Google Sheets
+2
8 节点Corentin Ribeyre
Sales
构建首个WhatsApp聊天机器人
构建首个WhatsApp聊天机器人
Switch
Whats App
Http Request
+12
28 节点Jimleuk
Sales
WA-机器人-模块-问卷-v1-数据库-销售-完整版
在Postgres中收集WhatsApp问卷回复("Anketa"模块)
If
Set
Switch
+4
32 节点Andrew
Sales
电子商务联系表单文本分类器
模块化可定制AI邮件路由:电子商务文本分类器
Email Send
Form Trigger
Google Sheets
+3
14 节点Davide
Sales