Flow Automation: Triggering Workflows When Product Inventory Changes
When a product’s inventory changes, the Product inventory changes trigger activates the associated Flow Automation workflow. You can use this trigger to automate product management tasks like unpublishing low-stock items or notifying staff.
Supported Actions
You can use the following actions with the "Product inventory changes" trigger. Click on each action name to view its setup details:
- [Product] Publish Product
- [Product] Add Product to Category
- [Product] Archive Product
- [Product] Unpublish Product
- [Product] Remove Product from Category
- [Product] Remove Product Tag
- [General] Send Email Notification
- [General] Update Counter
Testing the Workflow
To verify that the workflow is triggered correctly, follow the steps below to create a test item:
- From your SHOPLINE admin panel, go to Products and click Add product to create a test item. (We recommend using a distinctive product title to easily identify the test item later.)
- After successfully creating the test product, go to the product list and select it to open its product details page. Then, edit the product’s Inventory value and verify whether the trigger is working as expected.
| Note: For more information about product inventory tracking and management, please refer to this Help Center guide. |
Example Use Case
Here’s a real-world example to help you understand how to build an effective automation workflow with the "Product inventory changes" trigger — Automatically unpublish low-stock products and notify the relevant staff (available in inventory templates):
- Trigger: Product inventory changes
- Condition: Inventory before or after the change
- Actions: Send email notification, Unpublish product
Available Templates
Here are ready-to-use workflow templates that include inventory-based triggers. You can import and customize them based on your specific business needs:
- Automatically unpublish products when inventory is low: When a product’s inventory drops below a defined threshold (e.g., 10 units), the system sends an internal notification and unpublishes the product. You can customize the threshold value and email content.
- Automatically republish products when inventory recovers: When inventory rises back to the threshold (e.g., 10 units), the system sends an email notification and republishes the product. Thresholds and email content are fully customizable.
- Tag products with [Low Inventory] when stock is low: When inventory falls below a specified threshold, the system tags the product with a label like [Low Inventory]. You can adjust the threshold and tag label as needed.
- Notify staff when product inventory is low: When inventory drops below a defined threshold, an automated email alert is sent to internal staff for timely restocking. Email content and trigger thresholds can be modified.
| Note: Inventory is evaluated at the SKU level. |