Skip to main content
Skip table of contents

Additional Configurations and Setups

LAST UPDATED: NOV 28, 2024

Commands

Application Integration

  1. Open the Settings popup.

    Frame 71 (3).png
    1. Click into a Slack channel of interest.

    2. Click on the vertical ellipsis button on the top right corner.

    3. Click on the Edit settings menu option.

  2. Click on the Integrations tab, then click on the Add an App button.

    Frame 72 (1).png
  3. Click on the Add button for your application.

    Frame 73 (2).png
  4. Test the Send Messages command in D3 vSOC.

    Frame 76 (2).png
    1. Select your configured connection.

    2. Enter the channel ID or user ID.
      Channel ID
      If the channel ID is unknown, execute the List Channels command to retrieve it.

      Frame 85 (3)-20241112-225553.png

      i. Select your configured connection.
      ii. Click on the Test Command button.
      iii. Copy and paste the channel ID into the Channel or User ID input parameter of the Send Messages or Send Interactivity command.

      Alternatively, users may find the Channel ID in Slack:

      Frame 156 (1)-20241125-182019.png

      1. Right click on your channel of choice.
      2. Click on on the View channel details option.

      Frame 155 (1)-20241125-182148.png

      3. Copy and paste the Channel ID into the Channel or User ID input parameter of the Send Messages or Send Interactivity command.

      User ID
      If the user ID is unknown, execute the List Users command to retrieve it.

      Frame 86 (2)-20241112-234248.png

      i. Select your configured connection.
      ii. Click on the Test Command button.
      iii. Copy and paste the User ID into the Channel or User ID input parameter for the Send Messages or Send Interactivity command. The IDs in the UserIDs list correspond to the users in the UserNames list, with each ID matching the user at the same position in the respective lists.

      Alternatively, users may find the User ID in Slack:

      Frame 181 (3)-20241125-231750.png

      1. Open the Direct Messages accordion.
      2. Click on your user of choice.
      3. Click on the large user icon.
      4. Click on the vertical ellipsis button within the Profile section.
      5. Click on the Copy member ID button, then paste the User ID into the Channel or User ID input parameter for the Send Messages or Send Interactivity command.

    3. Enter a message.

    4. Click on the Test Command button.

    5. Ensure that the command have executed successfully.

  5. Verify that the message appears in Slack.

    Frame 75 (1).png

    If the message is sent to a user, a new chat with the bot user will appear for that individual under the Apps accordion.

    Frame 87 (3)-20241113-000916.png
Click here to expand...

Enabling Interactivity

Slack's Block Kit is a UI framework that enables the creation and use of interactive elements within messages, such as buttons, dropdowns, and checkboxes. To use interactive elements, an interactivity URL must be configured in the app settings; interactivity is not supported by default.

Frame 91 (2)-20241113-194509.png

Follow the steps below to enable interactivity:

  1. Toggle on Interactivity.

    Frame 89 (2)-20241113-195025.png
    1. Navigate to the Interactivity & Shortcuts page.

    2. Click on the toggle.

  2. Enter the Request URL in the following format:

    TEXT
    https://<domain>/<path>/VSOC/api/TaskResponse/slack/interactivity

    Frame 92 (4)-20241113-203544.png
  3. Click on the Save Changes button at the bottom right corner.

  4. Implement a Send Interactivity playbook task in D3 vSOC.

    1. Input a Channel or User ID. See the instructions on retrieving these.

    2. Let us use the following code for the Message Blocks input parameter:

      JSON
      [
          {
              "type": "input",
              "element": {
                  "type": "datetimepicker",
                  "action_id": "datetimepicker-action"
              },
              "hint": {
                  "type": "plain_text",
                  "text": "This is some hint text",
                  "emoji": true
              },
              "label": {
                  "type": "plain_text",
                  "text": "Start date",
                  "emoji": true
              }
          }
      ]
    3. Set the Wait for Response parameter is set to True.

  5. Click on the Test Playbook button in the playbook UI, then click on the Run Test button in the popup.

READER NOTE

If the Wait for Response parameter was set to True, the Send Interactivity command should be in a Paused state.

Frame 90 (2)-20241113-203749.png
  1. Navigate to Slack and submit a response.

    Frame 95 (3)-20241113-204329.png
    1. Select a date using the dropdown menu.

    2. Click on the Submit your response button.

    3. Click on the Submit button in the Information popup.

      Frame 94 (2)-20241113-204347.png

READER NOTE

Following the initial submission, no further changes or submissions will be processed by the D3 playbook task.

  1. Navigate back to D3 vSOC and verify the completion of the Send Interactivity task.

    Frame 96 (2)-20241113-204511.png

