Skip to main content

Slack

You can use the Slack integration to send messages and notifications to your Slack team. One of the most common workflow integrations is the connection to the user's communication suite.

This integration is a path forward for users who want to connect to their Slack workspace with the Spot Connect platform to interact with workflows, get execution statuses, approvals, etc.

The integration between Spot Connect and Slack enables you to:

  • Send notification messages from Spot Connect workflows to Slack.
  • Manage Spot Connect workflow approvals via direct messages to Slack teams.

Configure Slack in Spot Connect

  1. In the left main menu, click Connect and click Settings.
  2. Under the Integrations tab, select Slack.
  3. Configure a new integration instance with the information below.

Details needed to set up a Slack instance in Spot Connect:

ParameterDescriptionRequired
Integration AliasA name for the integration instance.True
  1. Click Add to Slack.
  2. You may be prompted to log into your Slack workspace. If not, verify that you are logged in to the Slack workspace that you want to add Spot Connect to.
  3. Review the permissions requested by Slack app Spot Connect by NetApp to access your workspace and click Allow.
  4. If the Slack app can successfully access your workspace, you will be redirected back to the Slack integration settings page in Spot Connect.
  5. Login to your Slack client, invite the Spot Connect by NetApp Slack bot user to the Slack channels where you would like to receive messages on.

/invite @Spot Connect by NetApp

Integration Actions

You can add these actions in the Spot Connect workflow builder as part of your workflow.

Approval

Approve or deny any request to continue the execution of a workflow.

Input

ParameterDescriptionRequired
Slack InstanceSelect a Slack integration instance configured in Spot Connect.True
Select Slack Channel to notifySelect a Slack channel to notify for approval.True
Notes for ReviewerThis note will be attached to the Slack message that requests for approval.True
Interval before triggering time outSpecify an interval before the approval request times out. The maximum timeout is 7 days.True
If approved, continue to the following step.Select the next workflow step to execute upon approval.True
If denied, continue to the following step.Select the next workflow step to execute upon denial.True

Output

ParameterTypeDescription
Execution Start TimeStringA string representation of time when the execution started. i.e Wed 12 May 2021 22:52:46.441000
Message Channel IDStringThe ID of the Slack channel where the message was sent.
Message TimestampStringTimestamp of the Slack message that was sent for approval.
Workflow NameStringName of the workflow associated with the execution.

Action Example

In addition to selecting the two next steps on the Approval node right panel, you also need to connect the Approval node with the two downstream nodes in the workflow builder.

Slack Add Users

Add users to a previously created Slack channel.

Input

ParameterDescriptionRequired
Slack InstanceSelect a Slack integration instance configured in Spot Connect.True
Channel NameName of Slack channel to add users to.True
UsersDropdown list of Slack users to add to the above channel.True

Output

ParameterTypeDescription
messageStringList of Slack User IDs of the users added to the channel

Action Example

Slack Archive Channel

You can archive a specified Slack channel. Archived channels can still be searched but are closed to any new activity.

Input

ParameterDescriptionRequired
Slack InstanceSelect a Slack integration instance configured in Spot Connect.True
Channel NameThe name of the channel to archive.True

Output

ParameterTypeDescription
messageStringStatus of the archive command.

Action Example

Slack Create New Channel

Create a new Slack channel.

note

The Spot Connect by NetApp Slack bot user is automatically added to any channel created using this action, public or private. This allows the other Slack actions to see the channel.

Input

ParameterDescriptionRequired
Slack InstanceSelect a Slack integration instance configured in Spot Connect.True
Channel NameName of the new channel.True
PrivateMake the new channel private.False

Output

ParameterTypeDescription
channel_infoObjectOutput of the Slack conversations.create API call. Channel names may only contain lowercase letters, numbers, hyphens, and underscores, and must not be longer than 80 characters.
channel_urlStringA URL for the newly created channel.

Action Example

Slack Send Message

Send Slack messages to a given channel.

Input

ParameterDescriptionRequired
Slack InstanceSelect a Slack integration instance configured in Spot Connect.True
Slack ChannelName of Slack channel where you send a Slack message toTrue
Message TextThe message to be sent to the channelTrue

Output

There is no output of this action.

Action Example