← 返回
AI智能 Key 中文

Shopify Order Management

Shopify order lifecycle management with new order handling, status sync, low-stock alerts, abandoned cart recovery, and daily sales reports. 5 production-rea...
Shopify订单全生命周期管理,包含新订单处理、状态同步、低库存提醒、购物车挽回及每日销售报表。
mhmalvi
AI智能 clawhub v1.0.2 1 版本 99910.8 Key: 需要
★ 0
Stars
📥 1,120
下载
💾 47
安装
1
版本
#latest

概述

Shopify Order Management

Complete Shopify order lifecycle management built on n8n. Handles new orders, status sync, inventory alerts, abandoned cart recovery, and daily sales reporting.

Problem

Shopify's built-in tools are limited for operations management. Order status changes aren't logged centrally, low-stock alerts arrive too late, abandoned cart emails are basic, and daily sales data requires logging into the admin dashboard.

This system automates the full order lifecycle with real-time tracking and proactive alerts.

What It Does

  1. New Order Handling — Webhook captures new orders, logs to Google Sheets, emails admin
  2. Order Status Sync — Periodically syncs fulfillment/payment status from Shopify to Sheets
  3. Low Stock Alerts — Checks inventory every 6 hours, alerts on items below threshold
  4. Abandoned Cart Recovery — Sends recovery emails to customers who abandoned checkout
  5. Daily Sales Reports — Revenue, order count, AOV, fulfillment stats, and top products

Included Workflows

#FilePurpose
------------------
0101-new-order-handler.jsonWebhook → parse order → log to Sheets → notify admin
0202-order-status-sync.jsonScheduled → check pending orders → sync from Shopify API
0303-low-stock-alert.jsonScheduled → inventory check → alert on low stock
0404-abandoned-cart-recovery.jsonScheduled → fetch abandoned carts → recovery email
0505-daily-sales-report.jsonDaily → fetch orders → metrics → report email

Architecture

Shopify Webhook (orders/create)
    |
    v
Workflow 01: New Order Handler
    +-> Parse order data
    +-> Log to Google Sheets (Orders tab)
    +-> Email notification to admin

Scheduled (every 2 hours):
    |
    v
Workflow 02: Order Status Sync
    +-> Read unfulfilled orders from Sheets
    +-> Fetch current status from Shopify API
    +-> Update Sheets with latest status

Scheduled (every 6 hours):
    |
    v
Workflow 03: Low Stock Alert
    +-> Fetch all products from Shopify
    +-> Check inventory vs threshold
    +-> IF low stock -> email alert

Scheduled (every 3 hours):
    |
    v
Workflow 04: Abandoned Cart Recovery
    +-> Fetch open checkouts from Shopify
    +-> Filter: abandoned 1-24 hours ago
    +-> Send recovery email with cart link

Daily:
    |
    v
Workflow 05: Daily Sales Report
    +-> Fetch last 24h orders
    +-> Calculate revenue, AOV, fulfillment stats
    +-> Top products by quantity
    +-> Email formatted report

Required n8n Credentials

Credential TypeUsed ForPlaceholder in JSON
-----------------------------------------------
Google Sheets OAuth2Order tracking and loggingYOUR_GOOGLE_SHEETS_CREDENTIAL_ID
SMTPNotifications, recovery emails, reportsYOUR_SMTP_CREDENTIAL_ID

Environment Variables

# Shopify (required)
SHOPIFY_STORE_URL=https://your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxx
SHOPIFY_WEBHOOK_SECRET=your-webhook-secret

# Google Sheets
SHOPIFY_ORDERS_SHEET_ID=your-sheet-id

# Alerts
SHOPIFY_ADMIN_EMAIL=admin@yourstore.com
LOW_STOCK_THRESHOLD=5

Configuration Placeholders

PlaceholderDescription
--------------------------
YOUR_SHOPIFY_ORDERS_SHEET_IDGoogle Sheet ID for order tracking
YOUR_GOOGLE_SHEETS_CREDENTIAL_IDn8n Google Sheets credential ID
YOUR_SMTP_CREDENTIAL_IDn8n SMTP credential ID
YOUR_NOTIFICATION_EMAILAdmin email for reports and alerts

Google Sheets Schema (Orders)

ColumnTypeDescription
---------------------------
order_idtextShopify order ID (primary key)
order_numbertextHuman-readable order number
customer_nametextCustomer full name
customer_emailtextCustomer email
customer_phonetextCustomer phone
total_pricenumberOrder total
currencytextCurrency code (USD, EUR, etc.)
financial_statustextpending / paid / refunded
fulfillment_statustextunfulfilled / fulfilled / delivered
items_countnumberNumber of line items
items_summarytextItem names and quantities
shipping_addresstextShipping address summary
created_atdatetimeOrder creation timestamp
synced_atdatetimeLast sync timestamp

Quick Start

1. Prerequisites

  • n8n v2.4+ (self-hosted)
  • Shopify store with Admin API access (custom app)
  • Google Sheets OAuth2 credentials
  • SMTP email credentials

2. Create Shopify Custom App

In Shopify Admin > Settings > Apps > Develop apps > Create app. Grant scopes: read_orders, read_products, read_checkouts.

3. Create Orders Sheet

Create a Google Sheet with the columns above. Name the tab "Orders".

4. Configure Shopify Webhook

In Shopify Admin > Settings > Notifications > Webhooks, add orders/create pointing to your n8n webhook URL.

5. Import & Configure

Import all 5 JSON files into n8n. Replace YOUR_* placeholders and set environment variables.

Use Cases

  1. DTC brands — Order tracking, inventory alerts, and automated cart recovery
  2. Print-on-demand — Monitor fulfillment status across products
  3. Dropshippers — Track orders and low-stock from suppliers
  4. Subscription boxes — Daily sales and fulfillment monitoring
  5. Agency operators — Multi-store management with centralized reporting

Requirements

  • n8n v2.4+ (self-hosted recommended)
  • Shopify store with Admin API custom app
  • Google Sheets OAuth2 credentials
  • SMTP email credentials

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 21:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,847
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,694
data-analysis

Newsletter Automation

mhmalvi
完整的新闻通讯管理系统,支持订阅者注册(双重确认)、自动化欢迎邮件序列、群发发送器以及订阅者分析。
★ 0 📥 888