Track inventory levels with automated alerts — n8n 工作流
概览
Receive inventory movements via webhook, validate data, update stock levels, and trigger automatic alerts when products need reordering.
WHAT IT DOES:
Accepts inventory movements (sales, purchases, adjustments, transfers) via webhook Validates required fields including product ID, quantity, and movement type Records each movement via REST API Retrieves current stock levels after each movement Compares stock against configurable reorder points Routes alerts by severity through Slack and email L
使用的节点
HTTP RequestSlackGmailCode
工作流预览
⚡
W
Webhook - Inventory Move…
Validate Movement
I
IF - Valid Movement
Format Validation Error
⚡
R
Respond - Validation Error
Prepare API Body
API - Record Movement
API - Get Current Stock
Check Stock Levels
A
Alert Router
Format Critical Alert
Slack - Critical Alert
Email - Critical Alert
Format Urgent Alert
Slack - Urgent Alert
Format Warning Alert
Slack - Warning Alert
N
No Alert Needed
Prepare Audit Entry
API - Log Audit Trail
Format Success Response
⚡
R
Respond - Success
⚡
E
Error Trigger
Format Error
Slack - Error Alert
25 nodes26 edges
工作原理
- 1
触发器
工作流由 webhook 触发器启动。
- 2
处理
数据流经 25 个节点, connecting code, errortrigger, gmail。
- 3
输出
工作流完成自动化并将结果发送到配置的目标。
节点详情 (25)
HT#1
HTTP Request
httpRequest
SL#2
Slack
slack
GM#3
Gmail
gmail
CO#4
Code
code
如何导入此工作流
- 1点击右侧 下载 JSON 按钮保存工作流文件。
- 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入。
- 3选择下载的
track-inventory-levels-with-automated-alerts文件并点击导入。 - 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
- 5点击 测试工作流 验证一切正常,然后激活它。
或直接在 n8n → 从 JSON 导入 中粘贴:
{ "name": "Track inventory levels with automated alerts", "nodes": [...], ...}
集成
codeerrortriggergmailhttprequestifrespondtowebhookslackswitchwebhook
创建者
Manu
@manu
标签
codeerrortriggergmailhttprequestifrespondtowebhookslackswitchwebhook