happybara-io / WorkflowBuddy

The missing pieces of Slack Workflow Builder.
GNU Affero General Public License v3.0
28 stars 4 forks source link

Action: Pick random user from channel #21

Closed I-Dont-Remember closed 1 year ago

I-Dont-Remember commented 1 year ago

Choose a user from a channel at random to be used in other Workflow Steps.

Implementation Notes

Likely requires either a cache of users (DB work), or set a hard cap based on number of users we can draw from one or two requests to the Slack API.

They recommend no more than 200 results at a time , which handles a significant number of uses cases. What % of teams will be trying to use this on a channel with more than a couple hundred members? I'd hazard a guess at low%.

If we do a hard cap on size, then we are 1. won't have stale users 2. don't have to store anything. Win-win.

Existing examples

I-Dont-Remember commented 1 year ago

MVP implementation completed in #41.