https://github.com/sizovs/chatbot-in-20-mins
This repo contains everything you need to get started building a Slack bot with Botkit
https://github.com/sizovs/chatbot-in-20-mins
chatbot devternity livedemo tutorials
Last synced: 8 months ago
JSON representation
This repo contains everything you need to get started building a Slack bot with Botkit
- Host: GitHub
- URL: https://github.com/sizovs/chatbot-in-20-mins
- Owner: sizovs
- Created: 2017-07-02T11:32:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T11:19:00.000Z (over 8 years ago)
- Last Synced: 2025-10-12T11:16:32.853Z (8 months ago)
- Topics: chatbot, devternity, livedemo, tutorials
- Language: JavaScript
- Size: 19.5 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Materials for "Chatbot in 20 minutes" presentation
This repo contains everything you need to get started building a Slack bot with [Botkit](https://botkit.ai). The repo is a modified version of [Botkit Starter Slack](https://github.com/howdyai/botkit-starter-slack) project.
### Getting Started
1. Remix a project on Glitch
[](https://glitch.com/edit/#!/import/github/eduardsi/chatbot-in-20-mins)
2. Change auto-generated project name to one that makes more sense
### Configure Slack
1. Create new Slack application [here](https://api.slack.com/apps)
2. Set `client id` and `client secret` values in `.env` file
2. Set a nice bot icon
4. Open `` and set redirect url to `/oauth`
5. Open `` and set request url to `/slack/receive`
6. Open `` and set request url to `/slack/receive`
7. Open and enable ``. Enable events, set request url to `/slack/receive` and include all `/message.*/` workspace events
8. Open ``, check `` and add the bot user
9. Visit the `` and press ``
### Let's code!
1. Invite bot to a channel
2. Implement [skills/welcome_on_join.js](https://gist.github.com/eduardsi/f2e31b34ad65bb97c949363a972824a5) (reinstall the bot if it doesn work)
3. Implement [skills/say_something.js](https://gist.github.com/eduardsi/841c35dd500db053fa4cce9ab7db0d8b)
4. Open `` and set up `/pic` slash command that points to `/slack/receive`. The Slack should prompt you to reinstall the bot. Follow `` link
5. Implement [skills/pic.js](https://gist.github.com/eduardsi/645d6237503912dd190f06f31df1f4f5)
6. Enhance [skills/pic.js](https://gist.github.com/eduardsi/0f2ea5b0ed0ca49026c0175b5d4ba2fb) with recommendations
7. Implement [skills/respond_on_endorsement.js](https://gist.github.com/eduardsi/c9ec9fc9865709e5a458446b29143570)