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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Андрей Листочкин (Andrey Listochkin)
April 08, 2017
Programming
470
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
We Make Bots. For Real
Андрей Листочкин (Andrey Listochkin)
April 08, 2017
More Decks by Андрей Листочкин (Andrey Listochkin)
See All by Андрей Листочкин (Andrey Listochkin)
Everybody Stand Back! I Know Regular Expressions
listochkin
0
220
Command-line scripting with Rust. Wait, what?!
listochkin
0
420
Server Memory - BuildStuff Ukraine 2019
listochkin
0
70
Server Memory - Chernivtsi JS 2019
listochkin
1
170
10 Years Later
listochkin
0
400
Managing Managers - DevTalks iHUB
listochkin
0
86
Time, Numbers, Text
listochkin
1
660
Software Licensing: A Minefield Guide
listochkin
0
180
Devops for A Busy Developer - XP Days 2016
listochkin
0
190
Other Decks in Programming
See All in Programming
Claude Opus 4.6以後の受託開発エンジニアの変化(Claude Code開発ノウハウ大公開スペシャルbyクラスメソッド)
iidatakuma
1
850
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
390
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1k
初めてのKubernetes 本番運用でハマった話
oku053
0
130
SREの積み重ねがAI駆動開発のガードレールになった ― 7つの実践/SRE Guardrails The 7
tomoyakitaura
8
5.4k
自作OSでスライド発表する
uyuki234
1
3.9k
はてなアカウント基盤 State of the Union
cockscomb
1
1.3k
PHP初心者セッション2026 〜生成AIでは見えない裏側を知る:今だからLAMPを通して仕組みを学ぶ〜
kashioka
0
660
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
1.2k
音楽のための関数型プログラミング言語mimiumにおける多段階計算の活用
tomoyanonymous
1
360
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
220
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
190
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
320
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
330
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
420
What's in a price? How to price your products and services
michaelherold
247
13k
The Language of Interfaces
destraynor
162
27k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
260
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Building Adaptive Systems
keathley
44
3.1k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Deep Space Network (abreviated)
tonyrice
0
230
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