Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
COSCUP 2020 - 玩耍 Ruby 樂高,改組一隻聊天機器人!
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Chao.Wu
August 02, 2020
Programming
89
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
COSCUP 2020 - 玩耍 Ruby 樂高,改組一隻聊天機器人!
Chao.Wu
August 02, 2020
Other Decks in Programming
See All in Programming
気持ちぃ〜角丸 Squircle
ryu1013
0
310
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
300
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
すこし踏み込む CancellationToken
htkym
2
1.7k
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
270
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
290
Featured
See All Featured
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Being A Developer After 40
akosma
92
590k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
My Coaching Mixtape
mlcsv
0
360
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
The Cult of Friendly URLs
andyhume
79
7k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Transcript
改組一隻聊天 機器 人 ! 玩耍 Ru by 樂高
‧ 吳兆召 / Lesley Wu ‧ 現任 五倍紅寶石 / 網頁工程師
五倍礦工在線中 Ruby Online
‧ Ruby 是程式語言。 ‧ Rails 是使用 Ruby 語言寫的開源 Web 框架。
‧ 「學 Rails 只能開發網頁應用程式嗎?」 你使用 Ruby / Rails 開發什麼應用呢?
手機應用程式 網頁應用程式 Mobile App Web App ?
手機應用程式 網頁應用程式 Mobile App Web App 聊天 機器人 Chatbot
2016 年 MIC「行動 App 消費者調查分析」 ‧ 使用社交通訊類 App 佔比 80.9%
‧ 40.1% 消費者使用超過 30 分鐘 ‧ 每天開啟次數最多的 App 第一名為 LINE 為什麼是聊天機器人?
回應模式 ‧ 聊天機器人(自動回覆訊息、Webhook 功能) ‧ 聊天(真人聊天、自動回應訊息、智慧聊天) LINE Chatbot
聊天機器⼈人模式 ⾃自動回覆訊息 LINE Chatbot
聊天機器⼈人模式 ⾃自動回覆訊息 LINE Chatbot 發送訊息 自動回覆訊息
聊天機器⼈人模式 Webhook Chatbot & Rails ‧ 接收 POST request 的網址
(Webhook URL)
聊天機器⼈人模式 Webhook Chatbot & Rails ‧ 關掉 Rails 的 CSRF
檢查
聊天機器⼈人模式 Webhook Chatbot & Rails
聊天機器⼈人模式 Webhook Chatbot & Rails Webhook URL 200 OK
聊天機器⼈人模式 Webhook LINE Messaging API ‧ LINE Messaging API SDK
for Ruby
聊天機器⼈人模式 Webhook LINE Messaging API ‧ 初始化 LINE bot 物件
LINE Messaging API ‧ 使用 `reply_message` 回覆訊息 聊天機器⼈人模式 Webhook
LINE Messaging API 聊天機器⼈人模式 Webhook
LINE Chatbot 與 Rails 發送訊息 自動回覆訊息 Webhook URL 200 OK
LINE Messaging API ‧ 使用 `push_message` 傳送訊息 聊天機器⼈人模式 Webhook
LINE Messaging API 聊天機器⼈人模式 Webhook
聊天機器⼈人模式 Webhook Signature 機制 ‧ 共用的密鑰(Token)來對訊息內 容加密。 ‧ 使用相同密鑰對訊息加密,就會 獲得一段驗證碼。
‧ 比對驗證碼跟發送者提供給我們 的是否相同。
聊天機器⼈人模式 Webhook LINE Messaging API ‧ 使用 `validate_signature` 實作 Signature
認證機制
聊天機器⼈人模式 Webhook Kamigo Chatbot Framework ‧ Kamigo ‧ Chatbot Framework
based on MVC
Kamigo Chatbot Framework 聊天機器⼈人模式 Webhook
Contact Me ‧ GitHub ID: chaowudev ‧ FB: Lesley Wu
‧ E-mail:
[email protected]
聯絡方式