Creating Our Slack Application
Learn to create Slack application with a step-by-step tutorial.
We'll cover the following...
For the bot to interact with Slack, we need to set up a Slack application:
The slides are explained as follows:
Navigate to Slack on your browser. Here, you will need to click on the “Create an App” button.
We will then be presented with the following dialog box with sub-items such as “From scratch” and “From an app manifest.”
Choose the “From an app manifest” option. Choose the workspace we created at the beginning of this section and then press “Create App.” Click the “Next” button.
Copy the text from the file presented below:
display_information:name: PetStorefeatures:app_home:home_tab_enabled: truemessages_tab_enabled: falsemessages_tab_read_only_enabled: falsebot_user:display_name: PetStorealways_online: falseoauth_config:scopes:bot:- app_mentions:read- channels:history- channels:join- chat:write- chat:write.public- commands- files:write- groups:read- incoming-webhook- links:write- usergroups:read- users.profile:read- users:read- chat:write.customize- im:readsettings:event_subscriptions:bot_events:- app_mentioninteractivity:is_enabled: trueorg_deploy_enabled: falsesocket_mode_enabled: truetoken_rotation_enabled: false
Paste it onto the screen that is shown. Click the “Next” button.
We will be presented with a summary of the bot's permissions. Click the “Create” button.
This will move us to a page that is called “Basic Information.” Scroll down the page until we get to “App-Level Tokens,” as can be seen in the figure. Click the “Generate Token and Scopes” ...