Overview
The ‘Slack Interactivity’ action integrates the Blink Bot for Slack into your workspace, allowing you to perform common Slack actions within your workflows. Messages from Blink to Slack are sent through the Blink bot This action allows you to send a personalized message to a user or channel. The message can include a variety of interactive components, such as date pickers, checkboxes, text inputs, multiple choice selections, and more. Use this action to gather all the necessary information in a single interaction, formatted to best suit the type of data you are collecting. The Slack Interactivity action is made up of three distinct actions:- The Send a Message action.
- The Update an Existing Message action.
- The Send an Ephemeral Message action.
Slack Interactivity Action
To use the Slack Interactivity action, it is essential to use the Slack Block Kit Builder for building and previewing your messages before executing the step.The Slack Block Syntax
Slack Block Syntax- Examples
Slack Block Syntax- Examples
Creating a Send a Message Step
Add Blink Bot For Slack
Open General Settings in Blink
Set up the Blink Slack Bot by clicking your username in the bottom left corner and go to “General” settings.

Grant Slack Permissions to Blink
A dialog window will open, asking for access permissions: “Blink is requesting permission to access the Blink Ops Slack workspace”.

Build Your Workflow
Add Slack Interactivity Action to Workflow
In the Workflow Editor, click to open the Action panel and search for “Slack Interactivity” action. Alternatively, you can drag the action to the step.
Choose 'Send Message' as Action Type
In the dropdown menu under “Action Type”, select the “Send Message” option.

Fill in the Parameters
Enter the following parameters:
| Parameter | Description |
|---|---|
| Action Type | Choose the Send Message or Update Message Action Type. |
| To | The recipients email address or Slack channel. |
| Blocks | Array of blocks that compose the message. Must include at least one action block. |
| Thread Timestamp (ts) | The thread timestamp(only if sent to (Slack channel). |
| Timeout in minutes (optional) | Timeout in minutes for the recipient to respond. |
| Advanced- Include user info | Includes the users information together with their response. |
| Advanced- Keep blocks after user response | Keep the interactivity blocks after the user responds to the message , together with the users response. |
Create or Select Slack Connection
Next, create a Slack connection by navigating to the top-right hand corner of your Step, select Connection required and then select an existing connection or create a new connection by selecting Create new connection.

Run a Test Execution of the Step
Once these steps are completed, you can select the button to execute a trial run of the step or the test run button to execute a test run of your Workflow.

Respond to Slack Message in Channel
When this Workflow is executed, the designated Slack channel you have entered in the text field, will receive the message. Subsequently, you will have the option to engage with the message by writing a response and then pressing the submit button.

Upon recipient interaction (triggered by action button clicks), the system collects values from all input blocks, allowing the Workflow to resume from the paused step.
Once the recipient clicks the submit button, the message will be updated to 
Processing your response.... It is up to the creator of the Workflow to decide what to do with the interaction.
Creating an Update a Message Step
Select the 'Update Message' Action Type
To modify a previously sent message, select the Update Message option from the Action Type dropdown.

Fill in The Required Parameters
| Parameter | Description |
|---|---|
| Action Type | Choose the Send Message or Update Message Action Type. |
| Channel ID | The ID of the channel. |
| To | The recipients email address. |
| Blocks | Array of blocks that compose the message. Must include at least one action block. |
| Timestamp (ts) | Timestamp of the message to be updated. |
| Timeout in minutes (optional) | Timeout in minutes for the recipient to respond. |
| Response message | A message the recipient of the question will receive after responding. |
Please note, when using the Update Message action, you must use the 
channel and ts(TimeStamp) values above from the output of the response message created in your Slack channel.


