Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
440
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
200
Command-line scripting with Rust. Wait, what?!
listochkin
0
400
Server Memory - BuildStuff Ukraine 2019
listochkin
0
56
Server Memory - Chernivtsi JS 2019
listochkin
1
150
10 Years Later
listochkin
0
380
Managing Managers - DevTalks iHUB
listochkin
0
67
Time, Numbers, Text
listochkin
1
610
Software Licensing: A Minefield Guide
listochkin
0
160
Devops for A Busy Developer - XP Days 2016
listochkin
0
190
Other Decks in Programming
See All in Programming
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
110
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
460
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
710
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.3k
ZOZOにおけるAI活用の現在 ~モバイルアプリ開発でのAI活用状況と事例~
zozotech
PRO
8
5.6k
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
230
DSPy Meetup Tokyo #1 - はじめてのDSPy
masahiro_nishimi
1
160
【CA.ai #3】Google ADKを活用したAI Agent開発と運用知見
harappa80
0
300
【CA.ai #3】ワークフローから見直すAIエージェント — 必要な場面と“選ばない”判断
satoaoaka
0
240
認証・認可の基本を学ぼう前編
kouyuume
0
200
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
110
sbt 2
xuwei_k
0
290
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.7k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
How STYLIGHT went responsive
nonsquared
100
6k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
70k
Done Done
chrislema
186
16k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Building Applications with DynamoDB
mza
96
6.8k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
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