conversational ui with drupal - 2018.badcamp.org · • integration with drupal ... mexicana]...

28
Conversational UI with Drupal Piyuesh Kumar @piyuesh23

Upload: others

Post on 18-Oct-2020

3 views

Category:

Documents


0 download

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

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

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

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

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

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

“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

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

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

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

• 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Thank You!