Shopify VIP告警:大订单的AI摘要和Slack通知
中级
这是一个Sales、AI、Marketing领域的自动化工作流,包含 13 个节点。主要使用 If、Set、Slack、HttpRequest、ShopifyTrigger 等节点,结合人工智能技术实现智能自动化。 Shopify VIP告警:大订单的AI摘要和Slack通知
前置要求
- •Slack Bot Token 或 Webhook URL
- •可能需要目标 API 的认证凭证
- •Shopify Admin API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "5aaf4236c70e34e423fbdb2c7b754d19253a933bb1476d548f75848a01e473cf"
},
"nodes": [
{
"id": "ac23a49a-4fc6-468a-ba0f-c520a4feb396",
"name": "无操作,不执行任何操作",
"type": "n8n-nodes-base.noOp",
"position": [
40,
1540
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f3c6e47e-6784-47d8-a7a7-30f4c11e9ff3",
"name": "新 Shopify 订单",
"type": "n8n-nodes-base.shopifyTrigger",
"position": [
-720,
1260
],
"webhookId": "2969c4e3-fcbb-45d7-b783-256b55cf8088",
"parameters": {
"topic": "orders/create",
"authentication": "accessToken"
},
"typeVersion": 1
},
{
"id": "a694a77c-a1eb-4053-bc69-4f7048a1abbc",
"name": "条件判断",
"type": "n8n-nodes-base.if",
"position": [
-280,
1260
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "c2b8d86f-a356-4ea4-b516-56abfeb2570f",
"operator": {
"type": "number",
"operation": "gt"
},
"leftValue": "={{ $json.total_price }}",
"rightValue": 200
}
]
}
},
"typeVersion": 2.2
},
{
"id": "1a22c0cd-d1b1-45a7-8fc6-78ef21edb762",
"name": "获取客户订单历史",
"type": "n8n-nodes-base.httpRequest",
"position": [
40,
1100
],
"parameters": {
"url": "=https://your-store.myshopify.com/admin/api/2023-07/orders.json?customer_id={{ $('New Shopify Order').item.json.id }}",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "X-Shopify-Access-Token",
"value": "shpat_abc123xyz..."
}
]
}
},
"typeVersion": 4.2
},
{
"id": "cfbfb38c-53b9-4c25-8eda-2090c4ef0738",
"name": "类型转换(数组转字符串)",
"type": "n8n-nodes-base.set",
"position": [
260,
1100
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "3f2f5ff0-4bf6-4f2e-aecf-6de16ec91cf4",
"name": "orders",
"type": "string",
"value": "={{ $json.orders }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "79f49ac3-b559-48e8-826b-ee7ae58dbe5f",
"name": "类型转换(字符串转数字)",
"type": "n8n-nodes-base.set",
"position": [
-500,
1260
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "9c3375fe-5ad9-46df-b892-f1e6696d1b0e",
"name": "total_price",
"type": "number",
"value": "={{ $json.total_price }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b69c46f9-67dd-4eec-a94e-72cc9a03ebbf",
"name": "汇总订单历史",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
520,
1100
],
"parameters": {
"text": "=Summarize the customer's order history for Slack. Here is their order data:\n{{ $json.orders }}",
"options": {
"systemMessage": "You are a helpful assistant"
},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "f4812abe-d29d-4fc6-b9ea-705437c90d82",
"name": "发送 Slack 警报",
"type": "n8n-nodes-base.slack",
"position": [
880,
1100
],
"webhookId": "577b78c7-df10-46f6-9025-8c5e64c332fe",
"parameters": {
"text": "=🚨 High-Value Order Alert! \nCustomer: {{ $('New Shopify Order').item.json.billing_address.first_name }} {{ $('New Shopify Order').item.json.billing_address.last_name }}\nOrder Total: ${{ $('New Shopify Order').item.json.total_price }} \nCustomer Order history Summary: {{ $json.output }}",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C08TTV0CC3E",
"cachedResultName": "all-nathing"
},
"otherOptions": {
"includeLinkToWorkflow": false
}
},
"typeVersion": 2.3
},
{
"id": "aa297625-1574-4105-a480-ace06e258cc3",
"name": "忽略低价值订单",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
460,
1300
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"typeVersion": 1.2
},
{
"id": "2ef2e96b-b299-43d6-92b1-65206d1a53b6",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2540,
1340
],
"parameters": {
"color": 4,
"width": 1289,
"height": 2238,
"content": "# 🔔 高价值订单警报工作流"
},
"typeVersion": 1
},
{
"id": "b97d2bcb-56da-4973-8c51-f71f199bf67c",
"name": "便签 9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2540,
1000
],
"parameters": {
"color": 4,
"width": 1300,
"height": 320,
"content": "======================================="
},
"typeVersion": 1
},
{
"id": "3f072968-adae-412e-aad3-0244555e9732",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-760,
500
],
"parameters": {
"width": 420,
"height": 940,
"content": "🟢 Shopify 订单触发器与预处理"
},
"typeVersion": 1
},
{
"id": "8a494e6b-b7d8-473d-aca9-959ad758c769",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"color": 5,
"width": 1060,
"height": 1440,
"content": "🧠 通过 AI 获取客户洞察"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"If": {
"main": [
[
{
"node": "Fetch Customer Order History",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"New Shopify Order": {
"main": [
[
{
"node": "Type conversion (String to Number)",
"type": "main",
"index": 0
}
]
]
},
"Ignore Low-Value Order": {
"ai_languageModel": [
[
{
"node": "Summarize Order History",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Summarize Order History": {
"main": [
[
{
"node": "Send Slack Alert",
"type": "main",
"index": 0
}
]
]
},
"Fetch Customer Order History": {
"main": [
[
{
"node": "Type conversion (Array to String)",
"type": "main",
"index": 0
}
]
]
},
"Type conversion (Array to String)": {
"main": [
[
{
"node": "Summarize Order History",
"type": "main",
"index": 0
}
]
]
},
"Type conversion (String to Number)": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于Sales、AI、Marketing等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI YouTube分析助手:评论分析与洞察报告
AI YouTube分析助手:评论分析器与洞察报告生成器
If
Set
Code
+9
19 节点Yaron Been
AI
使用 OpenAI、Google Sheets、Jina AI 和 Slack 的 AI 驱动信息监控
基于AI的信息监控,集成OpenAI、Google Sheets、Jina AI和Slack
If
Set
Code
+10
31 节点Dataki
Sales
智能 Shopify 代理:AI 驱动的弃购车挽回
智能 Shopify 代理:AI 驱动的弃购车挽回系统
If
Wait
Gmail
+7
16 节点Yaron Been
Sales
[模板] AI宠物店 v8
🐶 AI宠物店助手 - 集成GPT-4o、Google日历和WhatsApp/Instagram/Facebook
If
N8n
Set
+38
244 节点Amanda Benks
Sales
使用Bright Data和LLMs自动化大规模超个性化外联
通过Bright Data和大语言模型实现大规模超个性化外联自动化
If
Set
Wait
+8
21 节点Yaron Been
Sales
使用 Bright Data 和 GPT 抓取 Glassdoor 发现高意向销售线索
通过 Bright Data 和 GPT 抓取 Glassdoor 发现高意向销售线索
If
Wait
Split Out
+6
16 节点Yaron Been
Sales
工作流信息
难度等级
中级
节点数量13
分类3
节点类型9
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host
外部链接
在 n8n.io 上查看 →
分享此工作流