Sign up or login and create your app.
https://api.slack.com/apps
2) Select OAuth and Permission -> Bot Token Scopes. Then add the following Bot Token scopes shown below.
Then Install the app to the Workspace.
Add the following secret variables for deployment.
- SLACK_BOT_TOKEN (located in OAuth & Permission)
- SLACK_SIGNING_SECRET (located in Basic Information)
- SLACK_BOT_USER_ID (located in Basic Information)
Once your variable are added deply the template
Settings → Networking → Gen erate Domain
turn on Enable Events. Then in your request url paste your domain in this specific format.
Add the following scope in the Event Subscriptions below. Then Save changes.
Here are the requiremnets for your slack comand
- Command Name (has to be the states the same in the code)
- Request Url ( [http://{your-domain}/slack/events )
- Short Description
here are the Command Names in the template.
- /command_example
- /modal_example
- /button_example