Slide 1

Slide 1 text

Introducing Juvet Building Bots In Elixir

Slide 2

Slide 2 text

serial # R2-D2

Slide 3

Slide 3 text

emoji-bot

Slide 4

Slide 4 text

emoji-bot

Slide 5

Slide 5 text

But I was going to go into Tosche Station to pick up some power converters… " emoji-bot

Slide 6

Slide 6 text

a long time ago…

Slide 7

Slide 7 text

a long time ago… 1950

Slide 8

Slide 8 text

a long time ago… 1965 1950

Slide 9

Slide 9 text

a long time ago… 1965 1950

Slide 10

Slide 10 text

a long time ago…

Slide 11

Slide 11 text

a long time ago… 1995

Slide 12

Slide 12 text

a long time ago… 1995

Slide 13

Slide 13 text

a long time ago… 1995 1997

Slide 14

Slide 14 text

a long time ago… 1995 1997

Slide 15

Slide 15 text

a long time ago…

Slide 16

Slide 16 text

a long time ago… 2000

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

a long time ago… 2000

Slide 21

Slide 21 text

a long time ago… 2000 2007

Slide 22

Slide 22 text

a long time ago… 2000 2007

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

2018

Slide 25

Slide 25 text

caring module #D5e7r6

Slide 26

Slide 26 text

3Apps

Slide 27

Slide 27 text

familiar 1.

Slide 28

Slide 28 text

familiar 1. 2. < barriers

Slide 29

Slide 29 text

UBER

Slide 30

Slide 30 text

UBER

Slide 31

Slide 31 text

UBER

Slide 32

Slide 32 text

UBER

Slide 33

Slide 33 text

UBER

Slide 34

Slide 34 text

Bewhere users the are

Slide 35

Slide 35 text

‘86

Slide 36

Slide 36 text

‘86

Slide 37

Slide 37 text

‘86 ‘96

Slide 38

Slide 38 text

‘86 ‘96 ‘06

Slide 39

Slide 39 text

‘16 ‘86 ‘96 ‘06

Slide 40

Slide 40 text

speaking module #S40926

Slide 41

Slide 41 text

UI the design

Slide 42

Slide 42 text

Can you schedule a meeting for tomorrow with Jim and Tim? Which Jim do you want me to schedule a meeting with? 1. Jim F. 2. Jim P. Sure. It looks like the afternoon is best. Do you want me to schedule this for then? Meeting invite went out for 2PM tomorrow to everyone. I will follow up to confirm everyone is booked. Ok. There is no more free time tomorrow. Do you want me to try for Wednesday? Multiple contacts "Yes" "No"

Slide 43

Slide 43 text

R.A.N random access navigation Can you schedule a meeting?

Slide 44

Slide 44 text

R.A.N random access navigation Can you schedule a meeting? I sure can. With whom?

Slide 45

Slide 45 text

R.A.N random access navigation Can you schedule a meeting? I sure can. With whom? With Tim

Slide 46

Slide 46 text

R.A.N random access navigation Can you schedule a meeting? I sure can. With whom? With Tim Got it. When?

Slide 47

Slide 47 text

R.A.N random access navigation Can you schedule a meeting? I sure can. With whom? With Tim Got it. When? Tomorrow at 2

Slide 48

Slide 48 text

R.A.N random access navigation Can you schedule a meeting? I sure can. With whom? With Tim Got it. When? Tomorrow at 2 Done. I scheduled your meeting with Tim for tomorrow at 2.

Slide 49

Slide 49 text

R.A.N random access navigation Can you schedule a meeting with Tim for tomorrow at 2?

Slide 50

Slide 50 text

R.A.N random access navigation Can you schedule a meeting with Tim for tomorrow at 2? Done. I scheduled your meeting with Tim for tomorrow at 2.

Slide 51

Slide 51 text

R.A.N random access navigation Can you schedule a meeting with Tim for tomorrow at 2? Done. I scheduled your meeting with Tim for tomorrow at 2. Actually can you make it for 3?

Slide 52

Slide 52 text

R.A.N random access navigation Can you schedule a meeting with Tim for tomorrow at 2? Done. I scheduled your meeting with Tim for tomorrow at 2. Actually can you make it for 3? Done. I re-scheduled it with Tim for 3 tomorrow.

Slide 53

Slide 53 text

R.A.N random access navigation Detect parameters 1.

Slide 54

Slide 54 text

R.A.N random access navigation Detect parameters 1. 2. Allow change

Slide 55

Slide 55 text

Design Challenges

Slide 56

Slide 56 text

Discoverability

Slide 57

Slide 57 text

Discoverability Are you ready to have that meeting? You can reply with "yes" or "no". yes

Slide 58

Slide 58 text

Discoverability

Slide 59

Slide 59 text

Discoverability Meeting scheduled! Did you know you can reschedule by just saying "reschedule meeting with Dave"?

Slide 60

Slide 60 text

Validation

