An open API service indexing awesome lists of open source software.

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

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

[![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](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)