cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Messaging Capabilities: Slack

Messaging Capabilities: Slack

Slack offers many IRC-like features, including persistent chat rooms (channels) organized by topic, private groups, and direct messaging. Content, including files, conversations, and people, is all searchable within Slack. Users can add emoji buttons to their messages, on which other users can then click to express their reactions to messages.

Slack's free plan allows only the 10,000 most recent messages to be viewed and searched.

Pre-Installation Requirements

Make sure that you have a Slack account and you are authorized in Slack API

How to create a bot in Slack

Open the Slack API:

 

slack.png

Go to Your Apps and press "Create an App":

 

slack1.png

Choose name for your app and select your workspace:

 

slack_2.png

After it you will be redirected to your app page to "Basic information" page:

 

slack_3.png

Scroll down to "App Credentials" section:

 

slack_4.png

Bot Integration with Flow

Select the project to which you would like to connect Slack using the top left drop-down menu.

 

slack_5.png

Go to the “Integrations” section and press the “+” sign:

 

slack_6.png

Choose “Slack” option inside the opened modal window:

 

slack_7.png

Before to set the URLs you need to save the "Slack Client ID", "Slack Client Secret", "Slack Signing Secret" fields for next configuration operations:

 

slack_8.png

Copy the "OAuth URL" and go to "OAuth & Permissions" and press "Add New Redirect URL":

 

slack_9.png

 

slack_10.png

After it press "Save URLs":

 

slack_11.png

Scroll down to "Scopes" section and set the list of scopes to the "Bot Token Scopes":

  • channels:history
  • chat:write
  • groups:history
  • im:history
  • im:read
  • incoming-webhook
  • users:read

Scroll down and set the list of scopes to the "User Token Scopes":

  • im:read
 

slack_12.png

Go to the "App Home" and select the "Always Show My Bot as Online" and also you may change the display name of your bot

 

slack_13.png

Copy the "Events Request URL" and go to "Event Subscriptions", toggle the "Enable Events" checkbox and paste the URL:

 

slack_14.png

 

slack_15.png

Scroll down to "Subscribe to bot events" section and set the list of events:

  • message.channels
  • message.groups
  • message.im

Scroll down to "Subscribe to events on behalf of users" section and set the list of events:

  • im_created

And press "Save Changes"

 

slack_16.png

Go to "Incoming Webhooks" and toggle the "Activate Incoming Webhooks" checkbox:

 

slack_13.png

Go to "Interactivity & Shortcuts" and toggle "Interactivity" checkbox and set the "Actions Request URL":

 

slack_18.png

 

 

slack_19.png

Go to "Install App" and press "Install App" and select a environment to post messages by bot:

 

 

slack_21.png

 

slack_22.png

Now you can see the bot is online:

 

slack_23.png

Go to "OAuth & Permissions" and copy "OAuth Access Token" and "Bot User OAuth Access Token" and provide it to flow.ai's slack integration

 

slack_24.png

slack_25.png

Now you can test your Slack bot!

Bot Testing

Create a flow:

 

slack_26.png

Let's test it:

 

slack_27.png

The bot behavior

The direct messages behavior

When you are reaching out the bot by sending direct messages to itself the bot will reply in a line to you

 

slack_36.png

But you can also start new conversation in thread

 

slack_28.png

The channel/group behaviour

Once bot was installed to the slack workspace it can be used everywhere

Below will be instructions how to add bot to a channel/group

Go to your bot, click on the "Info" icon, select more options and select "Add this app to a channel..."

 

slack_29.png

Select a channel and press "Add"

 

slack_30.png

Go to the channel and you can see the message the bot was added

 

slack_31.png

In the channels/groups bot will reply in thread on each message that the channel/group received, and you also can continue conversation on a thread or join another thread or send new message to create new conversation

 

slack_32.png

Broadcasting

Slack is also supporting broadcasting

Checkout this Audience and Rest API Broadcasting

Labels (1)

