This repo contains everything you need to get started building a Slack bot with Botkit. The repo is a modified version of Botkit Starter Slack project.
- Remix a project on Glitch
- Change auto-generated project name to one that makes more sense
- Create new Slack application here
- Set
client id
andclient secret
values in.env
file - Set a nice bot icon
- Open
<OAuth & Permissions>
and set redirect url to<botUrl>/oauth
- Open
<Interactive Components>
and set request url to<botUrl>/slack/receive
- Open
<Event subscriptions>
and set request url to<botUrl>/slack/receive
- Open and enable
<Bot User Events>
. Enable events, set request url to<botUrl>/slack/receive
and include all/message.*/
workspace events - Open
<Bot Users>
, check<Always Show My Bot as Online>
and add the bot user - Visit the
<botUrl>
and press<Add to Slack>
- Invite bot to a channel
- Implement skills/welcome_on_join.js (reinstall the bot if it doesn work)
- Implement skills/say_something.js
- Open
<Slash commands>
and set up/pic
slash command that points to<botUrl>/slack/receive
. The Slack should prompt you to reinstall the bot. Follow<reinstall>
link - Implement skills/pic.js
- Enhance skills/pic.js with recommendations
- Implement skills/respond_on_endorsement.js