Application Reinstallation

Reinstallation of a Slack application is warranted for various application configuration changes, such as Scopes.

api.slack.com_apps_A080JNTKSE6_oauth_ (4) 1-20241113-230806.png

Removing the Application

  1. Navigate to the page containing all of your installed apps.

    Frame 97 (2)-20241113-224026.png
    1. Click on your workspace dropdown menu.

    2. Click on the Tools & settings menu option.

    3. Click on the Manage apps sub-menu option.

  2. Click on the ellipsis button next to your application, then click on the Uninstall option within the popup.

    Frame 185 (3)-20241129-031155.png

    An Uninstall <application name> from your team popup will render.

    Frame 186-20241129-031604.png
  3. Click on the I want to uninstall <application name> from my team checkbox.

  4. Click on the Uninstall button.

Reinstalling the Application

Authenticating with a User OAuth Token (API token):

  1. Navigate to https://<workspace-name>.slack.com/marketplace/<app-id>-<app-name>

  2. Click on the Add to Slack button.

Frame 187-20241129-032009.png
  1. Click on the Allow button.

    Frame 104 (1)-20241113-224802.png
  2. Click on the Install to <application name> button.

    Frame 105 (1)-20241113-224807.png
  3. Click on the Copy button to copy to Bot User OAuth Token.

    Frame 106 (1)-20241113-224814.png
  4. Test and save the connection.

    Frame 107 (2)-20241113-230001.png
    1. Paste in the Bot User OAuth Token into the API Token field in D3 vSOC.

    2. Click on the Test Connection button.

    3. Click on the OK button, then click on the Save button.

  5. Save the new connection, then add the Slack application to the chosen Slack channels. Refer to steps 1-3 for the Application Integration command.

Authenticating with an OAuth 2.0 Authorization Code:

  1. Click on the Add to Slack button.

    Frame 187-20241129-032009.png
  2. Click on the Allow button.

    Frame 182-20241129-024012.png
  3. Click on the Copy button.

Frame 183-20241129-024324.png

4. Navigate to D3 vSOC.

ALERT

Do not click the Get Authorization button.

Paste the content within the Authorization Code field.

Frame 184-20241129-025039.png
  1. Click on the Get Refresh Token button to automatically populate the Refresh Token and Authorization Code fields.

    Frame 52 (2)-20241023-193028.png
  2. Save the new connection, then add the Slack application to the chosen Slack channels. Refer to steps 1-3 for the Application Integration command.

Enabling Slash Commands

Frame 161 (3)-20241125-194723.png
  1. Navigate into your application, then click on the Basic Information menu item.

  2. Copy the App ID.

    Frame 172 (2)-20241125-201318.png

    Paste the App ID into the API ID field in D3 vSOC.

  3. Copy the Channel ID of for the channel you wish to be able to use the slash command (step 4b of the Application Integration section) and paste it into the Channel ID field in D3 vSOC.

    Frame 188-20241129-032928.png
Frame 189-20241129-033041.png
  1. Click on the Slash Commands menu item.

  2. Click on the Create New Command button.

Frame 190-20241129-033122.png

CAUTION

Do not check the Escape channels, users, and links sent to you app option, as it will prevent email addresses or any text containing "@" or "#" from being passed as parameters.

  1. Input the slash command. The slash command adheres to the following structure: /<System name of a D3 utility command>.

Finding the system name

For playbook commands:

Frame 174 (1)-20241125-202400.png

For system (built-in) and Python commands:

Frame 175 (1)-20241125-204814.png
  1. Input the Request URL.

READER NOTE

  • The Request URL adheres to the following structure:
    https://<your D3 domain>/<path>/VSOC/api/slack/slashcommand

  • The https://<your D3 domain>/<path>/VSOC/ portion of the Request URL is located in the URL of your D3 vSOC login page.

  1. Enter a short description for this slash command.

  2. (Recommended) Enter a usage hint for your slash command.

READER NOTE

Slash commands require the exact number of parameters defined by the D3 utility command, regardless of whether the parameters are optional or mandatory when executed in D3 vSOC. It is recommended to list all parameters as a reference. See the example beneath.

How to add utility command input parameters

For playbook commands:

Frame 178 (2)-20241125-212829.png

For Python commands:

Frame 179-20241125-220607.png
  1. Preview the autocomplete entry.

  2. Click on the Save button.

  3. Verify that the slash command has been created.

    Frame 177 (2)-20241125-211636.png
  4. Verify the created slash command on Slack.

    image 45-20241125-215826.png

READER NOTE

The slash command name and parameters must be separated by one or more spaces.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.