跳转到内容

Shopify 订单 → Notion + Slack

第 6 部分 · 案例 3.1 · 🛒 电商 SaaS

难度 🟢 简单 · 耗时 ~15 分钟 · 核心节点 Shopify Trigger × Notion × Slack

小型电商团队的入门标配:每来一个 Shopify 订单,自动在 Notion 数据库里建一条记录(用于发货跟踪、客服处理),同时在 Slack #orders 频道发通知让团队第一时间知道。

  • 新店:还没复杂 ERP,用 Notion 做订单跟踪表
  • 团队协作:每来新单 Slack 立刻通知,避免漏单
  • 数据备份:除了 Shopify 后台,再有一份独立 Notion 表
▦ workflow shopify-to-notion.workflow.json Lv.1
shopify-trigger.txt
Events: [orders/create] Credentials: Shopify Access Token n8n 会自动在你 Shopify 后台注册一个 webhook。

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(', ') }}
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
📋 shopify-to-notion.workflow.json