Shopify 订单 → Notion + Slack
第 6 部分 · 案例 3.1 · 🛒 电商 SaaS
难度 🟢 简单 · 耗时 ~15 分钟 · 核心节点 Shopify Trigger × Notion × Slack
小型电商团队的入门标配:每来一个 Shopify 订单,自动在 Notion 数据库里建一条记录(用于发货跟踪、客服处理),同时在 Slack #orders 频道发通知让团队第一时间知道。
- 新店:还没复杂 ERP,用 Notion 做订单跟踪表
- 团队协作:每来新单 Slack 立刻通知,避免漏单
- 数据备份:除了 Shopify 后台,再有一份独立 Notion 表
🔍 工作流连线图
Section titled “🔍 工作流连线图” ▦ workflow shopify-to-notion.workflow.json Lv.1
📋 关键节点
Section titled “📋 关键节点”Shopify Trigger
Section titled “Shopify Trigger” ⚙ shopify-trigger.txt
Events: [orders/create]
Credentials: Shopify Access Token
n8n 会自动在你 Shopify 后台注册一个 webhook。
Reshape Order (Set 节点)
Section titled “Reshape Order (Set 节点)”Shopify webhook 数据很冗长,用 Set 抽出关键字段:
⚙ reshape.txt
order_id: ={{ $json.id }}
customer_email: ={{ $json.email }}
total: ={{ Number($json.total_price) }} ← 字符串转数字
items_summary: ={{ $json.line_items.map(i => i.quantity + 'x ' + i.name).join(', ') }}
Create Notion Page
Section titled “Create Notion Page” ⚙ notion-create.txt
Database: <你的 Notion Orders DB>
Properties:
Order (title): =#{{ $json.order_id }}
Email (email): ={{ $json.customer_email }}
Total (number): ={{ $json.total }}
Items (text): ={{ $json.items_summary }}
Status (select): Pending
📥 一键复制 Workflow JSON
Section titled “📥 一键复制 Workflow JSON” 📋 shopify-to-notion.workflow.json