GETTING STARTED
Kore.ai XO Platform
Virtual Assistants Overview
Natural Language Processing (NLP)
Concepts and Terminology
Quick Start Guide
Accessing the Platform
Navigating the Kore.ai XO Platform
Building a Virtual Assistant
Help & Learning Resources
Release Notes
Current Version
Recent Updates
Previous Versions
Deprecations
Request a Feature
CONCEPTS
Design
Storyboard
Overview
FAQs
Conversation Designer
Overview
Dialog Tasks
Mock Scenes
Dialog Tasks
Overview
Navigate Dialog Tasks
Build Dialog Tasks
Node Types
Overview
Intent Node
Dialog Node
Dynamic Intent Node
GenAI Node
GenAI Prompt
Entity Node
Form Node
Confirmation Node
Message Nodes
Logic Node
Bot Action Node
Service Node
Webhook Node
Script Node
Process Node
Agent Transfer
Node Connections
Node Connections Setup
Sub-Intent Scoping
Entity Types
Entity Rules
User Prompts or Messages
Voice Call Properties
Knowledge AI
Introduction
Knowledge Graph
Introduction
Terminology
Build a Knowledge Graph
Manage FAQs
Knowledge Extraction
Import or Export Knowledge Graph
Prepare Data for Import
Importing Knowledge Graph
Exporting Knowledge Graph
Auto-Generate Knowledge Graph
Knowledge Graph Analysis
Answer from Documents
Alert Tasks
Small Talk
Digital Skills
Overview
Digital Forms
Digital Views
Introduction
Widgets
Panels
Session and Context Variables
Context Object
Intent Discovery
Train
NLP Optimization
ML Engine
Overview
Model Validation
FM Engine
KG Engine
Traits Engine
Ranking and Resolver
Training Validations
NLP Configurations
NLP Guidelines
LLM and Generative AI
Introduction
LLM Integration
Kore.ai XO GPT Module
Prompts & Requests Library
Co-Pilot Features
Dynamic Conversations Features
Intelligence
Introduction
Event Handlers
Contextual Memory
Contextual Intents
Interruption Management
Multi-intent Detection
Amending Entities
Default Conversations
Conversation Driven Dialog Builder
Sentinment Management
Tone Analysis
Default Standard Responses
Ignore Words & Field Memory
Test & Debug
Overview
Talk to Bot
Utterance Testing
Batch Testing
Conversation Testing
Conversation Testing Overview
Create a Test Suite
Test Editor
Test Case Assertion
Test Case Execution Summary
Glossary
Health and Monitoring
NLP Health
Flow Health
Integrations
Actions
Actions Overview
Asana
Configure
Templates
Azure OpenAI
Configure
Templates
BambooHR
Configure
Templates
Bitly
Configure
Templates
Confluence
Configure
Templates
DHL
Configure
Templates
Freshdesk
Configure
Templates
Freshservice
Configure
Templates
Google Maps
Configure
Templates
Here
Configure
Templates
HubSpot
Configure
Templates
JIRA
Configure
Templates
Microsoft Graph
Configure
Templates
Open AI
Configure
Templates
Salesforce
Configure
Templates
ServiceNow
Configure
Templates
Stripe
Configure
Templates
Shopify
Configure
Templates
Twilio
Configure
Templates
Zendesk
Configure
Templates
Agents
Agent Transfer Overview
Custom (BotKit)
Drift
Genesys
Intercom
NiceInContact
NiceInContact(User Hub)
Salesforce
ServiceNow
Configure Tokyo and Lower versions
Configure Utah and Higher versions
Unblu
External NLU Adapters
Overview
Dialogflow Engine
Test and Debug
Deploy
Channels
Publishing
Versioning
Analyze
Introduction
Dashboard Filters
Overview Dashboard
Conversations Dashboard
Users Dashboard
Performance Dashboard
Custom Dashboards
Introduction
Custom Meta Tags
Create Custom Dashboard
Create Custom Dashboard Filters
LLM and Generative AI Logs
NLP Insights
Task Execution Logs
Conversations History
Conversation Flows
Conversation Insights
Feedback Analytics
Usage Metrics
Containment Metrics
Universal Bots
Introduction
Universal Bot Definition
Universal Bot Creation
Training a Universal Bot
Universal Bot Customizations
Enabling Languages
Store
Manage Assistant
Team Collaboration
Plan & Usage
Overview
Usage Plans
Templates
Support Plans
Invoices
Authorization
Conversation Sessions
Multilingual Virtual Assistants
Get Started
Supported Components & Features
Manage Languages
Manage Translation Services
Multiingual Virtual Assistant Behavior
Feedback Survey
Masking PII Details
Variables
Collections
IVR Settings
General Settings
Assistant Management
Manage Namespace
Data
Overview
Data Table
Table Views
App Definitions
Data as Service
HOW TOs
Build a Travel Planning Assistant
Travel Assistant Overview
Create a Travel Virtual Assistant
Design Conversation Skills
Create an ‘Update Booking’ Task
Create a Change Flight Task
Build a Knowledge Graph
Schedule a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Train the Assistant
Use Traits
Use Patterns
Manage Context Switching
Deploy the Assistant
Use Bot Functions
Use Content Variables
Use Global Variables
Use Web SDK
Build a Banking Assistant
Design Conversation Skills
Create a Sample Banking Assistant
Create a Transfer Funds Task
Create a Update Balance Task
Create a Knowledge Graph
Set Up a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Add Data to Data Tables
Update Data in Data Tables
Add Data from Digital Forms
Train the Assistant
Composite Entities
Use Traits
Use Patterns for Intents & Entities
Manage Context Switching
Deploy the Assistant
Configure an Agent Transfer
Use Assistant Functions
Use Content Variables
Use Global Variables
Intent Scoping using Group Node
Analyze the Assistant
Create a Custom Dashboard
Use Custom Meta Tags in Filters
Migrate External Bots
Google Dialogflow Bot
APIs & SDKs
API Reference
API Introduction
Rate Limits
API List
koreUtil Libraries
SDK Reference
SDK Introduction
Web SDK
How the Web SDK Works
SDK Security
SDK Registration
Web Socket Connect and RTM
Tutorials
Widget SDK Tutorial
Web SDK Tutorial
BotKit SDK
BotKit SDK Deployment Guide
Installing the BotKit SDK
Using the BotKit SDK
SDK Events
SDK Functions
Tutorials
BotKit - Blue Prism
BotKit - Flight Search Sample VA
BotKit - Agent Transfer
  1. Home
  2. Docs
  3. Virtual Assistants
  4. Channel Enablement
  5. Adding the Slack Channel

