Skip to main content
All CollectionsTemplatesBasic
Nested Slack Block Generator from an Array - Workflow Template
Nested Slack Block Generator from an Array - Workflow Template

Workflow meant to be used as a nested workflow to build a Slack block from an array. This block can be used in the Slack Block Form step.

Updated over 7 months ago

This workflow template assists in building Slack blocks dynamically from an array, ideal for creating interactive Slack messages with variable-length options. It conducts error checks, processes arrays or string arrays to configure block options, and incorporates additional fields into the Slack block. Finally, it outputs a block that integrates seamlessly into the Slack Block Form step, completing the interactive messaging experience within Slack, particularly useful for security bots and automation.

Optional Triggers

"On Demand"

Use Cases

Security Bots

Workflow Breakdown

  1. Conduct a check of the input to handle any possible errors

  2. Loop over the array or array of strings to build the block options

  3. Collect any additional fields to be added to the block

  4. Output the Slack Block that can be used in the Slack Block Form step

Vendors

Utils

Workflow Output

A Slack Block that can be used to send a variable length question with selection options. The user is then provided the selected values back into Slack. If the required values are not provided, send error.

Did this answer your question?