Messaging Capabilities: Slack

Slack offers many IRC-like features, including persistent chat rooms (channels) organized by topic, private groups, and direct messaging. Content, including files, conversations, and people, is all searchable within Slack. Users can add emoji buttons to their messages, on which other users can then click to express their reactions to messages.

Slack's free plan allows only the 10,000 most recent messages to be viewed and searched.

Pre-Installation Requirements

Make sure that you have a Slack account and you are authorized in Slack API

How to create a bot in Slack

Open the Slack API:

 

slack.png

Go to Your Apps and press "Create an App":

 

slack1.png

Choose name for your app and select your workspace:

 

slack_2.png

After it you will be redirected to your app page to "Basic information" page:

 

slack_3.png

Scroll down to "App Credentials" section:

 

slack_4.png

Bot Integration with Flow

Select the project to which you would like to connect Slack using the top left drop-down menu.

 

slack_5.png

Go to the “Integrations” section and press the “+” sign:

 

slack_6.png

Choose “Slack” option inside the opened modal window:

 

slack_7.png

Before to set the URLs you need to save the "Slack Client ID", "Slack Client Secret", "Slack Signing Secret" fields for next configuration operations:

 

slack_8.png

Copy the "OAuth URL" and go to "OAuth & Permissions" and press "Add New Redirect URL":

 

slack_9.png

 

slack_10.png

After it press "Save URLs":

 

slack_11.png

Scroll down to "Scopes" section and set the list of scopes to the "Bot Token Scopes":

  • channels:history
  • chat:write
  • groups:history
  • im:history
  • im:read
  • incoming-webhook
  • users:read

Scroll down and set the list of scopes to the "User Token Scopes":

  • im:read
 

slack_12.png

Go to the "App Home" and select the "Always Show My Bot as Online" and also you may change the display name of your bot

 

slack_13.png

Copy the "Events Request URL" and go to "Event Subscriptions", toggle the "Enable Events" checkbox and paste the URL:

 

slack_14.png

 

slack_15.png

Scroll down to "Subscribe to bot events" section and set the list of events:

  • message.channels
  • message.groups
  • message.im

Scroll down to "Subscribe to events on behalf of users" section and set the list of events:

  • im_created

And press "Save Changes"

 

slack_16.png

Go to "Incoming Webhooks" and toggle the "Activate Incoming Webhooks" checkbox:

 

slack_13.png

Go to "Interactivity & Shortcuts" and toggle "Interactivity" checkbox and set the "Actions Request URL":

 

slack_18.png

 

 

slack_19.png

Go to "Install App" and press "Install App" and select a environment to post messages by bot:

 

 

slack_21.png

 

slack_22.png

Now you can see the bot is online:

 

slack_23.png

Go to "OAuth & Permissions" and copy "OAuth Access Token" and "Bot User OAuth Access Token" and provide it to flow.ai's slack integration

 

slack_24.png

slack_25.png

Now you can test your Slack bot!

Bot Testing

Create a flow:

 

slack_26.png

Let's test it:

 

slack_27.png

The bot behavior

The direct messages behavior

When you are reaching out the bot by sending direct messages to itself the bot will reply in a line to you

 

slack_36.png

But you can also start new conversation in thread

 

slack_28.png

The channel/group behaviour

Once bot was installed to the slack workspace it can be used everywhere

Below will be instructions how to add bot to a channel/group

Go to your bot, click on the "Info" icon, select more options and select "Add this app to a channel..."

 

slack_29.png

Select a channel and press "Add"

 

slack_30.png

Go to the channel and you can see the message the bot was added

 

slack_31.png

In the channels/groups bot will reply in thread on each message that the channel/group received, and you also can continue conversation on a thread or join another thread or send new message to create new conversation

 

slack_32.png

Broadcasting

Slack is also supporting broadcasting

Checkout this Audience and Rest API Broadcasting

Labels (1)

Messaging Capabilities: Slack

