Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
We Make Bots. For Real
Search
Андрей Листочкин (Andrey Listochkin)
April 08, 2017
Programming
0
400
We Make Bots. For Real
Андрей Листочкин (Andrey Listochkin)
April 08, 2017
Tweet
Share
More Decks by Андрей Листочкин (Andrey Listochkin)
See All by Андрей Листочкин (Andrey Listochkin)
Everybody Stand Back! I Know Regular Expressions
listochkin
0
150
Command-line scripting with Rust. Wait, what?!
listochkin
0
330
Server Memory - BuildStuff Ukraine 2019
listochkin
0
32
Server Memory - Chernivtsi JS 2019
listochkin
1
140
10 Years Later
listochkin
0
350
Managing Managers - DevTalks iHUB
listochkin
0
45
Time, Numbers, Text
listochkin
1
570
Software Licensing: A Minefield Guide
listochkin
0
130
Devops for A Busy Developer - XP Days 2016
listochkin
0
180
Other Decks in Programming
See All in Programming
ミリしらMCP勉強会
watany
4
770
「影響が少ない」を自分の目でみてみる
o0h
PRO
2
1.1k
Strategic Design (DDD)for the Frontend @DDD Meetup Stuttgart
manfredsteyer
PRO
0
150
音声プラットフォームのアーキテクチャ変遷から学ぶ、クラウドネイティブなバッチ処理 (20250422_CNDS2025_Batch_Architecture)
thousanda
0
180
ComposeでWebアプリを作る技術
tbsten
0
110
Thank you <💅>, What's the Next?
ahoxa
1
300
Exit 8 for SwiftUI
ojun9
0
130
Agentic Applications with Symfony
el_stoffel
2
300
プロダクト横断分析に役立つ、事前集計しないサマリーテーブル設計
hanon52_
2
440
メモリウォールを超えて:キャッシュメモリ技術の進歩
kawayu
0
1.9k
SwiftUI API Design Lessons
niw
1
290
Java 24まとめ / Java 24 summary
kishida
3
500
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
80
8.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
Reflections from 52 weeks, 52 projects
jeffersonlam
349
20k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.1k
The Pragmatic Product Professional
lauravandoore
33
6.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
For a Future-Friendly Web
brad_frost
176
9.7k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
Site-Speed That Sticks
csswizardry
5
490
Transcript
None
@listochkin
<3 Ruby
No Ruby today
None
Rust Favorite language Ruby Extensions WASM
RustFest Workshops Intro Advanced Adoption
Mozilla Travis CI Samsung Chef CloudFlare Evo
Steve Klabnik lislis Ingvar Stepanyan Paul Colomiets
Rust is for Rubyists
http://bit.ly/rustfest2017ruby 50% off
I’ll talk about my work
None
Bot building system
None
None
Conceived about 6 years ago
We’ve been building bots before it was cool
Bot
IRC WoW bots Web Scrapers
Chatbots
Conversational Commerce
A bot pretends to be a human
Makes stuff happen
Emphasis on “Human” aspect
Wit.ai API.ai Motion.ai Microsoft Bot Framework Init.ai <Whatever>.ai
Can you <deliver> <my order> to <my work address> instead?
What to do when there’s no match?
Guess Bail out
AI + Human
Facebook M 70% required human
Leaky abstraction
Bots are Dead End of story
“Human”-like is a red herring
How vs What
Goal Scenario Guidance
Humanize later
Scenario
Workflow
Do X Do Y Do Z
Customer case: PeopleReady
Workforce matching
“Uber for Workers”
I’m a construction worker I’m free next Friday
I need 5 extra construction workers on site next Friday
Phone Decision Tree
“If you need X press 1”
IVR “Interactive Voice Response”
Step 1: Static Tree
Step 2-∞: Refinements Shortcuts A/B tests
Identify a person/role Reduce tree
Known pending request: top-level notification
Global shortcuts
Keywords, numbers, etc.
Bot-to-Bot IVR-to-IVR
Pass context
Session storage HTTP/SIP headers Forward DTMFs
Dumb Boring
Efficient Predictable Less frustrating
None
Workflow Builder Execution Services Operator Apps Reporting
Many competitors Not a winner-takes-all
Lessons Learned
1. Providers
Slack, Messenger, Telegram, Skype, Email, sms, HipChat, WeChat, LINE, etc
The more the better?
SMS Phone Email
No middle man apps Brand <=> Phone
2. Execution model
State Machine
State Machine as Data
Flow Tree => Data Structure Executor
State Machine as Code
Flow Tree => Data => Code
Separate Infrastructure Separate Deploys Separate Load
AWS Lambda
3. Steps are the key
if … else Choice 10-15
Smart Steps 100s
Phone Transfer
Transfer to X Backup number? Voicemail? Transcode?
Feature discovery
Higher quality Bots by default
Programmable steps
Flow => Step
Step = Logic + UI both programmable
Custom JS Step
4. Service Flows
Pick up the phone Identify a User Voice Choice …
Number Provisioning API Adapter Reporting Events Hide Secrets …
Service flows Global Events with ACL
5. Dogfooding
Everything is a bot
Admin tools Monitoring Reporting Billing
6. UI and Reporting Sell Platform retains
UI! So many capabilities!
“Can you set it up for us?”
Typical Customer: sets thing up once receives reports
7. Reporting!
SQL Server OLAP Direct access
Let customers play with the data
8. AWS Lambda
async (req, context) => { ... }
Node 4.3 (6!) Python Java
Use Large
1 request = 1 new process
Dynamo & Redis :) Mongo, SQL :(
Dynamo is amazing!
9. Voice
Voice is inherently hard!
Twilio Best API and DevTools Still hard :(
Larger customers need cheaper voice
TwiML Twilio SIP + Custom Voice Direct SIP-to-SIP
SIP + RTP
SIP Commands & Events Bi-directional
RTP - audio
Often Arcane practices
Huge Risk
Opens doors
10. Small things Big Impact
Haiti Earthquake SMS Fundraiser
Suicide Prevention Hotline
Washington DC city bot
Roadside assistance Match-making Marketing Customer support Sales
OneReach
29-30 RustFest http://bit.ly/rustfest2017ruby 50% off
29-30 RustFest http://bit.ly/rustfest2017ruby 50% off 2 free tickets today