Slack Group Randomizer
  • 07 Nov 2024
  • 2 Minutes to read
  • Dark
    Light

Slack Group Randomizer

  • Dark
    Light

Article summary

Note for Decisions v.9 Users
To ensure all features of this Accelerator work properly, we recommend only importing this project if you have v.8 or below installed.  

The Slack Group Randomizer Accelerator effectively organizes Slack Group Members.  This process is designed to retrieve members from a Slack Channel and organize them into a smaller group, and automatically initiates a conversation after configuration. 

Utilizing Slack API, the system fetches members from a specific Slack channel and sorts through each account to locate bots. If bots are detected, they are removed from the group to ensure only human users exist. New Slack conversations contain enhanced security measures to keep conversations private and solely accessible by Subgroup Members. 

This Accelerator includes Workflows that assist in organizing members into designated groups, like the Initiate Random Chat Groups Flow that fetches Group Members, eliminates bots, and creates Subgroups of five or fewer members. The Split Member List Into Groups Flow monitors whether a group has more than five members, and if so, automatically divides the group into a new conversation. 

The Slack Group Randomizer Accelerator offers a user-friendly interface for configuring and organizing Slack conversations. 


Key Features:

  • Fetches Group Members utilizing API.
  • Creates a new conversation once a group surpasses five members. 
  • Delivers the first message in a new conversation. 

Considerations

Users need to set System Constants for Token, Channel ID, and Randomizer Bot UID

  1. SGR Randomizer Bot Token 
  2. SGR Member Pool Channel ID
  3. SGR Randomizer Bot UID


SGR Member Pool Channel ID and Randomizer Bot Token

 


SGR Randomizer Bot 

 


Main Flows

Initiate Random Chat Groups

This Flow fetches Group Members through Slack API, searches for and removes bots, and creates Subgroups of five members of less. This process also initiates the conversation for every created Subgroup.  

Split Member List Into Groups

This Flow monitors whether a channel has more than five members and calls the Get Subgroup Flow to divide the list into a new Subgroup. If there are five members or less within a Channel, current members are merged into a comma separated list, and the process calls the Create Conversation Method to send an initiating message to the group. This process will continue until every member has been accounted for. 

Get Subgroup 

This Flow is called by the Split Member List Into Groups Flow if five or more members exist within a Slack Channel and creates a Subgroup of five members or less.

Using the Slack Group Randomizer Accelerator in Decisions

 After configuring the proper settings, Subgroups will be generated as new members are added to a Slack Channel. This Accelerator simplifies the process of creating groups utilizing Slack's API technology and encourages teams across various industries to foster connections between co-workers during group meetings.




Was this article helpful?