Writing Slack Bots in JavaScript

29
codemotion Berlin October 2017 How to write your own Slack ChatBots in JavaScript Ansgar Schmidt IBM, Developer Advocate @ansi ansi.23-5.eu Niklas Heidloff IBM, Developer Advocate @nheidloff heidloff.net

Transcript of Writing Slack Bots in JavaScript

Page 1: Writing Slack Bots in JavaScript

codemotion Berlin

October 2017

How to write your own Slack ChatBots in JavaScript

Ansgar Schmidt

IBM, Developer Advocate

@ansi

ansi.23-5.eu

Niklas Heidloff

IBM, Developer Advocate

@nheidloff

heidloff.net

Page 2: Writing Slack Bots in JavaScript

@ansi @nheidloff

Sample Bot

Page 3: Writing Slack Bots in JavaScript

@ansi @nheidloff

Architecture

User

Slack

Slack

Your Bot

Code

External

Data

Source

API

IBM

WatsonBotkit

WatsonAdmin

Page 4: Writing Slack Bots in JavaScript

@ansi @nheidloff

Slack APIs and Programming Model

Page 5: Writing Slack Bots in JavaScript

@ansi @nheidloff

Slack Configuration

Page 6: Writing Slack Bots in JavaScript

@ansi @nheidloff

Slack Configuration

Page 7: Writing Slack Bots in JavaScript

@ansi @nheidloff

Slack Configuration

Page 8: Writing Slack Bots in JavaScript

@ansi @nheidloff

Slack Configuration

Page 9: Writing Slack Bots in JavaScript

Slack Configuration

Page 10: Writing Slack Bots in JavaScript

@ansi @nheidloff

Slack Configuration

Page 11: Writing Slack Bots in JavaScript

Node.js open source

framework

Support of various

messaging platforms

Support of various

NLP services

@ansi @nheidloff

Botkit

Page 12: Writing Slack Bots in JavaScript

@ansi @nheidloff

Botkit – Configuration

Page 13: Writing Slack Bots in JavaScript

@ansi @nheidloff

Botkit –

Real Time Messaging

Page 14: Writing Slack Bots in JavaScript

@ansi @nheidloff

Botkit – Adding Bots

Page 15: Writing Slack Bots in JavaScript

Botkit – Replies and Conversations

Page 16: Writing Slack Bots in JavaScript

@ansi @nheidloff

Watson Conversation

Page 17: Writing Slack Bots in JavaScript

@ansi @nheidloff

Watson

Page 18: Writing Slack Bots in JavaScript

Watson

Page 19: Writing Slack Bots in JavaScript

@ansi @nheidloff

Watson

Page 20: Writing Slack Bots in JavaScript

@ansi @nheidloff

Message Builder

Page 21: Writing Slack Bots in JavaScript

@ansi @nheidloff

Watson

Page 22: Writing Slack Bots in JavaScript

@ansi @nheidloff

Watson Botkit Middleware

Page 23: Writing Slack Bots in JavaScript

@ansi @nheidloff

Watson Botkit Middleware

Page 24: Writing Slack Bots in JavaScript

@ansi @nheidloff

Watson Responses

Page 25: Writing Slack Bots in JavaScript

Lookup Weather

Page 26: Writing Slack Bots in JavaScript

@ansi @nheidloff

New Intent: Get Time

Page 27: Writing Slack Bots in JavaScript

@ansi @nheidloff

Dialog

Page 28: Writing Slack Bots in JavaScript

@ansi @nheidloff

Get Time Code

Page 29: Writing Slack Bots in JavaScript

Bluemix Trial: http://codemotion17.mybluemix.net/

Botkit: https://botkit.ai/

Sample: https://github.com/nheidloff/slack-watson-bot

Watson Conversation:

https://www.ibm.com/watson/developercloud/conversation.html

@ansi @nheidloff

Q & A and Resources