Slide 61

Slide 61 text

Validation Andy wants to meet with you today at 2PM. Are you available? blerg

Slide 62

Slide 62 text

Validation

Slide 63

Slide 63 text

Validation I'm sorry, "blerg" is not an answer. You can say "yes" or "no". Are you available to meet with Andy today at 2PM?

Slide 64

Slide 64 text

Selection

Slide 65

Slide 65 text

Selection Where do you want to meet tonight with MacKenzie? 1. Coffee Shop 2. Restaurant for dinner 3. Local bar 1

Slide 66

Slide 66 text

Selection

Slide 67

Slide 67 text

Selection Ok. Which coffee shop? 1. Starbucks on Central 2. Cup 'o Joe Downtown

Slide 68

Slide 68 text

Best Practices

Slide 69

Slide 69 text

Gender Neutral

Slide 70

Slide 70 text

Gender Neutral are you a boy or a girl? Neither. Those X-Wing pods are skinny. I would not fit with any extra parts.

Slide 71

Slide 71 text

Beer Test

Slide 72

Slide 72 text

Beer Test Just keep me away from those Jawas and we'll be cool. you are my best friend

Slide 73

Slide 73 text

Different Responses

Slide 74

Slide 74 text

Different Responses how come you had rocket feet early on but then you didn't after episode 3? They were using potatoes for special effects in the first 3 movies. How would they pull off rocket feet?

Slide 75

Slide 75 text

Different Responses

Slide 76

Slide 76 text

Different Responses Yeah, but how do you explain Jabba the Hutt in the special edition? They were using potatoes for special effects in the first 3. How would they pull off rocket feet?

Slide 77

Slide 77 text

Use Their Surroundings

Slide 78

Slide 78 text

Use Their Surroundings Dagobah did not look like a pleasant place! It's 70 degrees in February where you're at. Global warming is affecting all systems.

Slide 79

Slide 79 text

Fallback

Slide 80

Slide 80 text

Fallback Can you blerg? I'm sorry, that oil bath got into some of my circuits. What were you saying?

Slide 81

Slide 81 text

power module #63wrqy

Slide 82

Slide 82 text

power module #63wrqy

Slide 83

Slide 83 text

speaking module #S40926

Slide 84

Slide 84 text

speaking module #S40926

Slide 85

Slide 85 text

listen module #aaYg5

Slide 86

Slide 86 text

listen module #aaYg5

Slide 87

Slide 87 text

process module #9862sw

Slide 88

Slide 88 text

process module #9862sw

Slide 89

Slide 89 text

No content

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

Slack App Directory

Slide 92

Slide 92 text

Slack App Directory

Slide 93

Slide 93 text

Add to Slack

Slide 94

Slide 94 text

Add to Slack

Slide 95

Slide 95 text

Authorize app

Slide 96

Slide 96 text

Authorize app

Slide 97

Slide 97 text

Authorize app

Slide 98

Slide 98 text

new bot user

Slide 99

Slide 99 text

new bot user

Slide 100

Slide 100 text

chat!

Slide 101

Slide 101 text

power module #63wrqy

Slide 102

Slide 102 text

Why Elixir?

Slide 103

Slide 103 text

Processes

Slide 104

Slide 104 text

process #621772 Processes process #382901 process #639011 process #235671

Slide 105

Slide 105 text

Fast

Slide 106

Slide 106 text

Fast

Slide 107

Slide 107 text

Create Slack App http://api.slack.com/applications/new

Slide 108

Slide 108 text

Create Slack App http://api.slack.com/applications/new

Slide 109

Slide 109 text

ngrok

Slide 110

Slide 110 text

Create Slack App http://api.slack.com/applications/new

Slide 111

Slide 111 text

Web Component

Slide 112

Slide 112 text

Web Component

Slide 113

Slide 113 text

Web Component

Slide 114

Slide 114 text

OAuth

Slide 115

Slide 115 text

OAuth

Slide 116

Slide 116 text

OAuth

Slide 117

Slide 117 text

OAuth

Slide 118

Slide 118 text

OAuth

Slide 119

Slide 119 text

routes

Slide 120

Slide 120 text

controller

Slide 121

Slide 121 text

controller

Slide 122

Slide 122 text

controller

Slide 123

Slide 123 text

