Slack is a third party application that allows you to socially connect with your team by sending out messages to an individual user or a group.
But you can only take actions using Slack if you've synced your workspace in Slack with Autonami.
When you connect Slack with Autonami, these are the actions that’ll become visible:
- Send a message to a user
- Send a message to a channel
Now let’s take a case - where you want to get notified on Slack when your stock size for any item falls below a set threshold.
Getting notified via Slack when an item stock reduces
So say when the number of items left falls below 10, you want to be informed on Slack.
Follow these steps to easily set up this simple automation:
Step 1: Select the "Order Item Stock Reduced" event for your automation
Add new automation >> Select “Order Item Stock Reduced” from the list of events
Here’s where you’ll find this event:
Select the event and click on the “Continue” button.
Step 2: Click on “+” icon and select ‘Conditional Action’
Step 3: Set the threshold quantity
Click on “Select a rule” drop-down in the “IF” section, and select “Item Stock” from the list as shown below:
Next, specify the threshold. If the quantity of the items in your stock falls below this specified threshold, only then you’ll get a notification.
Here’s where you’ll have to specify it:
You can select from a variety of quantifiers like - “equal to”, “greater than or equal to”, “is less than”, “not equal to”, and many more.
But in this case, we have selected “is less than 10”.
Once you’ve set the rule, click on the workflow.
Step 4: Set the action for your automation
Select “Send a message to a user” as an action >> Select whom to send the message and what to send
You’ll find the action under Slack in the Actions drop-down list as shown below:
Next, select the Slack user whom you want to send the message and put in the content.
Here’s where you’ll find the list of Slack users associated with your organization:
Craft the Slack message using merge tags.
Once done, click anywhere outside the Slack settings to save the automation.
Step 5: Make your automation live
Once you're done, turn the toggle to Active. This will make your automation live.
Step 6: Test out your automation
Go to Products >> Select a demo product >> Go to inventory and set its quantity as ‘10’
Here’s where you need to set the quantity from:
Once you’ve updated it, go to WooCommerce and purchase the demo product.
When you purchase this product, the quantity of the item will reduce below ‘10’.
This will trigger the automation which you just created and you’ll receive a Slack message.
Your Slack message would look like this:
This was a really simple automation set up by establishing a communication link between Slack and WooCommerce via Autonami.
You can unleash the power of Slack and set up any number of useful automation you like.