Creating a bot integration with the Slack channel
You can deploy a chatbot on IBM RPA on premises. Learn how to create a bot integration with the Slack™ channel.
Before you begin
- Create a chatbot instance. See Creating a chatbot instance for instructions.
- Create a chat mapping for your IBM RPA chatbot script. See Creating a chat mapping for instructions.
Procedure
Create a bot in the Slack
- Login or sign in to your Slack account
.
- Create an Slack application
.
- From the Create an app, click From scratch.
- Enter the Slack application name.
- Select the name of your development team.
- Add a redirect URL. See Add a new redirect URL
for instructions.
- From the Features menu, click App Home at the Slack™ API page.
- Click Edit to edit the app display name. Use the bot handle equal to the chosen to create the chatbot instance in the
Default username
field. - Click the Save button.
- Select Always Show My Bot as Online to On.
- Click Edit to edit the app display name. Use the bot handle equal to the chosen to create the chatbot instance in the
- Add events subscriptions to the bot. See Subscribe to Bot Events
for instructions. Use the
Bot handle
you provided as the default username previously. - Optional: Add Slack-specific functionalities to the bot. See Add and configure interactive messages
for instructions.
- Get and save the
Client ID
,Client Secret
, andSigning Secret
data. See Copy your app informationfor instructions.
Configure your bot in Azure
- Open the Azure™ portal
.
- Go to your resources and click the Azure Bot you want.
- From the Settings menu, click Channels > Slack button.
- Enter the following data in the displayed fields:
Client ID
Client Secret
Signing Secret
- Optional:
Landing Page URL
What to do next
Test your Slack™ bot integration:
- Log in to the Slack workspace, for example,
http://<YOUR_WORKSPACE>-group.slack.com/
. - See the bot listed under the Apps section.
- Write a message and send it to the bot.