For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setting Up a Slack Channel

Integrate Slack with your Aisera Applications

The Aisera Platform enables seamless integration with Slack as a channel, allowing Aisera Applications to interact with users and send alerts directly to Slack channels.

If you plan to retrieve data from Slack conversations, consult the Slack Connector documentation for detailed guidance.

Create a Slack Application

To connect Slack to the Aisera Platform you will need to create a Slack Application. This can be done by creating the application using a manifest (recommended), or by creating the Slack application from scratch.

To create a Slack application:

  1. Login to the Slack workspace being connected to the Aisera Platform.

  2. Click Create New App.

Create a New Slack App

Create an App Using a Manifest File

  1. In the Create an App window, choose From a manifest.

  2. Select the Workspace to be connected to the Aisera Platform.

  3. Modify the manifest.json file below:

    1. Replace every instance of <tenant_id> with your tenant Id.

    2. Customize the name, description, long_description, background_color, and display_name fields to personalize your Slack bot.

  4. Paste the modified manifest into the input field and click Next.

  5. Review the configuration summary and click Create to finalize the app creation.

  6. Navigate to App Home > Show Tabs and enable Allow users to send Slash commands and messages from the messages tab.

Slack Show Tabs Window
  1. Navigate to Event Subscription > Enable Events.

  2. Choose Retry to validate the configuration.

  3. Click Save.

  4. Navigate to Install App and select Install to Organization.

Create a Slack App from Scratch

  1. In the Create an App window, choose From Scratch.

  2. Set the App Name.

  3. Select the Workspace to be connected to the Aisera Platform.

  4. Click Create App to create the application. This will redirect you to the Basic Information window for your new slack application

  5. In the left navigation menu, click Event Subscriptions.

  6. Toggle Enable Events on.

  7. Set the Request URL to https://chatbot.<tenant_id>.aisera.<top_level_domain>/slack/recieve

  8. Expand Subscribe to bot events, then click Add Bot User Events.

  9. Add following events:

    1. app_mention

    2. message.channels

    3. message.groups

    4. message.im

    5. message.mpim

    6. reaction_added

  10. Select Save Changes.

  11. In the left navigation menu, click Interactivity & Shortcuts.

  12. Toggle Interactivity on.

  13. Set the Request URL to https://chatbot.<tenant_id>.aisera.<top_level_domain>/slack/recieve

  14. Click Save Changes.

  15. In the left navigation menu, click, OAuth & Permissions.

  16. Under Redirect URLs click Add New Redirect URL.

  17. Set the new redirect URL to https://<tenant_id>.aisera.<top_level_domain>/.

    This is the URL you are presented with when logging into the Aisera Admin UI.

  18. Click Save URLs

  19. Under Scopes > Bot Token Scopes click Add an OAuth Scope and add the following scopes:

    1. channels:read

    2. channels:manage

    3. chat:write

    4. groups:read

    5. im:read

    6. im:write

    7. mpim:read

    8. reactions:read

    9. reactions:write

    10. users:read

    11. users:read.email

    12. users.profile:read

  20. In the left navigation menu, click App Home.

  21. Under Your App's Presence in Slack next to App Display Name click Edit.

    1. Set your bot's Display name

    2. Set your bot's Default username

    3. Click Save

  22. Toggle Always Show My Bot as Online to on.

  23. Under Show Tabs set Allow users to send Slash commands and messages from the chat tab to on.

Gathering Credentials

You will need to gather credentials for the Slack application you created to integrate Slack with the Aisera Platform.

  1. Login to the Slack workspace being connected to the Aisera Platform.

  2. Select the Slack Application you configured for integration with the Aisera Platform.

  3. Under App Credentials copy down the following information for use later.

    1. Client ID

    2. Client Secret

    3. Verification Token

Branding your Slack App

To modify or set the branding on your Aisera Application:

  1. Access the Slack API page.

  2. Select your Aisera Slack application to navigate to the Basic Information window for your slack application.

  3. Set the following information under Display Information:

    1. App Name

    2. Short Description

    3. App Icon & Preview (512x512 PNG)

    4. Background Color

  4. Click Save Changes

Install the Aisera App into your Slack Workspace

The following steps need to be done by a workspace member with permission to install the channel within the application in Aisera Admin Console.

  1. In the Aisera Admin UI navigate to Settings > Channels.

  2. Click + Add New Channel.

  3. Select Slack and click Next.

  4. Input the following configuration details, then click Next.

    Field
    Description

    Channel name

    The name the channel will be displayed under in the Aisera Admin UI

    Client ID

    The Client ID for the Slack Application created for integration with the Aisera Platform.

    Client Secret

    The Client Secret for the Slack Application created for integration with the Aisera Platform.

    Verification Token

    The Verification Token for the Slack Application created for integration with the Aisera Platform.

  5. This will navigate you to a page requesting access to your Slack Workspace. Click Allow.

  6. You will be redirected back to the Aisera Admin UI. A success message should appear at the top of the screen.

Connecting the Slack Channel to an Aisera Application

  1. Navigate to Settings > AiseraGPT.

  2. Select the Aisera application you would like to add the newly created Slack Channel to.

  3. On the App Details page, scroll down to Channels.

  4. Click + Add Channel.

  5. Select the relevant Slack channel.

  6. Click OK.

Setting up a Slack Silent Mode bot (Optional)

This section describes how to set up a Slack application in Silent Mode.

Verify the following requirements:

  1. Your Slack application has been set up following the guidelines in Create a Slack Application.

  2. The reaction_added event subscription is enabled in your Slack application.

Adding the Slack Channels

  1. Create two slack channels.

    1. One channel is for the bot end users

    2. One is for the agents

  2. Integrate the two channels with your Slack bot using the Slack Application.

  3. In the Aisera Admin UI navigate to Settings > Channels, then select your Slack Channel.

  4. On the Channel Details window, click the Edit icon in the top right corner.

  5. Under Silent Mode Channels select the Slack channel you created for your end users.

  6. Under the Agents Channel select the channel you created for your agents.

  7. Apply the desired configurations:

    Configuration
    Description

    Make Conversation Public

    When enabled, the bot will reply to users in the public channel’s thread if enabled. Otherwise, the bot will reply with a direct message.

    Notify Channel when Answered

    When enabled, the channel where the question was posted will be notified when an answer is found.

    Handle All Messages

    When enabled, the bot will handle all messages, regardless of the response confidence.

    Show Multiple Intents

    When enabled, multiple high confidence answers may be returned. Otherwise, only the highest confidence answer will be returned.

    Use App Defined NLU Policy

    If selected, all messages will have the same processing capability as regular conversation channels.

    Enable Streaming Experience

    When enabled, responses will be streamed and will be displayed incrementally. When disabled, messages will be sent all at once.

    Remove Empty Blocks during Streaming

    When enabled, empty blocks will be filtered from responses.

  8. Press OK to save your changes

Set up Silent Mode Workflows

You can use the following workflows with Slack Silent Mode.

Escalation Feedback Flow

Add the following Escalation Feedback Flow nodes to your Workflow if you have a configuration where users can choose to escalate to an agent.

  1. Add the Escalation Silently Node to your AI Workflow Studio canvas.

  1. Add an Escalation Silently Action.

  1. Add a Response Message.

HandleConversationEvent Flow

The workflow graph look like this:

LiveAgentPickUp branch

Add a Silent Mode Follow Up Action for LiveAgentPickUp.

LiveAgentComplete branch

Add a Silent Mode Follow Up Action for LiveAgentComplete.

ChimeInRequest branch

Edit the JavaScript for the ChimeInRequest branch.

Last updated

Was this helpful?