conversational ui with drupal - 2018.badcamp.org · • integration with drupal ... mexicana]...
TRANSCRIPT
![Page 1: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/1.jpg)
Conversational UI with Drupal
Piyuesh Kumar@piyuesh23
![Page 2: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/2.jpg)
Key Pointers• Introduction & state
• Major Frameworks
• Tips
• Tooling & Pre-requisites
• Key Concepts
• Integration with Drupal
• POC demo of integration with Commerce
• Future Extension
![Page 3: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/3.jpg)
Introduction
![Page 4: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/4.jpg)
Google Trends data for search term “chatbot”, for august 2012–2017
![Page 5: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/5.jpg)
Evolution
Alexa, Please order a [chicken
Mexicana] [cheese burst] pizza for me
![Page 6: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/6.jpg)
“According to Gartner, by 2020, 30% of web browsing sessions will be done without a screen.”
![Page 7: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/7.jpg)
Major Frameworks in Market
…
![Page 8: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/8.jpg)
Tips around designing a conversational UI
![Page 9: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/9.jpg)
Tip#1: Clear Flow
• What user/customer problem will it solve efficiently?
• How will it benefit the target audience and you?
![Page 10: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/10.jpg)
• Improve discoverability by providing hints • Simplify data entry • Avoid asking open-ended and rhetorical questions
e.g., Closed-ended question (e.g. “What color is your
shirt?”) Open-ended question (e.g. “Why did you choose
that color for your shirt?”)
![Page 11: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/11.jpg)
Tip#2: User-Control
• Don’t leave the user hanging
• Graceful error handling
• Provide undo/cancel/reset
• Confirm by asking/Not stating
![Page 12: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/12.jpg)
Tip#3: Personality• Keep it as human as possible
<speak> I want to tell you a secret. <amazon:effect name="whispered">I am not a real human.</amazon:effect>. Can you believe it?</speak>
<speak> I already told you I <emphasis level="strong">really like</emphasis> that person.</speak>
![Page 13: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/13.jpg)
Tip#4: Cognitive load
• Be concise when interacting with users
• Prioritized & Personalized information
• Avoid jargon
![Page 14: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/14.jpg)
Tools & Pre-requisites
• Strong understanding of REST/Web-services & authorization methods
• Understanding around basic terminologies: Intent, Context, Utterances
• Basic sense/ research around designing interfaces for different apps.
![Page 15: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/15.jpg)
Key Concepts
![Page 16: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/16.jpg)
Alexa, Ask Drucom
To Add [red wine] to my cart
Activation
Invocation
Utterance & IntentSlot
![Page 17: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/17.jpg)
Activation
• Possible names: Alexa, Echo, Amazon
• Doesn’t allow custom names.
• Configurable per device
![Page 18: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/18.jpg)
Invocation
• Open, Launch, Ask + {skill name}
• Again, fixed keywords. Cannot add a custom invocation keyword.
![Page 19: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/19.jpg)
Utterances
• Human way of talking to your Alexa app. Alexa, ask drucom to add red wine to my cart.Alexa, ask drucom I want to add red wine to my cart.Alexa, ask drucom I want to purchase red wine.
![Page 20: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/20.jpg)
Intents
• Functional points provided by Alexa Skill.
• Utterances resolve to an intent.
![Page 21: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/21.jpg)
Drupal Integration with Alexa
![Page 22: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/22.jpg)
Linking user
![Page 23: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/23.jpg)
Alexa Request-Response
![Page 24: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/24.jpg)
DEMO
![Page 25: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/25.jpg)
User Linking
![Page 26: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/26.jpg)
Talking to Drucom
![Page 27: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/27.jpg)
Packaging & Future plans• Make Drucom support transactions with card on
file. (Need D8 port for https://www.drupal.org/project/commerce_cardonfile)
• Commerce entities to be synced in as valid slot values in Alexa app. (Webhook to POST data to Alexa for this)
• Making Product search conversational
• Packaging this up & releasing as a plug-in for Drupal commerce Distribution.
![Page 28: Conversational UI with Drupal - 2018.badcamp.org · • Integration with Drupal ... Mexicana] [cheese burst] pizza for me “According to Gartner, by 2020, 30% of web browsing sessions](https://reader036.vdocument.in/reader036/viewer/2022081408/605af7ee76dbbc47f009eefe/html5/thumbnails/28.jpg)
Thank You!