Slack Forwarding

This set of commands allows you to forward notifications for entire stores or specific items to Slack webhooks. All available commands can be viewed using: !m help slack

Adding a Slack webhook

Use this command to send all notifications for a specified store monitor to the provided Slack webhook. To add a Slack webhook you need to use the slack add command. This command requires the name of the store and the Slack webhook you would like to send all monitor notifications to. Example:

!m slack add target https://hooks.slack.com/services/...

Now any restock notifications for items from Target will be sent to the provided Slack webhook also.

Removing a Slack webhook

Use this command to remove a Slack webhook you have previously added. To remove a Slack webhook you need to use the slack remove command. This command requires the name of the store you would like to remove the Slack webhook for. Example:

!m slack remove target

View added Slack webhooks

You can view a list of all the Slack webhooks you have added for each store using the slack running command. Example:

!m slack running

Adding a Slack webhook forwarding rule

Use this command to forward all notifications for a specified item to the provided Slack webhook. To add a Slack webhook forwarding rule you need to use the slack forward add command. This command requires the name of the store, the SKU of the item you would like to forward and the Slack webhook you would like to forward the notifications to. Example:

!m slack forward add target 87716465 https://hooks.slack.com/services/...

In this example we are forwarding all restock notifications for the item with SKU 87716465 from Target to the provided webhook.

Adding a Slack forwarding rule for multiple items at once

To add a Slack webhook forwarding rule for multiple items at once you need to use the slack forward add command. This command requires the name of the store, the SKUs of the items you would like to forward and the Slack webhook you would like to forward the notifications to. Example:

!m slack forward add target 87716465 87716467 https://hooks.slack.com/services/...

Removing a Slack webhook forwarding rule

Use this command to remove a Slack webhook forwarding rule you have previously added. To remove a forwarding rule you need to use the slack forward remove command. This command requires the name of the store and the SKU of the item you would like to remove the Slack webhook forwarding rule for. Example:

!m slack forward remove target 87716465

Removing a Slack webhook forwarding rule for multiple items at once

To remove a forwarding rule for multiple items at once you need to use the slack forward remove command. This command requires the name of the store and the SKUs of the items you would like to remove the Slack webhook forwarding rules for. Example:

!m slack forward remove target 87716465 87716467

View added Slack webhook forwarding rules

You can view a list of all the Slack webhook forwarding rules you have added for each store using the slack forward running command. This command only requires the name of the store. Example:

!m slack forward running target

Last updated