Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Plugging in your Bot - An extensible bot framework for Drupal 8
Rafael Silva
April 25, 2017
Programming
1
280
Plugging in your Bot - An extensible bot framework for Drupal 8
Presentation at DrupalCon 2017 Baltimore
Rafael Silva
April 25, 2017
Tweet
Share
More Decks by Rafael Silva
See All by Rafael Silva
Drupal 8 on your Apple TV
rfsbsb
0
71
Drupal - um poderoso CMS em PHP
rfsbsb
1
45
CSS 3: A Web com mais estilo
rfsbsb
0
110
Palestra sobre Drupal
rfsbsb
1
49
Drupal para Freelancers
rfsbsb
1
42
Other Decks in Programming
See All in Programming
ITエンジニア特化型Q&Aサイトteratailを 言語、DB、クラウドなど フルリプレイスした話
leveragestech
0
410
Rによる大規模データの処理
s_uryu
2
630
Spring BootとKubernetesで実現する今どきのDevOps入門
xblood
0
340
Glance App Widgetでウィジェットを作ろう / MoT TechTalk #15
mot_techtalk
0
120
Enumを自動で網羅的にテストしてみた
estie
0
1.3k
ポケモンで学ぶiOS 16弾丸ツアー 🚅
giginet
PRO
1
610
Swift Observation
shiz
4
290
tidy_rpart
bk_18
0
590
ECS Service Connectでマイクロサービスを繋いでみた
xblood
0
540
SHOWROOMの分析目的を意識した伝え方・コミュニケーション
hatapu
0
240
10年以上続くプロダクトの フロントエンド刷新プロジェクトのふりかえり
yotahada3
2
330
Hatena Engineer Seminar #23「新卒研修で気軽に『ありがとう』を伝え合える Slack アプリを開発した話」
slashnephy
0
210
Featured
See All Featured
Embracing the Ebb and Flow
colly
75
3.6k
What’s in a name? Adding method to the madness
productmarketing
12
1.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
224
50k
The Illustrated Children's Guide to Kubernetes
chrisshort
22
42k
Teambox: Starting and Learning
jrom
124
7.9k
Build your cross-platform service in a week with App Engine
jlugia
221
17k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
217
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
643
54k
StorybookのUI Testing Handbookを読んだ
zakiyama
8
3.2k
Designing Experiences People Love
moore
130
22k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
31
20k
Transcript
Plugging in your Bot An extensible bot framework for Drupal
8
Who we are & @rfsbsb @ezufelt
We build the right thing, fast. @myplanetHQ
PREMISES • This talk is not about AI • This
talk is about chatbots, Drupal and the end user • This talk is also about extending Drupal with plugins
WHAT ARE WE GOING TO COVER? • Chatbot overview •
Common use cases for chatbots • Current state of chatbots and Drupal • Our implementation • Demos • Future for chatbots and Drupal
What are chatbots?
A chatbot is a service, powered by rules and sometimes
artificial intelligence, that you interact with via a chat interface. “ Chatbot Magazine
Common use cases
EXAMPLES OF CHATBOTS • Weather/forecast (HiPoncho Facebook bot) • Survey
(Surveybot) • Todo list (Todobot) • News (CNN Facebook bot) • Catalog/buying options (Nordstrom bot) • Just chat (Xiaoice)
Chatbots and Drupal
CHATBOTS AND DRUPAL • Bot • AIML Parser • Facebook
Messenger Bot
Enter the Chatbot module
THE CHATBOT MODULE • Drupal 8 • Forked from Whitehouse’s
Facebook Messenger Bot module • It’s extensible through the Plugin API • Comes with 2 plugins: Facebook and Slack
COMPONENTS OF A CHATBOT • Message Type • Messages •
Steps • Workflows
Message Types Buttons Text Image Decision Video
Step
Workflow
DEMO
EXTENDING THE CHATBOT MODULE • You will implement a plugin
using Plugin API • Your message types • The service (i.e how to talk to your chat provider) • The workflow
A CHATBOT PLUGIN EXAMPLE /** * Facebook Chatbot implementation. *
* @ChatbotPlugin( * id = "chatbot_facebook", * title = @Translation("Facebook Chatbot") * ) */ class ChatbotFacebook extends ChatbotPluginBase implements ChatbotPluginInterface { … public function challenge() { return $this->service->challenge(); } public function parsePostData(Request $request) { return $request->getContent(); } }
DEMO II
FUTURE IMPROVEMENTS • There’s room for code refactoring • Add
new message types • Integration to AI services (Amazon Lex / IBM Watson / Microsoft Luis / wit.ai / api.ai)
#drupalsprints Friday, April 28, 2017 Mentored Core Sprint 9:00am-12:00pm Room:301-303
General Sprints 9:00am-6:00pm Room:309-310
THANK YOU! WHAT DID YOU THINK? Locate this session at
the DrupalCon Baltimore website: http://baltimore2017.drupal.org/schedule Take the survey https://www.surveymonkey.com/r/ drupalconbaltimore https://goo.gl/9s1OiM