很多同学问我:“Lemon,我出单了是好事,但经常忙着忙着就卖断货了,等补货回来广告权重全没了,怎么办?”
接下来我教你一套系统自动跑的工作流,让你的 Shopify 像机器人一样,库存少了自动喊你补货。
下面我测试的是当某个 SKU 库存低于 10 时,自动给供应商或者是卖家发送邮件通知补货,避免库存为0的情况下用户无法下单购买从而错失订单。
此外低库存情况下我还多加了一道转化流程:当客户看到“仅剩 10 件”时,会让他们有紧迫感,如果对产品感兴趣的客户会尽快下单。
一、安装shopify flow插件

二、复制工作流并且上传
2.1 电脑创建一个txt文本

2.2 复制下面代码到txt文本里面
注意代码里面的851806490@qq.com要改成你自己的邮箱。
6097d14aeaea1bb618ebc048e3ffa4fa027a2bc04eb26184d5d6d80c46727297:{"__metadata":{"version":0.1},"root":{"steps":[{"step_id":"be5ba7cc-0723-4eee-8f37-5f180f1fc6e2","step_position":[0,0],"config_field_values":[],"task_id":"shopify::admin::inventory_quantity_changed","task_version":"0.1","task_type":"TRIGGER","description":null,"note":null,"name":null},{"step_id":"828f5d13-dc25-451d-9d39-0ffeca1ae2ba","step_position":[0,220],"config_field_values":[{"config_field_id":"condition","value":"{\"uuid\":\"01KJ6R6VFZBBWDHZHC28PSBKQX\",\"lhs\":{\"uuid\":\"01KJ6R6VFZEJXXAXW4V6R1B6FT\",\"parent_uuid\":\"01KJ6R6VFZBBWDHZHC28PSBKQX\",\"lhs\":{\"uuid\":\"01KJ6R6VFZJTBK2KBD3GW8VFHY\",\"parent_uuid\":\"01KJ6R6VFZEJXXAXW4V6R1B6FT\",\"value\":\"productVariant.inventoryQuantity\",\"comparison_value_type\":\"EnvironmentValue\",\"full_environment_path\":\"productVariant.inventoryQuantity\"},\"rhs\":{\"uuid\":\"01KJ6R6VFZBT8NSCKFW4WR0KFR\",\"parent_uuid\":\"01KJ6R6VFZEJXXAXW4V6R1B6FT\",\"value\":\"10.0\",\"comparison_value_type\":\"LiteralValue\"},\"value_type\":\"EnvironmentScalarDefinition:Int\",\"operator\":\"<\",\"operation_type\":\"Comparison\"},\"operator\":\"AND\",\"operation_type\":\"LogicalExpression\"}"}],"task_id":"shopify::flow::condition","task_version":"0.1","task_type":"CONDITION","description":null,"note":null,"name":null},{"step_id":"92e1885c-075b-46fb-8d8f-d0dc6774efa3","step_position":[0,400],"config_field_values":[{"config_field_id":"product_id","value":"{\"value\": \"{{ product.id }}\", \"default_value\": \"\"}"},{"config_field_id":"tags","value":"[\"Low Stock\"]"}],"task_id":"shopify::admin::add_product_tags","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"4536088a-01e9-4965-b7f6-a9e92a37e50f","step_position":[0,540],"config_field_values":[{"config_field_id":"address","value":"851806490@qq.com"},{"config_field_id":"subject","value":"补货提醒 - {{ productVariant.displayName }} (SKU: {{ productVariant.sku }})"},{"config_field_id":"message","value":"您好,\n\n以下产品库存已低于预设阈值,需要补货:\n\n产品名称:{{ productVariant.displayName }}\nSKU:{{ productVariant.sku }}\n当前库存:{{ productVariant.inventoryQuantity }} 件\n\n请尽快安排补货。\n\n查看产品详情:https://{{ shop.myshopifyDomain }}/admin/products/{{ product.legacyResourceId }}\n\n此邮件由 {{ shop.name }} 自动发送。"}],"task_id":"shopify::flow::send_email","task_version":"2.0","task_type":"ACTION","description":null,"note":null,"name":null}],"links":[{"from_step_id":"be5ba7cc-0723-4eee-8f37-5f180f1fc6e2","from_port_id":"output","to_step_id":"828f5d13-dc25-451d-9d39-0ffeca1ae2ba","to_port_id":"input"},{"from_step_id":"828f5d13-dc25-451d-9d39-0ffeca1ae2ba","from_port_id":"true","to_step_id":"92e1885c-075b-46fb-8d8f-d0dc6774efa3","to_port_id":"input"},{"from_step_id":"92e1885c-075b-46fb-8d8f-d0dc6774efa3","from_port_id":"output","to_step_id":"4536088a-01e9-4965-b7f6-a9e92a37e50f","to_port_id":"input"}],"patched_fields":[],"variables":[],"note":null,"vertical_layout_enabled":true,"workflow_name":"Low stock alert and tag products"}}2.3 把txt文本改成.flow格式

2.4 上传flow格式的文件到webflow

三、增加转化率的小技巧
进入shopify的模板产品页面,加入custom liquid,把下面代码加入进去
下面代码主要可以识别低库存的产品,如果产品库存低于10,就会显示“Only 9 left – Order soon!”,从而让客户产生紧迫感,如果对你的产品很感兴趣的客户会冲动下单。
{%- liquid
assign threshold = 10
assign current_variant = product.selected_or_first_available_variant
-%}
{%- if current_variant.inventory_management == 'shopify' and current_variant.inventory_quantity > 0 and current_variant.inventory_quantity <= threshold -%}
<div class="low-stock-badge">
<span class="pulse-icon"></span>
Only {{ current_variant.inventory_quantity }} left - Order soon!
</div>
<style>
.low-stock-badge {
display: inline-flex;
align-items: center;
background-color: #fff4f4;
color: #d0021b;
padding: 6px 12px;
border-radius: 4px;
font-size: 13px;
font-weight: 600;
border: 1px solid #ffb8b8;
margin: 10px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.pulse-icon {
height: 8px;
width: 8px;
background-color: #d0021b;
border-radius: 50%;
display: inline-block;
margin-right: 8px;
position: relative;
}
.pulse-icon::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background-color: #d0021b;
border-radius: 50%;
animation: pulse 1.5s infinite;
opacity: 0.5;
}
@keyframes pulse {
0% { transform: scale(1); opacity: 0.5; }
100% { transform: scale(2.5); opacity: 0; }
}
</style>
{%- endif -%}
四、自动流成功跑通
当有客户下单之后,如果你某个产品库存低于10,自动就会发送补库存邮件。


常见问题
Shopify Flow 是所有套餐都能用吗?
答:是的,现在大部分 Shopify 套餐都可以免费使用 Flow 插件。
设置低库存标签会影响 SEO 吗?
答:不会,反而能增加页面活跃度和点击率。只要 Alt 标签和元数据正常,SEO 反而会变好。
为什么你非得搞“库存自动化”?
防止广告权重降低: 爆款断货会导致 Google 抓取权重和广告计划直接熄火,重启成本极高。
减少人工盯盘成本”: 你不该每天盯着后台对库存,这些琐事交给系统,你该去研究怎么引流。