Adding the Slack Channel

To set up the Slack channel on the XO Platform and interact with a VA using a Slack account, you must associate the VA with a Slack app.

The Slack channel integration supports Direct Messaging (DM) and Channel (group) conversations via the Platform. When a VA is added to a channel (group) within the Slack organization space, any member can start a group conversation using @mentions to talk to a specific VA.

The XO Platform offers native support for threaded conversations in the Slack channel. Users can initiate a new thread from any message within a Slack channel or direct message group and continue a conversation with the VA. The XO Platform leverages Slack’s Threads to enable one-on-one conversations without losing the conversation context.

Additionally, the Platform allows developers to configure how the Slack channel integration should handle DM and group conversations. It can automatically create a new thread whenever a user @mentions the virtual assistant in a Slack channel. This configuration flexibility gives developers control over the Threads feature.

Note: To use Slack Threads for your Virtual Assistant deployed on the Slack Channel, add the Bot token Scope “chat:write.public” to the existing Slack app under OAuth & Permissions > Scopes > Bot Token Scopes. Learn more.

Prerequisites

To enable this integration, you must already have a Slack account and be a member of a Slack organization space.

Setup Flow

To set up Slack as a channel, the developer should associate the VA with a Slack app, set up a bot user, and enable interactive components for this app. The important steps include:

  1. Create an App on Slack.
  2. Set Redirect URL and Scopes.
  3. Install the App.
  4. Enable Interactivity.
  5. Enable Events.
  6. Enable Interactions from the Message Tab,
  7. Configure App Credentials.
  8. Manage Distribution.
  9. Enable the Channel on the XO Platform.

