This feature enables customers to set up a Bot for Slack application into their workspaces. By adding this new bot, users within the workspace can easily request data from their Datagran workspace (for both integrations and operators) by simply asking, as though they were speaking to another person, without requiring any knowledge of SQL.

The bot will provide users with downloadable data and any relevant metrics, if available.

Note: Please note that this application differs from the Slack Destination. Install this app if you wish to query data in a natural language format. On the other hand, utilize the Slack Destination to send data to your Slack channels and receive notifications.

Configuration

The following steps must be accomplished in order to have this bot in a Slack workspace:

  1. Slack setup: Have a Slack workspace and install the Jedi app in one of the channels.
  2. Datagran setup: Have a Datagran workspace and establish connections properly.
  3. Usage: Manage tables cache and make queries.

Step 1 - Slack setup

The first thing that is needed here is to already own a Slack workspace and, for the user that wants to complete this setup, to have "admin" or "owner" roles in the same Slack workspace.

The next step is to install the application:

  1. First, log into your Datagran workspace. If you don’t have an account creating an account is free. Your account will contain dummy data so that you can test your bot for Slack.

    step-1.png

    step-2.png

    1. In your project, hover over the black square in your left menu and select your workspace. In this example is ‘datagranco’.

    Screenshot 2023-06-09 at 4.05.58 PM.png

    In your workspace main page find “Your Slackbot Connections” and click the “Connect to Slack”.

    step-3.png

  2. Install it in your Slack team workspace by following the first step.

Screenshot 2023-06-09 at 3.37.08 PM.png

Step 2 - Datagran setup

Now it's time to create a Jedi connection from Datagran (This process is mentioned in the second step inside the print screen above. If you already did this step please skip connection instructions explained in this section). For this, a workspace must exist (and have available data units) to connect the Slack workspace to. In order to link the Slack team workspace to such Datagran workspace, execute the connect command:

connect-1.png

When done, this command will return a link. Click it (first, ensure you’re already logged in the Datagran workspace), and a confirmation message will appear.

Congratulations! The Datagran workspace is connected to the Slack workspace.