Submit Search
Upload
徒手打造自己的粉專客服機器人
•
11 likes
•
2,146 views
Sasaya Hu
Follow
Laravel Conference Taiwan 2018 Sasaya @ 張榮發文教基金會 國際會議中心
Read less
Read more
Technology
Report
Share
Report
Share
1 of 129
Download now
Download to read offline
Recommended
Making it Work Offline: Current & Future Offline APIs for Web Apps
Making it Work Offline: Current & Future Offline APIs for Web Apps
Natasha Rooney
A Modest Introduction to Swift
A Modest Introduction to Swift
John Anderson
Swoole Love PHP
Swoole Love PHP
Yi-Feng Tzeng
Pharo JS
Pharo JS
Pharo
Modern Perl for the Unfrozen Paleolithic Perl Programmer
Modern Perl for the Unfrozen Paleolithic Perl Programmer
John Anderson
Plataforma java
Plataforma java
Andre Fonseca
Clojure presentation
Clojure presentation
Jéferson Machado
Is your python application secure? - PyCon Canada - 2015-11-07
Is your python application secure? - PyCon Canada - 2015-11-07
Frédéric Harper
Recommended
Making it Work Offline: Current & Future Offline APIs for Web Apps
Making it Work Offline: Current & Future Offline APIs for Web Apps
Natasha Rooney
A Modest Introduction to Swift
A Modest Introduction to Swift
John Anderson
Swoole Love PHP
Swoole Love PHP
Yi-Feng Tzeng
Pharo JS
Pharo JS
Pharo
Modern Perl for the Unfrozen Paleolithic Perl Programmer
Modern Perl for the Unfrozen Paleolithic Perl Programmer
John Anderson
Plataforma java
Plataforma java
Andre Fonseca
Clojure presentation
Clojure presentation
Jéferson Machado
Is your python application secure? - PyCon Canada - 2015-11-07
Is your python application secure? - PyCon Canada - 2015-11-07
Frédéric Harper
Erjang
Erjang
Jéferson Machado
scaling compiled applications - highload 2013
scaling compiled applications - highload 2013
ice799
Automate Yo' Self
Automate Yo' Self
John Anderson
Composer - The missing package manager for PHP
Composer - The missing package manager for PHP
Tareq Hasan
Debugging Your Plone Site
Debugging Your Plone Site
cdw9
Myphp-busters: symfony framework
Myphp-busters: symfony framework
Stefan Koopmanschap
Myphp-busters: symfony framework (PHPCon.it)
Myphp-busters: symfony framework (PHPCon.it)
Stefan Koopmanschap
Package manages and Puppet - PuppetConf 2015
Package manages and Puppet - PuppetConf 2015
ice799
PyCon Canada 2015 - Is your python application secure
PyCon Canada 2015 - Is your python application secure
IMMUNIO
PharoJS
PharoJS
ESUG
44CON London 2015 - reverse reverse engineering
44CON London 2015 - reverse reverse engineering
44CON
Developing OpenResty Framework
Developing OpenResty Framework
Aapo Talvensaari
Browser controller testing for webapps (in Windows environment)
Browser controller testing for webapps (in Windows environment)
Adrian Spinei
Java EE 7 meets Java 8
Java EE 7 meets Java 8
Roberto Cortez
DEF CON 27 - workshop - RYAN CHAPMAN - understanding and analyzing weaponized...
DEF CON 27 - workshop - RYAN CHAPMAN - understanding and analyzing weaponized...
Felipe Prado
Cenário atual do PHP e Introdução ao Laravel no Devinvale 2014
Cenário atual do PHP e Introdução ao Laravel no Devinvale 2014
Julio Bitencourt
Into The Box 2018 Automate Your Test
Into The Box 2018 Automate Your Test
Ortus Solutions, Corp
Continuous Development and Deployment: Workflows and Patterns
Continuous Development and Deployment: Workflows and Patterns
AOE
Thank you @miyagawa!
Thank you @miyagawa!
Anatoly Sharifulin
Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
Paul Stack
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
Shengyou Fan
All the Laravel Things – Up & Running to Making $$
All the Laravel Things – Up & Running to Making $$
Joe Ferguson
More Related Content
What's hot
Erjang
Erjang
Jéferson Machado
scaling compiled applications - highload 2013
scaling compiled applications - highload 2013
ice799
Automate Yo' Self
Automate Yo' Self
John Anderson
Composer - The missing package manager for PHP
Composer - The missing package manager for PHP
Tareq Hasan
Debugging Your Plone Site
Debugging Your Plone Site
cdw9
Myphp-busters: symfony framework
Myphp-busters: symfony framework
Stefan Koopmanschap
Myphp-busters: symfony framework (PHPCon.it)
Myphp-busters: symfony framework (PHPCon.it)
Stefan Koopmanschap
Package manages and Puppet - PuppetConf 2015
Package manages and Puppet - PuppetConf 2015
ice799
PyCon Canada 2015 - Is your python application secure
PyCon Canada 2015 - Is your python application secure
IMMUNIO
PharoJS
PharoJS
ESUG
44CON London 2015 - reverse reverse engineering
44CON London 2015 - reverse reverse engineering
44CON
Developing OpenResty Framework
Developing OpenResty Framework
Aapo Talvensaari
Browser controller testing for webapps (in Windows environment)
Browser controller testing for webapps (in Windows environment)
Adrian Spinei
Java EE 7 meets Java 8
Java EE 7 meets Java 8
Roberto Cortez
DEF CON 27 - workshop - RYAN CHAPMAN - understanding and analyzing weaponized...
DEF CON 27 - workshop - RYAN CHAPMAN - understanding and analyzing weaponized...
Felipe Prado
Cenário atual do PHP e Introdução ao Laravel no Devinvale 2014
Cenário atual do PHP e Introdução ao Laravel no Devinvale 2014
Julio Bitencourt
Into The Box 2018 Automate Your Test
Into The Box 2018 Automate Your Test
Ortus Solutions, Corp
Continuous Development and Deployment: Workflows and Patterns
Continuous Development and Deployment: Workflows and Patterns
AOE
Thank you @miyagawa!
Thank you @miyagawa!
Anatoly Sharifulin
Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
Paul Stack
What's hot
(20)
Erjang
Erjang
scaling compiled applications - highload 2013
scaling compiled applications - highload 2013
Automate Yo' Self
Automate Yo' Self
Composer - The missing package manager for PHP
Composer - The missing package manager for PHP
Debugging Your Plone Site
Debugging Your Plone Site
Myphp-busters: symfony framework
Myphp-busters: symfony framework
Myphp-busters: symfony framework (PHPCon.it)
Myphp-busters: symfony framework (PHPCon.it)
Package manages and Puppet - PuppetConf 2015
Package manages and Puppet - PuppetConf 2015
PyCon Canada 2015 - Is your python application secure
PyCon Canada 2015 - Is your python application secure
PharoJS
PharoJS
44CON London 2015 - reverse reverse engineering
44CON London 2015 - reverse reverse engineering
Developing OpenResty Framework
Developing OpenResty Framework
Browser controller testing for webapps (in Windows environment)
Browser controller testing for webapps (in Windows environment)
Java EE 7 meets Java 8
Java EE 7 meets Java 8
DEF CON 27 - workshop - RYAN CHAPMAN - understanding and analyzing weaponized...
DEF CON 27 - workshop - RYAN CHAPMAN - understanding and analyzing weaponized...
Cenário atual do PHP e Introdução ao Laravel no Devinvale 2014
Cenário atual do PHP e Introdução ao Laravel no Devinvale 2014
Into The Box 2018 Automate Your Test
Into The Box 2018 Automate Your Test
Continuous Development and Deployment: Workflows and Patterns
Continuous Development and Deployment: Workflows and Patterns
Thank you @miyagawa!
Thank you @miyagawa!
Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
Windows: Having its ass kicked by Puppet and Powershell since 2012 #PuppetConf
Similar to 徒手打造自己的粉專客服機器人
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
Shengyou Fan
All the Laravel Things – Up & Running to Making $$
All the Laravel Things – Up & Running to Making $$
Joe Ferguson
Rails is not enough, by Javier Ramirez, at Conferencia Rails 2010 in Madrid, ...
Rails is not enough, by Javier Ramirez, at Conferencia Rails 2010 in Madrid, ...
javier ramirez
Introduction to Laravel
Introduction to Laravel
Vin Lim
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
Joe Ferguson
PHP Conf Taiwan 2016 自動化與持續整合實作工作坊
PHP Conf Taiwan 2016 自動化與持續整合實作工作坊
Chen Cheng-Wei
Web Application Testing. A Quick Guide to Testing and Security
Web Application Testing. A Quick Guide to Testing and Security
The Software House
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
Joe Ferguson
zapier.pdf
zapier.pdf
GeorgeDrakakis3
Try! Swift Tokyo2017
Try! Swift Tokyo2017
Amy Cheong
2021laravelconftwslides4
2021laravelconftwslides4
LiviaLiaoFontech
2017 03 25 Microsoft Hacks, How to code efficiently
2017 03 25 Microsoft Hacks, How to code efficiently
Bruno Capuano
Cross-Platform Native Apps with JavaScript
Cross-Platform Native Apps with JavaScript
Fokke Zandbergen
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
Joe Ferguson
Voicecon - Mashups with Tropo.com
Voicecon - Mashups with Tropo.com
Voxeo Corp
Laravel ua chatbot
Laravel ua chatbot
Oleksandr Tymchenko
PhoneGap at JSConf
PhoneGap at JSConf
Brian LeRoux
Call Control Power Tools with Adhearsion
Call Control Power Tools with Adhearsion
Mojo Lingo
Owasp owtf the offensive (web) testing framework + ptes penetration testing e...
Owasp owtf the offensive (web) testing framework + ptes penetration testing e...
Mauro Risonho de Paula Assumpcao
How To Be A Better Developer
How To Be A Better Developer
Ahmed Abu Eldahab
Similar to 徒手打造自己的粉專客服機器人
(20)
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
All the Laravel Things – Up & Running to Making $$
All the Laravel Things – Up & Running to Making $$
Rails is not enough, by Javier Ramirez, at Conferencia Rails 2010 in Madrid, ...
Rails is not enough, by Javier Ramirez, at Conferencia Rails 2010 in Madrid, ...
Introduction to Laravel
Introduction to Laravel
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
PHP Conf Taiwan 2016 自動化與持續整合實作工作坊
PHP Conf Taiwan 2016 自動化與持續整合實作工作坊
Web Application Testing. A Quick Guide to Testing and Security
Web Application Testing. A Quick Guide to Testing and Security
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
zapier.pdf
zapier.pdf
Try! Swift Tokyo2017
Try! Swift Tokyo2017
2021laravelconftwslides4
2021laravelconftwslides4
2017 03 25 Microsoft Hacks, How to code efficiently
2017 03 25 Microsoft Hacks, How to code efficiently
Cross-Platform Native Apps with JavaScript
Cross-Platform Native Apps with JavaScript
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
Voicecon - Mashups with Tropo.com
Voicecon - Mashups with Tropo.com
Laravel ua chatbot
Laravel ua chatbot
PhoneGap at JSConf
PhoneGap at JSConf
Call Control Power Tools with Adhearsion
Call Control Power Tools with Adhearsion
Owasp owtf the offensive (web) testing framework + ptes penetration testing e...
Owasp owtf the offensive (web) testing framework + ptes penetration testing e...
How To Be A Better Developer
How To Be A Better Developer
Recently uploaded
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
RankYa
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
Miki Katsuragi
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
comworks
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Wonjun Hwang
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Fwdays
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
Zilliz
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
Zilliz
Recently uploaded
(20)
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
徒手打造自己的粉專客服機器人
1.
徒⼿手打造⾃自⼰己的 粉專客服機器⼈人 L a r
a v e l C o n f e r e n c e Ta i w a n 2 0 1 8 S a s a y a @ 張 榮 發 ⽂文 教 基 ⾦金金 會 國 際 會 議 中 ⼼心
2.
• Full-Stack Web
Developer @ UniSharp • Favorites: • CLI, Vim • Laravel, Vue.js • Percussion (Music) Sasaya
3.
4.
什什麼是聊天機器⼈人?
5.
🤖 💬
6.
🤖 💬
7.
# 🤖 💬 X
8.
🤖 💬 能做什什麼?
9.
訂餐
10.
玩遊戲
11.
賣東⻄西
12.
客服
13.
LaravelConf 台灣
14.
抽卡
15.
開關鐵⾨門
16.
還有⼀一⼤大堆 ...
17.
為什什麼要⽤用 🤖 💬 ?
18.
潮
19.
懶懶
20.
耐⼼心
21.
💰
22.
開始打造超簡單的 🤖 💬
23.
BotMan
24.
25.
BotMan 是什什麼?
26.
為什什麼選⽤用 BotMan?
27.
🤖 💬X
28.
Laravel
29.
$ composer global
require botman/installer 安裝 BotMan Studio Installer
30.
31.
$ botman new
facebook-bot 建立 BotMan Studio 專案
32.
33.
34.
$ php artisan
botman:list-drivers 看看⽀支援什什麼 Driver
35.
36.
$ php artisan
botman:install-driver facebook 安裝 Facebook Driver
37.
38.
39.
$ php artisan
botman:list-drivers 確定⼀一下安裝是否成功
40.
41.
建立 Facebook App
42.
43.
44.
45.
46.
47.
W T F
48.
49.
W T F
50.
51.
W T F
52.
53.
54.
55.
56.
57.
58.
59.
60.
# .env FACEBOOK_TOKEN=xxxxxxxxxx 設定 Page
Access Token
61.
62.
63.
$ valet link $
valet share 使⽤用 Laravel Valet
64.
65.
66.
# .env FACEBOOK_VERIFICATION=xxxxxxxxxx 設定 Verify
Token
67.
68.
69.
70.
71.
72.
開始跟 🤖 💬 對話
73.
# routes/botman.php $botman =
resolve('botman'); $botman->hears('Hi', function ($bot) { $bot->reply('Hello!'); });
74.
75.
THE END
76.
騙你的啦 XD
77.
問答模式
78.
# routes/botman.php $botman->hears('Hello', function
($bot) { $bot->startConversation( new HelloConversation ); });
79.
# app/Conversations/HelloConversation.php $this->ask( 'Hello! What
is your name?', function (Answer $answer) { $this->say( 'Nice to meet you ' . $answer->getText() ); } );
80.
看起來來很厲害的樣板們
81.
82.
$bot->reply( ButtonTemplate::create('How do you
like BotMan so far?') ->addButton( ElementButton::create('Quiet good') ->type('postback') ->payload('good') ) ->addButton( ElementButton::create('Love it!') ->url('http://botman.io/') ) );
83.
84.
$bot->reply( ListTemplate::create() ->useCompactView() ->addGlobalButton( ElementButton::create('view more')->url('http://test.at') ) ->addElement( Element::create('BotMan Documentation') ->subtitle('All
about BotMan') ->image('http://botman.io/img/botman-body.png') ->addButton( ElementButton::create('tell me more') ->type('postback')->payload('more') ) ) );
85.
86.
$bot->reply( MediaTemplate::create() ->element( MediaAttachmentElement::create('image') ->attachmentId('1543527005693234') ->addButton( ElementButton::create('Tell me more') ->type('postback')->payload('more') ) ->addButton( ElementButton::create('Documentation') ->url('https://botman.io/') ) ) );
87.
88.
$bot->reply( GenericTemplate::create() ->addImageAspectRatio(GenericTemplate::RATIO_SQUARE) ->addElements([ Element::create('BotMan Documentation') ->subtitle('All about
BotMan') ->image('http://botman.io/img/botman-body.png') ->addButton( ElementButton::create('visit')->url('http://botman.io') ) ->addButton( ElementButton::create('tell me more') ->type(‘postback')->payload('more') ) ]) );
89.
90.
$bot->reply( ReceiptTemplate::create() ->recipientName('Christoph Rumpel') ->merchantName('BotMan GmbH') ->orderNumber('342343434343') ->timestamp('1428444852') ->orderUrl('http://test.at') ->currency('USD') ->paymentMethod('VISA') ->addElement( ReceiptElement::create('T-Shirt
Small')->price(15.99)->image('http://botman.io/img/botman-body.png') ) ->addElement( ReceiptElement::create('Sticker')->price(2.99)->image('http://botman.io/img/botman-body.png') ) ->addAddress( ReceiptAddress::create()->street1('Watsonstreet 12')->city('Bot City’) ->postalCode(100000)->state('Washington AI')->country('Botmanland') ) ->addSummary( ReceiptSummary::create()->subtotal(18.98)->shippingCost(10)->totalTax(15)->totalCost(23.98) ) ->addAdjustment(ReceiptAdjustment::create('Laravel Bonus')->amount(5)) );
91.
⾃自然語⾔言分析
92.
什什麼是⾃自然語⾔言?
93.
師⽗父吃海海鮮$albert->eat($seafoods);
94.
wit.ai
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
$bot->getMessage()->getExtras('nlp')['entities']; // Request: 我想買票 //
Entities: [ // 'ask_ticket' => [ // [ // 'confidence' => 0.94426018154179, // 'value' => '買票', // ] // ] // ]
106.
機器學習
107.
什什麼是機器學習?
108.
109.
PHP-ML
110.
111.
$manager = new
ModelManager; $classifier = $manager->restoreFromFile( resource_path('datas/phpml') ); $id = $classifier->predict($tags);
112.
可是我不想⾃自⼰己訓練 沒有現成的可以⽤用嗎?
113.
有
114.
圖靈 123
115.
116.
權限審核
117.
118.
119.
120.
121.
122.
123.
124.
FB 的審核其實不隨便便
125.
126.
127.
企業驗證
128.
TDD、CDD、DDD
129.
Q & A
Download now