oauth response {"provider"=>"slack", "uid"=>"UXXXXXXX", "info"=> {"nickname"=>"jwright", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX", "name"=>nil, "email"=>nil, "first_name"=>nil, # … }, "credentials"=> {"token"=>"xoxp-XXXXX-XXXXXXX-XXXXXX", "expires"=>false}, "extra"=> {"raw_info"=> {"ok"=>true, "url"=>"https://bf.slack.com/", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX"}, "web_hook_info"=>{}, "bot_info"=> {"bot_user_id"=>"UXXXXXX", "bot_access_token"=>"xoxb-XXXXXX-XXXXXXXX"}}}}

Slide 124

Slide 124 text

oauth response {"provider"=>"slack", "uid"=>"UXXXXXXX", "info"=> {"nickname"=>"jwright", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX", "name"=>nil, "email"=>nil, "first_name"=>nil, # … }, "credentials"=> {"token"=>"xoxp-XXXXX-XXXXXXX-XXXXXX", "expires"=>false}, "extra"=> {"raw_info"=> {"ok"=>true, "url"=>"https://bf.slack.com/", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX"}, "web_hook_info"=>{}, "bot_info"=> {"bot_user_id"=>"UXXXXXX", "bot_access_token"=>"xoxb-XXXXXX-XXXXXXXX"}}}}

Slide 125

Slide 125 text

oauth response {"provider"=>"slack", "uid"=>"UXXXXXXX", "info"=> {"nickname"=>"jwright", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX", "name"=>nil, "email"=>nil, "first_name"=>nil, # … }, "credentials"=> {"token"=>"xoxp-XXXXX-XXXXXXX-XXXXXX", "expires"=>false}, "extra"=> {"raw_info"=> {"ok"=>true, "url"=>"https://bf.slack.com/", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX"}, "web_hook_info"=>{}, "bot_info"=> {"bot_user_id"=>"UXXXXXX", "bot_access_token"=>"xoxb-XXXXXX-XXXXXXXX"}}}}

Slide 126

Slide 126 text

oauth response {"provider"=>"slack", "uid"=>"UXXXXXXX", "info"=> {"nickname"=>"jwright", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX", "name"=>nil, "email"=>nil, "first_name"=>nil, # … }, "credentials"=> {"token"=>"xoxp-XXXXX-XXXXXXX-XXXXXX", "expires"=>false}, "extra"=> {"raw_info"=> {"ok"=>true, "url"=>"https://bf.slack.com/", "team"=>"Brilliant Fantastic", "user"=>"jwright", "team_id"=>"TXXXXXX", "user_id"=>"UXXXXXX"}, "web_hook_info"=>{}, "bot_info"=> {"bot_user_id"=>"UXXXXXX", "bot_access_token"=>"xoxb-XXXXXX-XXXXXXXX"}}}}

Slide 127

Slide 127 text

No content

Slide 128

Slide 128 text

Start Bot

Slide 129

Slide 129 text

Start Bot

Slide 130

Slide 130 text

Start Bot

Slide 131

Slide 131 text

Start Bot

Slide 132

Slide 132 text

Start Bot

Slide 133

Slide 133 text

Start Bot

Slide 134

Slide 134 text

Start Bot http://api.slack.com/rtm

Slide 135

Slide 135 text

Start Bot

Slide 136

Slide 136 text

speaking module #S40926

Slide 137

Slide 137 text

Introduce Bot http://api.slack.com/chat.postMessage

Slide 138

Slide 138 text

listen module #aaYg5

Slide 139

Slide 139 text

Event listening http://api.slack.com/events

Slide 140

Slide 140 text

process module #9862sw

Slide 141

Slide 141 text

Natural language processing

Slide 142

Slide 142 text

Natural language processing Is BB8 ready to go?

Slide 143

Slide 143 text

Natural language processing Is BB8 ready to go? intent: charge_status

Slide 144

Slide 144 text

Natural language processing Is BB8 ready to go? intent: entities: charge_status target: "BB8" status: "ready"

Slide 145

Slide 145 text

Natural language processing Is BB8 ready to go? intent: entities: confidence: charge_status target: "BB8" status: "ready" 0.82

Slide 146

Slide 146 text

nlp as a service

Slide 147

Slide 147 text

nlp as a service

Slide 148

Slide 148 text

nlp as a service http://api.wit.ai/message

Slide 149

Slide 149 text

nlp as a service

Slide 150

Slide 150 text

go and build bots

Slide 151

Slide 151 text

Thank you for learning about how to build me. go and build bots

Slide 152

Slide 152 text

go and build bots

Slide 153

Slide 153 text

I know I'm not as difficult to build as that pain in the ass gold-plated primadonna. go and build bots

Slide 154

Slide 154 text

go and build bots

Slide 155

Slide 155 text

…and it took Anakin 7 years to build that useless translator. go and build bots

Slide 156

Slide 156 text

Resources http://github.com/juvet/juvet

Slide 157

Slide 157 text

Resources http://dev4slack.xoxco.com

Slide 158

Slide 158 text

Resources http://api.slack.com

Slide 159

Slide 159 text

Resources http://twitter.com/slackapi

Slide 160

Slide 160 text

Resources http://medium.com/@slackapi

Slide 161

Slide 161 text

Resources http://botweekly.com

Slide 162

Slide 162 text

Tatsu http://tatsu.io/middevcon

Slide 163

Slide 163 text

Tatsu http://tatsu.io/middevcon

Slide 164

Slide 164 text

@jwright

Slide 165

Slide 165 text

Thanks for listening… …to a human? @jwright