Step 1: Create an App on Slack

  1. In the XO Platform, select the assistant to which you want to add the Slack Channel.
  2. Go to Deploy > Channels > Slack, and open the Configuration tab.
  3. In a new browser tab, Login to the Slack developer portal and go to the Your Apps section https://api.slack.com/apps. If this is your first app, click Create an App. If you already have some apps, then click Create New App.

  4. You will now be asked to choose how you’d like to configure your app’s scopes and settings. Select From Scratch.
  5. On the Create a Slack App window, enter the App Name and select a team from the Development Slack Team drop-down list. Use your assistant’s name as the App Name.

  6. After you enter the required information, click Create App. Slack will now create a new app and you are redirected to the Basic Information section of the new app.

Step 2: Set Redirect URL and Scopes

  1. Click OAuth & Permissions on the left menu and click Add New Redirect URL on the resulting page.
  2. On the XO Platform, copy the Redirect URL provided in the Configurations section of the Slack channel window and paste it in the Redirect URLs field of the OAuth Tokens & Redirect URLs page.
  3. Click Add, and then click Save URLs.

  4. Proceed to Scopes > Bot Token Scopes section.
  5. Add ‘incoming-webhook’, ‘chat:write’, and ‘chat:write.public’ scopes.
  6. If you would like your users to send attachments to your bot, then select the ‘files:write’ scope.

Note:

  • To allow users to send attachments to the VA, select the ‘files:write’ scope.
  • To send Proactive Notifications to users on Slack, select the users:read, users:read.email, and team:read scopes.


Step 3: Install the App

  1. Navigate to OAuth & Permissions > OAuth Tokens & Redirect URLs section, and click Install App to Workspace. Choose the required Workspace and complete the process.

  2. (Optional) To send Proactive Notifications to your users on Slack, copy the Bot User OAuth Token from the OAuth Tokens for Your Team section and provide it in the Slack Channel Configurations section on the XO Platform.


 

Step 4: Enable Interactivity

  1. Navigate to Interactivity & Shortcuts and enable Interactivity.
  2. On the XO Platform, copy the Webhook URL from the Slack channel’s Configurations tab and enter it in the Request URL field on Slack.

Important: The Webhook URL now includes the streamid in the API request to identify the virtual assistant being accessed. When an incoming request is qualified with this identifier, it helps with traceability, troubleshooting, and remediation at the network level during anomalies like malicious calls or unusual bot activity.

  1. Click Save Changes.

Step 5: Enable Events

  1. Navigate to Event Subscriptions and activate the Enable Events option.
  2. On the XO Platform, copy the Webhook URL from the Slack channel’s Configurations section and paste it in the Request URL field in the Enable Subscriptions section.
  3. In the Subscribe to Bot Events section, add ‘app_mention’, and ‘message.im’ events.
  4. Click Save Changes.

Step 6: Enable Interactions from the Messages tab

  1. Navigate to the App Home section and under Show tabs. enable the Messages Tab.
  2. Enable Allow users to send Slash commands and messages from the messages tab. This allows users to directly interact with the app from the Messages section.

Step 7: Configure App Credentials

  1. Navigate to Basic Information and scroll down to the App Credentials section.
  2. Copy the values for Client ID, Client Secret, and Verification Token fields and provide them in the Configurations section of the Slack Channel on the XO Platform.

Step 8: Manage Distribution

To enable the public distribution of your app on Slack, do the following:

  1. Navigate to Manage Distribution and click Remove Hard Coded Information.
  2. Select I’ve reviewed and removed any hard-coded information and click Activate Public Distribution.

Step 9: Enable the Channel

To enable Slack on the XO Platform, follow the steps below:

  1. Navigate to Channels > Slack, and click the Configurations tab.
  2. Copy the below information and use it to define the app properties on Slack:
  • Bot Name
  • Redirect URL
  • Webhook URL

  1. Copy and paste the following information from the Slack app:
  • Client ID
  • Client Secret
  • Verification Token
  1.  Click Authorize.


  1. In the Customize Slack Channel’s Conversations section, select one of the following options to define the conversation behavior of the virtual assistant in a Slack channel when the user @mentions the VA:
  • Continue the conversation with the Virtual Assistant in the channel: This is the default selection. It maintains the current behavior for DM and group messages. However, if a user intentionally starts a thread with the virtual assistant, the conversation will continue within that thread.
  • Create a new thread for every user message(@mentioned to the Virtual assistant) in the channel: For every user message that is @mentioned to the Virtual assistant in the channel (both DM and Channel conversations), the Platform does the following:
    • Creates a new thread and replies to the user message in the thread.
    • Treats each conversation thread as a separate session whenever it is created in the channel, maintaining context isolation
    • Treats each conversation thread as a new user conversation whenever it is created for Slack DM.