Slack offers many IRC-like features, including persistent chat rooms (channels) organized by topic, private groups, and direct messaging. Content, including files, conversations, and people, is all searchable within Slack. Users can add emoji buttons to their messages, on which other users can then click to express their reactions to messages.

Slack's free plan allows only the 10,000 most recent messages to be viewed and searched.

Pre-Installation Requirements

Make sure that you have a Slack account and you are authorized in Slack API

How to create a bot in Slack

Open the Slack API:

 

slack.png

Go to Your Apps and press "Create an App":

 

slack1.png

Choose name for your app and select your workspace:

 

slack_2.png

After it you will be redirected to your app page to "Basic information" page:

 

slack_3.png

Scroll down to "App Credentials" section:

 

slack_4.png

Bot Integration with Flow

Select the project to which you would like to connect Slack using the top left drop-down menu.

 

slack_5.png

Go to the “Integrations” section and press the “+” sign:

 

slack_6.png

Choose “Slack” option inside the opened modal window:

 

slack_7.png

Before to set the URLs you need to save the "Slack Client ID", "Slack Client Secret", "Slack Signing Secret" fields for next configuration operations:

 

slack_8.png

Copy the "OAuth URL" and go to "OAuth & Permissions" and press "Add New Redirect URL":

 

slack_9.png

 

slack_10.png

After it press "Save URLs":

 

slack_11.png

Scroll down to "Scopes" section and set the list of scopes to the "Bot Token Scopes":

  • channels:history
  • chat:write
  • groups:history
  • im:history
  • im:read
  • incoming-webhook
  • users:read

Scroll down and set the list of scopes to the "User Token Scopes":

  • im:read
 

slack_12.png

Go to the "App Home" and select the "Always Show My Bot as Online" and also you may change the display name of your bot

 

slack_13.png

Copy the "Events Request URL" and go to "Event Subscriptions", toggle the "Enable Events" checkbox and paste the URL:

 

slack_14.png

 

slack_15.png

Scroll down to "Subscribe to bot events" section and set the list of events:

  • message.channels
  • message.groups
  • message.im

Scroll down to "Subscribe to events on behalf of users" section and set the list of events:

  • im_created

And press "Save Changes"

 

slack_16.png

Go to "Incoming Webhooks" and toggle the "Activate Incoming Webhooks" checkbox:

 

slack_13.png

Go to "Interactivity & Shortcuts" and toggle "Interactivity" checkbox and set the "Actions Request URL":

 

slack_18.png

 

 

slack_19.png

Go to "Install App" and press "Install App" and select a environment to post messages by bot:

 

 

slack_21.png

 

slack_22.png

Now you can see the bot is online:

 

slack_23.png

Go to "OAuth & Permissions" and copy "OAuth Access Token" and "Bot User OAuth Access Token" and provide it to flow.ai's slack integration

 

slack_24.png

slack_25.png

Now you can test your Slack bot!

Bot Testing

Create a flow:

 

slack_26.png

Let's test it:

 

slack_27.png

The bot behavior

The direct messages behavior

When you are reaching out the bot by sending direct messages to itself the bot will reply in a line to you

 

slack_36.png

But you can also start new conversation in thread

 

slack_28.png

The channel/group behaviour

Once bot was installed to the slack workspace it can be used everywhere

Below will be instructions how to add bot to a channel/group

Go to your bot, click on the "Info" icon, select more options and select "Add this app to a channel..."

 

slack_29.png

Select a channel and press "Add"

 

slack_30.png

Go to the channel and you can see the message the bot was added

 

slack_31.png

In the channels/groups bot will reply in thread on each message that the channel/group received, and you also can continue conversation on a thread or join another thread or send new message to create new conversation

 

slack_32.png

Broadcasting

Slack is also supporting broadcasting

Checkout this Audience and Rest API Broadcasting

Labels (1)
Version history
Last update:
‎06-20-2021 08:30 AM
Updated by:
Contributors