1. Home
  2. Docs
  3. Autonami Marketing Automation for WordPress
  4. Slack
  5. Actions

Actions

Now that you’ve established a connection between Autonami and Slack and synced it, these are the actions that’ll become visible:

So you’ve got two options here: 

  • 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 “Save” 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”.

Once you’ve set the rule, hit the “Save” button.

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.

Here’s how:

Once done, hit the “Save” button.

Step #5: Make your automation live

Just hold and drag the orange slider that appears at the top left corner as shown:

Once you drag it to the right, you’ll see the color change to green, it means that your automation is now 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.