Note:

  • All the consecutive interactions between the user and the VA happen in the same thread irrespective of the option you select.
  • The existing bots default to the first option, ensuring zero disruptions to current deployments.

  1. (Optional) Enable Proactive Notifications to send notifications from your Process Apps to your bot users via Slack. Please refer to Step2 here.

    Once enabled, select the required Process Apps from the list for your VA, and click Authorize.
  1. Under Enable Channel, select Yes and click Save to enable the Slack channel.

The Slack channel is added successfully. In Slack, it is optional to submit your app to the Slack App Directory.

After the channel is enabled and all configurations are verified, you can optionally publish the assistant to make it available for end-users, with the new channel. Learn more.

To learn more about working with Channels within the Kore.ai XO Platform, please see Channel Enablement.

Adding the Slack Channel

To set up the Slack channel on the XO Platform and interact with a VA using a Slack account, you must associate the VA with a Slack app.

The Slack channel integration supports Direct Messaging (DM) and Channel (group) conversations via the Platform. When a VA is added to a channel (group) within the Slack organization space, any member can start a group conversation using @mentions to talk to a specific VA.

The XO Platform offers native support for threaded conversations in the Slack channel. Users can initiate a new thread from any message within a Slack channel or direct message group and continue a conversation with the VA. The XO Platform leverages Slack’s Threads to enable one-on-one conversations without losing the conversation context.

Additionally, the Platform allows developers to configure how the Slack channel integration should handle DM and group conversations. It can automatically create a new thread whenever a user @mentions the virtual assistant in a Slack channel. This configuration flexibility gives developers control over the Threads feature.

Note: To use Slack Threads for your Virtual Assistant deployed on the Slack Channel, add the Bot token Scope “chat:write.public” to the existing Slack app under OAuth & Permissions > Scopes > Bot Token Scopes. Learn more.

Prerequisites

To enable this integration, you must already have a Slack account and be a member of a Slack organization space.

Setup Flow

To set up Slack as a channel, the developer should associate the VA with a Slack app, set up a bot user, and enable interactive components for this app. The important steps include:

  1. Create an App on Slack.
  2. Set Redirect URL and Scopes.
  3. Install the App.
  4. Enable Interactivity.
  5. Enable Events.
  6. Enable Interactions from the Message Tab,
  7. Configure App Credentials.
  8. Manage Distribution.
  9. Enable the Channel on the XO Platform.

Step 1: Create an App on Slack

  1. In the XO Platform, select the assistant to which you want to add the Slack Channel.
  2. Go to Deploy > Channels > Slack, and open the Configuration tab.
  3. In a new browser tab, Login to the Slack developer portal and go to the Your Apps section https://api.slack.com/apps. If this is your first app, click Create an App. If you already have some apps, then click Create New App.

  4. You will now be asked to choose how you’d like to configure your app’s scopes and settings. Select From Scratch.
  5. On the Create a Slack App window, enter the App Name and select a team from the Development Slack Team drop-down list. Use your assistant’s name as the App Name.

  6. After you enter the required information, click Create App. Slack will now create a new app and you are redirected to the Basic Information section of the new app.

Step 2: Set Redirect URL and Scopes

  1. Click OAuth & Permissions on the left menu and click Add New Redirect URL on the resulting page.
  2. On the XO Platform, copy the Redirect URL provided in the Configurations section of the Slack channel window and paste it in the Redirect URLs field of the OAuth Tokens & Redirect URLs page.
  3. Click Add, and then click Save URLs.

  4. Proceed to Scopes > Bot Token Scopes section.
  5. Add ‘incoming-webhook’, ‘chat:write’, and ‘chat:write.public’ scopes.
  6. If you would like your users to send attachments to your bot, then select the ‘files:write’ scope.

