Managing Slack App settings

Starting Version 5.3.0, Users will be able to search content via a Slack App.  However, the scope of their ability to find data in Metric Insights is determined by their Group membership and Security settings.

NOTE: Typically only Admins have the capacity to configure Group access and modify the Slack App settings.

Access command options - click to open

Slack App management commands are accessible via Direct Messaging.

  1. Choose MI Slack App for Direct Messaging.
  2. Type !help command to obtain more information.
  3. Click [List commands] to see options.
  4. Optionally, click [Usage help] for instructions on how to run commands.

Assigning User access and changing Slack App settings can only be done through Direct Messaging with the Slack App. Management commands are not available in a Slack Channel.

1. Slack App commands: basic and advanced

As seen on the example above, there are 6 available commands for an MI Slack App:

Basic commands (help Users find content)

  1. !search ("search" is the default Slack App function)
  2. !tags (displays existing tags of elements)
  3. !help (provides instructions on how to use the App)

To learn more about these commands and their usage, refer to Access content via a Slack App

Advanced commands (for configuration and security management)

  1. !config (allows to access config variables)
  2. !access (assigns/revokes access to Slack App commands)
  3. !sync (forces refetch data from an MI instance which; useful when changing config variables)

2. Manage access to Slack App commands

2.1. Choose or create a Group to manage

  1. Type !access
  2. From the dropdown, Select a Slack group to manage or Create a new Group.
  3. Manage channels available for the Bot: verify and configure Channels that the Slack App will be able to access.

Groups in Slack do not correlate with Groups in Metric Insights and have to be set up separately.

2.2. Manage access to Slack App commands

  1. The Slack App displays the Group you are managing.
  2. Verify the Group members and access settings.
  3. Click [Grant access] to allow access to ALL or specific commands.
    • Alternatively, click [Revoke access] to withdraw access from the Group.
  4. Click [Add members] to include other members in the Group.
    • Alternatively, click [Remove member] to exclude selected member(s) from the Group.

2.3. Verify the changes

  1. Changes that are made to access settings will immediately be displayed in the Group information section.
  2. Click [Dismiss] to stop managing the Group.

3. Change Slack App configuration

As of Release 5.5.x, you can configure:

  1. Channel-specific variables
  2. Global variables

Global configuration variables affect all connected Slack channels, whereas Channel-specific variables alter the MI Chatbot behavior for a particular channel.

To access Channel-specific variables, select a relevant Slack channel. To view Global configuration options, click [Change global].

3.1. Channel-specific variables

Channel-specific variables can be configured via Direct Messaging with the MI Chatbot or when addressing the bot in a channel. In the latter case, these variables are not displayed in the channel but exclusively shown to the bot admin who initiated the change.

Among the settings that can be modified per channel:

  1. "Search in Tags" enables search by elements' Tags
  2. "Search in Tile names" activates search by the names of elements
  3. "Enable silent search" allows to formulate queries without directly addressing the MI Slack App in the Channel

3.2. Global Variables (Part I)

  1. "MI instance hostname" specifies the instance from which Slack users can query data
  2. "MI External Application ID" allows the MI Slack App to access the MI Instance
    • This access ID is generated in Metric Insights when a new External Application is added to the system
  3. "MI External Application key" allows the MI Slack App to access the MI Instance
    • This secret access key is generated in Metric Insights when a new External Application is added to the system
  4. "MI user name, associated with the bot" this Metric Insights User determines which content can be accessed by the MI Slack App
  5. "Dataset ID to fetch tile info from" determines the Dataset ID containing metadata about elements
  6. "Search in tags" enables search by elements' Tags

3.3. Global Variables (Part II)

  1. "Enable silent search" allows to formulate queries without directly addressing the Slack App in the Channel
  2. "Enable NLU webservice search" if activated, the Slack App can parse queries formulated as natural language sentences; if disabled, the Slack App will use simple search
  3. "Display debug messages" activates the display of debug messages containing NLU extracted entities (used to check how the search query was parsed)
  4. "Send broadcast messages to channels" allows sending messages to all channels where the MI Slack App has been invited
  5. "Slack Signing Secret" is a secret key used to verify Slack requests
  6. "Microsoft ID" can be configured if the MI Slack App is also used in Microsoft Teams
  7. "Microsoft KEY" can be configured if the MI Slack App is also used in Microsoft Teams
  8. "Slack platform is used" signifies that the MI Slack App is used to process requests submitted in Slack channels
  9. "MS Teams platform is used" signifies that the MI Slack App is used to process requests submitted in Microsoft Teams channels