Creating a Slack Channel
Updated by Caique Main
- With your account and workspace already created, https://api.slack.com/apps and press the button to create a new app.
- Select the
Basic Informationgo to the Bots feature.
the Review Scopes to Addbutton to add the bot token scopes required for integration.
- Walk the page down to the Scopes content block.
- For "Bot Token Scopes" add the scopes of
users:read. For "User Token Scopes" add the scopes of
- Go up to the page until you find the
Install to Workspacebutton and trigger it to install the bot app for your workspace.
- Copy the tokens to put in the channel creation form for the slack bot on the Weni platform.
- On the slack apps page, go to the Basic Information menu to copy the
- After filling in all the fields on the form, press the button to finish.
- After the registration form is complete, copy the URL that will appear on the created channel configuration screen.
- Go back to the slack apps page, go to the
Event Subscriptionsmenu item, and activate.
- Then paste the URL and wait a moment until the word
Verifiedappears in the green color next to the Request URL title.
- Go down the page and add the events indicated in the image.
- Save modifications.
- After saving a yellow notification bar will appear asking you to reinstall the app for your workspace, click the link indicated.
After these steps the bot will be able to interact in the Slack Workspace Channels that is inserted, but still cannot exchange direct messages with users, to allow this too, follow the next instructions.
- To enable direct message exchange permission go to App Home and check the check box indicated in the image.
# How to activate quick replies/buttons in slack
In slack you need to enable sending quick responses in Features > Interactivity & Shortcuts in the Interactivity tab add in the Request URL field the Flows callback URL.
With all these steps your channel with slack bot will be integrated and able to send and receive messages in the slack channels that the bot is added or in direct messages.