Skip to main content

Slack

Overview

In this guide, we'll go through how to integrate your AI Assistant into Slack. Here's an overview of what we'll cover:

  1. Creating a dedicated Slack app
  2. Configuring the Slack app
  3. Integrating your Slack bot with DxConnect

Create your Slack app

To begin the integration process, you will need a Slack app for your AI chat bot. Head over to api.slack.com/apps and click on create a new app.

info

Here, we walk through creating the app from scratch. If you’ve done this sort of thing before, you can go directly to building from app manifest that we provide below.

create_slack_app_1.4dba18e.1030.png

Then select Create an app from scratch, set your AI Assistants’s name and select the Slack workspace you want to add it to and click Create App.

create_slack_app_2.3e02b89.640-1.png

Configure your Slack app

config_page.png

Let's start configuring your Slack app, with the following steps

OAuth & Permissions

The first and most important step we need to set permissions for the bot, including:

  1. channels:history

  2. chat:write

  3. im:history

  4. im:read

  5. im:write

  6. users:read

  7. users:read.email

2_insert_scope.png

After adding the scopes, we need to reset the permissions on our space

3_re_install_oauth_token.png

Then copy the bot's token to use in the next step.

Integrate your Slack bot with DxConnect

4_dx_integration_slack.png

Use the bot token from the step above and enable the Slack integration on DxConnect and save the Webhook link.

Event Subscriptions

6_event_subsciptions.png

After configuring the bot, we will open the Event Subscriptions section.

Moving on to Event Subscriptions we have the web hook link available from DxConnect. Paste in Request URL and configure Subscribe to bot events as follows:

  1. message.im

  2. message.channels

App Home

Oh, don't forget, the step of opening the chat tab on the bot's interface, this is very important when there is a private message sent to the bot, we need to display the chat area on our bot.

1_active_message_tab.png

In the App Home section, scroll down to Show Tabs and activate the Messages Tab button

And that’s it! 🎉 Your AI chat bot is ready to be tested on Slack! YAY!