Skip to main content

Slack

Slack is a chat-based tool for messages and sharing files with your team. You can create channels, react to important effects, and easily stay in touch with your colleagues. Additionally, your Slack instance can be configured to address your team's specific needs or tech stack using the Slack API.

Slack is an especially powerful integration in Tonkean because Tonkean modules can leverage Slack channels to communicate with your team where they're already working. Users can answer forms directly in Slack or even use Slack to initiate workflows in Tonkean.

Authenticate with Slack

Tonkean integrates with Slack in two different ways, both of which must be connected independently: as a communication tool or as a data source.

If you want to connect Slack to send messages and generally communicate with your process contributors, connect Slack as a communication tool. Alternatively, if you want to extract and leverage fields from Slack in your module workflow, connect Slack as a data source.

Add Slack as a Communication Tool

You can connect Slack as a communication tool, a channel by which Tonkean can reach out to and communicate with process contributors (for example, using People Coordination actions).

To add Slack as a communication tool, follow the steps below:

  1. Make sure you're logged into the Slack instance you want to connect to Tonkean.

  2. In Tonkean, select the main nav icon, grid.png, in the upper left and select Enterprise Components. The Enterprise Components screen displays.

  3. Select the Communication Tools tab. The Communication Tools screen displays.

    select_comm_sources_tab.png
  4. In the Slack section, select New Instance. A new window displays asking you to allow Tonkean to connect to your Slack workspace.

    comm_sources_new_slack_instance.png
  5. If you are logged into multiple Slack accounts, select the dropdown in the top right and select the Slack workspace you want to connect to Tonkean. When finished, select Allow.

    slack_allow_access_window.png

A success message displays in the upper right if Slack was successfully authenticated and connected to Tonkean. The connected Slack instance appears in the Slack section of the Communication Sources screen.

comm_sources_slack_instance.png

Additionally, Tonkean displays as a connected app in your Slack instance:

slack_tonkean_app.png

Add Slack as a Data Source

Slack can also be connected as a native data source. With this integration, you can monitor certain conversations and take action in response to specified commands.

To add Slack as a data source, you must first connect Slack as a communication tool.

To add Slack as a data source, follow the steps below:

  1. Select the main nav icon, grid.png, in the upper left and select Enterprise Components. The Enterprise Components screen displays.

  2. Select + New Data Source in the upper right.

    connect_data_sources_add_data_source.png
  3. Select Cloud Application. The Add New Data Source window displays.

    add_cloud_application.png

    If you select Chat (Slack/MS Teams), you are redirected to the Communication Sources screen where you can connect a chat application as a communication tool.

  4. Enter "Slack" in the search field, then select Slack App. The New Slack Connection window displays.

    add_new_data_source_slack.png
  5. Select Create a new connection. A new window displays asking you to allow Tonkean to connect to your Slack workspace.

    new_slack_connection_create.png
  6. If you are logged into multiple Slack accounts, select the dropdown in the top right and select the Slack workspace you want to connect to Tonkean. When finished, select Allow. The Set Up Data Source window displays.

    slack_allow_access_window.png
  7. Select the channel or channels you want to monitor. Select the dropdown to choose from all available channels, filtering the list displayed in the dropdown by selecting either Public or Private channels.

    Select + Add Channel to monitor additional Slack channels.

    set_up_data_source_slack.png

    When finished, select OK.

Your Slack instance is connected to Tonkean as a data source. Be sure to provide the relevant solutions access to this data source.

Slack Permissions

When you connect a Slack instance to Tonkean, it's important to note that all of the permissions in Slack (that is, create, edit, read-only) are mirrored in Tonkean. A user is able to create or update in Tonkean anything they are able to create or update in Slack.

Considering these equivalent permissions, make sure that the account you connect has the authority to perform all the actions your process requires in Tonkean while also being careful not to give Tonkean more access to Salesforce than is necessary.

Monitor Slack as an Intake Source

Like most data sources, you can use Slack as the module intake source:

  1. After creating a new module, select the item tile. The Item Details panel displays.

  2. In the Select Intake Source section, select Chat. The Select Data Source section displays.

    select_intake_source_chat.png
  3. Select the Slack data source you want to connect as the intake source. The connection configuration screen displays.

    select_data_source_slack.png
  4. Select the entity you want to collect, where relevant.

    Slack App entities include all available objects in Slack (for example, Channels, Messages, and Users).

    slack_app_select_entity.png
  5. By default, Tonkean collects all entities of the selected type. If you want to filter the entities the module monitors, configure the conditions for the conditions group.

    When setting up a new intake source, we recommend always adding a custom filter instead of monitoring all entities of the selected type. This ensures there's a smaller amount of data to monitor and respond to. For example, configuring the filter to monitor messages from a specific channel may be a good place to start.

    slack_app_condition_group.png
  6. Select who to set as the creator of the items synced from the data source:

    • The default actor of this module - The module actor, configured in the module settings. For more information about configuring the module actor, see Configure Module Settings.

      item_creator_default_actor.png
    • Specific person - Select a specific user from your board.

      item_creator_specific_person.png
    • Custom email - Enter a custom email. Enter the email address manually or dynamically create the address by selecting the insert field button, insert_field.png, and using existing fields from your module.

      item_creator_custom_email.png
  7. When finished, select Save in the upper right.

Your module is monitoring Slack.

Use Slack as an Action

In addition to monitoring a Slack workspace, you can use actions to create a channel, invite users to a channel, and perform other actions in Slack based on triggers you create. To add a Slack action block, perform the following steps:

  1. On the module builder screen, add an action by selecting the plus icon, add_block.png, to the right of the Do arrow in your work flow. A new action block is created and the Action Block panel displays.

    add_action_block_select_plus_icon.png
  2. Scroll down to the Data Actions section and select the Slack App action. The Slack action panel displays.

    action_block_slack_app.png
  3. Configure the fields to perform any action relevant to your workflow.

    action_panel_slack_app.png

You're leveraging Slack as an integrated part of your module workflow.