Note:

  • To allow users to send attachments to the VA, select the ‘files:write’ scope.
  • To send Proactive Notifications to users on Slack, select the users:read, users:read.email, and team:read scopes.


Step 3: Install the App

  1. Navigate to OAuth & Permissions > OAuth Tokens & Redirect URLs section, and click Install App to Workspace. Choose the required Workspace and complete the process.

  2. (Optional) To send Proactive Notifications to your users on Slack, copy the Bot User OAuth Token from the OAuth Tokens for Your Team section and provide it in the Slack Channel Configurations section on the XO Platform.


 

Step 4: Enable Interactivity

  1. Navigate to Interactivity & Shortcuts and enable Interactivity.
  2. On the XO Platform, copy the Webhook URL from the Slack channel’s Configurations tab and enter it in the Request URL field on Slack.

Important: The Webhook URL now includes the streamid in the API request to identify the virtual assistant being accessed. When an incoming request is qualified with this identifier, it helps with traceability, troubleshooting, and remediation at the network level during anomalies like malicious calls or unusual bot activity.

  1. Click Save Changes.

Step 5: Enable Events

  1. Navigate to Event Subscriptions and activate the Enable Events option.
  2. On the XO Platform, copy the Webhook URL from the Slack channel’s Configurations section and paste it in the Request URL field in the Enable Subscriptions section.
  3. In the Subscribe to Bot Events section, add ‘app_mention’, and ‘message.im’ events.
  4. Click Save Changes.

Step 6: Enable Interactions from the Messages tab

  1. Navigate to the App Home section and under Show tabs. enable the Messages Tab.
  2. Enable Allow users to send Slash commands and messages from the messages tab. This allows users to directly interact with the app from the Messages section.

Step 7: Configure App Credentials

  1. Navigate to Basic Information and scroll down to the App Credentials section.
  2. Copy the values for Client ID, Client Secret, and Verification Token fields and provide them in the Configurations section of the Slack Channel on the XO Platform.

Step 8: Manage Distribution

To enable the public distribution of your app on Slack, do the following:

  1. Navigate to Manage Distribution and click Remove Hard Coded Information.
  2. Select I’ve reviewed and removed any hard-coded information and click Activate Public Distribution.

Step 9: Enable the Channel

To enable Slack on the XO Platform, follow the steps below:

  1. Navigate to Channels > Slack, and click the Configurations tab.
  2. Copy the below information and use it to define the app properties on Slack:
  • Bot Name
  • Redirect URL
  • Webhook URL

  1. Copy and paste the following information from the Slack app:
  • Client ID
  • Client Secret
  • Verification Token
  1.  Click Authorize.


  1. In the Customize Slack Channel’s Conversations section, select one of the following options to define the conversation behavior of the virtual assistant in a Slack channel when the user @mentions the VA:
  • Continue the conversation with the Virtual Assistant in the channel: This is the default selection. It maintains the current behavior for DM and group messages. However, if a user intentionally starts a thread with the virtual assistant, the conversation will continue within that thread.
  • Create a new thread for every user message(@mentioned to the Virtual assistant) in the channel: For every user message that is @mentioned to the Virtual assistant in the channel (both DM and Channel conversations), the Platform does the following:
    • Creates a new thread and replies to the user message in the thread.
    • Treats each conversation thread as a separate session whenever it is created in the channel, maintaining context isolation
    • Treats each conversation thread as a new user conversation whenever it is created for Slack DM.

Note:

  • All the consecutive interactions between the user and the VA happen in the same thread irrespective of the option you select.
  • The existing bots default to the first option, ensuring zero disruptions to current deployments.

  1. (Optional) Enable Proactive Notifications to send notifications from your Process Apps to your bot users via Slack. Please refer to Step2 here.

    Once enabled, select the required Process Apps from the list for your VA, and click Authorize.
  1. Under Enable Channel, select Yes and click Save to enable the Slack channel.

The Slack channel is added successfully. In Slack, it is optional to submit your app to the Slack App Directory.

After the channel is enabled and all configurations are verified, you can optionally publish the assistant to make it available for end-users, with the new channel. Learn more.

To learn more about working with Channels within the Kore.ai XO Platform, please see Channel Enablement.

Menu