Magento 2 Low Stock Alert via Slack & Gmail (MSI Compatible) โ€” n8n ์›Œํฌํ”Œ๋กœ

๋ณดํ†ต ๋ณต์žก๋„โฐ ์˜ˆ์•ฝ9๊ฐœ์˜ ๋…ธ๋“œ๐Ÿท๏ธ Miscellaneous์ž‘์„ฑ์ž: Kanaka Kishore Kandregula

๊ฐœ์š”

Daily Magento 2 stock check Automation

It identifies SKUs with low inventory per source and sends daily alerts via:

๐Ÿ“ฌ Gmail (HTML email) ๐Ÿ’ฌ Slack (formatted text message)

This automation empowers store owners and operations teams to stay ahead of inventory issues by proactively monitoring stock levels across all Magento 2 sources. By receiving early alerts for low-stock products, businesses can restock before items sell outโ€”ensuring continuous product availability, reducing missed sales opp

์‚ฌ์šฉ๋œ ๋…ธ๋“œ

HTTP RequestSlackGmailCode

์›Œํฌํ”Œ๋กœ ๋ฏธ๋ฆฌ๋ณด๊ธฐ

๐Ÿ“ฆ MAGENTO 2 STOCK ALERTS
Author: Kanaka Kishore Kandregula
WORKFLOW PURPOSE:
Automatically monitor Magento 2 (Adobe Commerce) invent
S
KEY FEATURES
โœ… MSI Support
โœ… Daily automated inventory checks
โœ… Customisable stock thresholds
โœ… Multiple SKU Reporting
โœ… Proactive restocking alerts
BUSINESS VALUE
๐Ÿšซ Prevent stockouts
๐Ÿ’ฐ Maintain sales revenue
๐Ÿ“Š Better inventory management
โฐ Proactive restocking
TIME TO BUILD: 20 minutes
WORK FLOW
1. Schedule Trigger (daily 8:50 AM check)
2. Magento 2 (get all products)
3. Code Node (filter low stock items)
4. If Node (check if any alerts needed)
5. Format alert mess
CONFIGURATION NOTES
- Adjust lowStockThreshold variable in Process Stock Da
- Modify daily schedule timing as needed
- You Bearer YOUR_TOKEN_HERE from Magento
- Slack & Gmail API de
Trigs Daily 8:50am
Magento Logic
Notifications
Checks & Message Formatting
โšก
D
Daily Inventory Check
C
Check if Alerts Needed
Send Inventory Alert
Get All Product Skus
Extract SKUs
Fetch MSI Stock Status
Process Stock Data and Iโ€ฆ
Send a message
Format Message
9 nodes8 edges

์ž‘๋™ ์›๋ฆฌ

  1. 1

    ํŠธ๋ฆฌ๊ฑฐ

    ์›Œํฌํ”Œ๋กœ๋Š” ์˜ˆ์•ฝ ํŠธ๋ฆฌ๊ฑฐ๋กœ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค, ์ •ํ•ด์ง„ ์ผ์ •์— ๋”ฐ๋ผ ์‹คํ–‰.

  2. 2

    ์ฒ˜๋ฆฌ

    ๋ฐ์ดํ„ฐ๊ฐ€ 9๊ฐœ์˜ ๋…ธ๋“œ๋ฅผ ํ†ตํ•ด ํ๋ฆ…๋‹ˆ๋‹ค, connecting code, gmail, httprequest.

  3. 3

    ์ถœ๋ ฅ

    ์›Œํฌํ”Œ๋กœ๊ฐ€ ์ž๋™ํ™”๋ฅผ ์™„๋ฃŒํ•˜๊ณ  ๊ตฌ์„ฑ๋œ ๋Œ€์ƒ์— ๊ฒฐ๊ณผ๋ฅผ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค.

๋…ธ๋“œ ์„ธ๋ถ€ ์ •๋ณด (9)

HT

HTTP Request

httpRequest

#1
SL

Slack

slack

#2
GM

Gmail

gmail

#3
CO

Code

code

#4

์ด ์›Œํฌํ”Œ๋กœ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•

  1. 1์˜ค๋ฅธ์ชฝ์˜ JSON ๋‹ค์šด๋กœ๋“œ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์›Œํฌํ”Œ๋กœ ํŒŒ์ผ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  2. 2n8n ์ธ์Šคํ„ด์Šค๋ฅผ ์—ด๊ณ  ์›Œํฌํ”Œ๋กœ โ†’ ์ƒˆ๋กœ ๋งŒ๋“ค๊ธฐ โ†’ ํŒŒ์ผ์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.
  3. 3๋‹ค์šด๋กœ๋“œ๋œ magento-2-low-stock-alert-via-slack-gmail-msi-compatible ํŒŒ์ผ์„ ์„ ํƒํ•˜๊ณ  ๊ฐ€์ ธ์˜ค๊ธฐ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.
  4. 4๊ฐ ์„œ๋น„์Šค ๋…ธ๋“œ์— ๋Œ€ํ•œ ์ž๊ฒฉ ์ฆ๋ช…๏ผˆAPI ํ‚ค, OAuth ๋“ฑ๏ผ‰์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
  5. 5์›Œํฌํ”Œ๋กœ ํ…Œ์ŠคํŠธ๋ฅผ ํด๋ฆญํ•˜์—ฌ ๋ชจ๋“  ๊ฒƒ์ด ์ž‘๋™ํ•˜๋Š”์ง€ ํ™•์ธํ•œ ํ›„ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

๋˜๋Š” n8n โ†’ JSON์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ์— ์ง์ ‘ ๋ถ™์—ฌ๋„ฃ๊ธฐ:

{ "name": "Magento 2 Low Stock Alert via Slack & Gmail (MSI Compatible)", "nodes": [...], ...}

ํ†ตํ•ฉ

codegmailhttprequestifscheduletriggerslack

์ด ์›Œํฌํ”Œ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ

ํ•œ ๋ฒˆ์˜ ํด๋ฆญ์œผ๋กœ ๋‹ค์šด๋กœ๋“œ ๋ฐ ๊ฐ€์ ธ์˜ค๊ธฐ

JSON ๋‹ค์šด๋กœ๋“œn8n.io์—์„œ ๋ณด๊ธฐ
๋…ธ๋“œ9
๋ณต์žก๋„medium
ํŠธ๋ฆฌ๊ฑฐscheduled
์นดํ…Œ๊ณ ๋ฆฌMiscellaneous

์ œ์ž‘์ž

Kanaka Kishore Kandregula

Kanaka Kishore Kandregula

@kmyprojects

ํƒœ๊ทธ

codegmailhttprequestifscheduletriggerslack
โšก

n8n์„ ์ฒ˜์Œ ์‚ฌ์šฉํ•˜์‹œ๋‚˜์š”?

n8n์€ ๋ฌด๋ฃŒ ์˜คํ”ˆ์†Œ์Šค ์›Œํฌํ”Œ๋กœ ์ž๋™ํ™” ๋„๊ตฌ์ž…๋‹ˆ๋‹ค. ์ž์ฒด ํ˜ธ์ŠคํŒ…ํ•˜๊ฑฐ๋‚˜ ํด๋ผ์šฐ๋“œ ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜์„ธ์š”.

n8n ๋ฌด๋ฃŒ๋กœ ์‹œ์ž‘ํ•˜๊ธฐ โ†’

Related Miscellaneous Workflows