Hoopla's Slack Integration now allows you to automate Slack Newsflashes, and even update Metric values, using Slack Patterns. Simply set up patterns for a Hoopla Bot to track within your Slack Channels, and we'll take care of the rest. A Slack pattern is any string of characters you wish to track. You can track anything, such as "Congratulations," "Gut update," or even "Lunch at..." and our Hoopla bot within Slack will take that pattern and apply it to a Newsflash or update a Metric.
*Note: You must have an active Slack account configured in order to use this integration.
Defining Slack Patterns
- In the Configure tab, click Slack Integration under Integrations in the left nav. Alternatively, click the Integrations tile and then Slack Integration tile.
- Scroll down to Patterns for Hoopla Bot.
- Click Add and select whether to define a Pattern to trigger a Newsflash or update a Metric value.
- Specify a name for this Pattern.
- Specify the Slack channels for which this pattern applies. Note that if you choose a specific channel, we will automatically add the Hoopla Bot to that channel, but if you select All Slack channels, you must manually invite the Hoopla Bot to channels where you want this pattern to apply.
- Specify the Slack users for which this pattern applies.
- Enter the Pattern. A pattern is any string of letters or characters that you want your Hoopla Bot to look for in your specified Slack Channels. For example, when the word "Congratulations" or "Alert" appears, fire a Newsflash, or when the words "Closed Won" or "New Trial" appears, increase a Metric value.
- If you want your Hoopla Bot to track a regular expression, you must click on "Show advanced settings" and check the box that says "Treat as regular expression." For tips on formatting and using regular expressions, check out this help site.
- Depending on whether your pattern is for a newsflash or updating a metric, continue with the appropriate section below.
Pattern for Newsflash
- Give your Newsflash a Title
- Select whether to use entire Slack message as Newsflash message or create a message template. You may include capture groups from your regular expression, if applicable.
- Optionally, add Watchers who can view posted Slack Newsflashes in the Activity tab of the web and mobile apps.
- Click OK and then Save.
Pattern for Metric Update
- Give your Metric Update a Title
- Select a Metric to update
- Select a User/Team/Generic Identifier to update
- Indicate how you wish to update the Metric value. You can Increase, Decrease or Set to a specific value. Note: If you input a Regular Expression in the Patterns box, you may also choose to Increase/Decrease by a capture group.
- Click OK and then Save.
Tip: If you created a Newsflash, don't forget to add it to the Channels you wish to see it fire on.