# Slack low inventory alert

Posts a Slack alert when inventory for an updated item drops below a configured threshold.

Canonical URL: https://templates.jsworkflows.com/templates/slack-low-inventory-alert/

## When to use this template

This template is built for Shopify stores using the JsWorkflows app.

Use this template when you want a ready-made workflow for this use case: Posts a Slack alert when inventory for an updated item drops below a configured threshold.

It is designed for Shopify notification workflows and gives you a production-ready starting point instead of building the automation from scratch. It can work with Slack as part of the workflow.

This workflow uses the Shopify webhook trigger model and starts from the "Inventory level updated" trigger. It includes setup fields for merchant-facing values, so you can configure the workflow before installing it.

## Metadata

- Category: Notifications
- Trigger: Inventory level updated
- Workflow type: Shopify webhook
- Complexity: medium
- Usage class: starter-friendly

## Connected services

- slack

## Additional Shopify scopes

- read_inventory
- read_locations
- read_markets_home
- read_products

## Setup fields

- Low stock threshold (`LOW_STOCK_THRESHOLD`)
  - Type: number
  - Storage: config
  - Required: yes
  - Description: Send an alert when available quantity drops below this number.
- Slack OAuth handle (`OAUTH_HANDLE`)
  - Type: text
  - Storage: config
  - Required: yes
  - Description: OAuth handle for the Slack connection used to send the alert.
- Slack channel (`SLACK_CHANNEL`)
  - Type: text
  - Storage: config
  - Required: yes
  - Description: Slack channel name or ID where low inventory alerts should be posted.

## Setup guide

## Before you start

This template listens for inventory level updates and sends a Slack alert when the available quantity falls below your configured threshold.

## Configure in setup

- `Low stock threshold`: alert only when available quantity is below this value
- `Slack OAuth handle`: connector handle for the Slack connection
- `Slack channel`: channel name or channel ID where the alert should be posted

## Notes

- Duplicate inventory update deliveries are deduplicated for a short window
- The alert includes the product title, variant, SKU, location, and current available quantity

