SlideShare a Scribd company logo
Nader Khaled
Solution Developer at Link Development - GDG Alexandria Organizer
Twitter : @naderkhaled92 | Email : nadermousa92@gmail.com
Building Conversational
Experiences
Action
{ conversation api request }
{ conversation api response }
user input
Action response
Ready to
help across
500M+ devices
Devices with the Google
Assistant built-in
These include voice
activated speakers like
Google Home, Android
phones, iPhones etc.
The Google Assistant
A conversation between
you and Google that helps
you get things done in
your world.
Actions on Google
How developers can
extend the assistant
A growing audience:
devices
JapaneseGerman
FR French
CA French
KoreanUK English
AU English
CA English
US English
Italian
Spanish BR Portuguese
LATAM Spanish
Hindi & IN English
A growing audience:
languages
Swedish
Danish
Norwegian Indonesian
Russian
Thai
Dutch
Hey Google, talk
to __________.
Hey Google, connect
me with __________.
Hey Google,
get __________.
Ok Google, talk
to Personal Chef
Sure, here’s
Personal Chef
What are you
in the mood
for?
What protein
would you like
to use?
Speech to Text
NLP
Knowledge Graph
ML Ranking
User Profile
Text to Speech
Speech to Text
Text to Speech
...
Invoke Personal
Chef action
Parse query and
generate
response
Well, it’s kind of
cold outside, so
I’d like...
Well, it’s kind of cold outside, so I'd like
something to warm me up, like a hot
soup, and I want it fast.
“
Intent Matching — Match and categorize user
utterances to an intent.
Entity Extraction — Identify key words and
phrases spoken by the user.@
Ok Google, talk
to Personal
Chef
Sure, here’s
Personal Chef
What are you
in the mood
for?
What protein
would you like
to use?
Speech to Text
NLP
Knowledge Graph
ML Ranking
User Profile
Speech to Text
Text to Speech
...
...
...
Trigger
WELCOME event
...
NLP:
Intent Matching
Entity Extraction
Well, it’s kind of
cold outside, so
I’d like...
Entities:
homemade
cannoli
“Find me a recipe
for homemade
cannoli”
User Says
Response Webhook
“Find me a recipe
for homemade
cannoli”
“Here’s the best
one I can find”
A Magical Experience
g.co/dev/ActionsDesign
AUDIO_OUTPUT SCREEN_OUTPUT
Support different surface capabilities
developers.google.com/actions/assistant/surface-capabilities
Support speech and display text
developers.google.com/actions/assistant/responses
conv.ask(new SimpleRespone({
speech: 'Howdy! I can tell you fun facts about ' +
'almost any number, like 42. What do you have in mind?',
text: 'Howdy! I can tell you fun facts about ' +
'almost any number. What do you have in mind?'
}));
Display basic cards
developers.google.com/actions/assistant/responses
conv.ask('Math and prime numbers it is!')
conv.ask(new BasicCard({
text: '42 is an even composite number. It is composed of three distinct prime ' +
'numbers multiplied together. It has a total of eight divisors. 42 is an ' +
'abundant number, because the sum of its proper divisors 54 is greater ' +
'than itself. To count from 1 to 42 would take you about twenty-one…',
title: 'Math & prime numbers',
buttons: new Button({
title: 'Read more',
url: 'https://example.com',
}),
image: new Image({
url: 'https://example.google.com/42.png',
alt: 'Image alternate text',
}),
}));
Account Linking
https://developers.google.com/actions/identity/
Multi platform
Google Sign In + OAuth linking
Assistant only
Google Sign In only
Google Sign In for Assistant configurable in two modes
More ways to connect!
Sample Actions
developers.google.com/actions/samples/actions
Smart Home Device Integration
developers.google.com/actions/smarthome/
Dim the lights in the living
room a little bit.
What lights are on in the
living room?
Make it warmer.
Turn off all the lights.
What is the temperature
inside?
How many lights are on?
Reach Users
Ok Google, ask Personal Chef for a hot soup recipe
Trigger Phrase Action Name
Developer Specified
Action
Preposition
Action Phrase
Developer Specified
Working Examples: Let’s speak to Domino’s
Ask Dr. Doggy if dogs can eat chocolate
Ok Google, let’s talk to Personal Chef
Trigger Phrase Action Name
Developer Specified
In Dialogue Discovery: Explicit Triggering
In Dialogue Discovery: Implicit Triggering
Hey Google, I
want to work out.
Hey Google, I want
to play a game.
Hey Google, what’s
the surf report?
Hey Google, tell
me a joke.
Conversational Design Intro
GUI : VUI
What’s the difference?
Top 3 Design Tips
[1] Create a Persona
A Persona is conveyed through:
• Tone
• Word and phrase choices
• Functional design
• Style
• Technique
• Voice
And it is based on:
• Your user population
• Their needs
• The imagery &
qualities associated
with your brand
Cowabunga, dude!
What flavors do you crave?
The bus is approaching your stop now.
Your trip will take 45 minutes.
Buy a pizza
Getting there soon
Purchase a ticket
Arriving soon
Look at your order Review your schedule
[2] Think outside the box.
Literally!
code code code code code
code code code code
code code “ dialog string” code
code code code
code code code code code
code “dialog string” code code
code code code code code code code
code code code
code code
code
code code
code
code
code code code
code “dialog string” code code code
code code
code code code
code code code code code code code code
code code code code code code code code
code
STRUCTURE CODE
code code code code code
code code code code
code code “ dialog string” code
code code code
code code code code code
code “dialog string” code code
code code code code code code code
code code code
code code
code
code code
code
code
code code code
code “dialog string” code code code
code code
code code code
code code code code code code code code
code code code code code code code code
code
STRUCTURE CODE
DIALOG STRUCTURE
[3] In a conversation,
there are no “errors”
real life
user
conditions {
Give users credit
They know how to talk
Avoid force feeding commands.
(such as “to reply to a message,
say ‘reply’” or “to hear that
again, say ‘repeat’”.)
People hardly ever say
nonsense. They just weren’t
parsed correctly. There was a
misalignment in meaning.
They know what they want
There’s no such thing as a query with
no intent. The user wanted to do
something, even if they didn’t say so.
They want to help
Don’t create dead ends when
something doesn’t work.
If you ask for them to say
something again, they will, but
rarely exactly the same way.
Honor that they’re invested in
outcome of a repair attempt.
Use the context
Environmental
Where is the user?
What are they doing?
What type of device
are they using?
Situational
What’s their intent?
Where is the user’s
frame of mind?
Temporal
What happened right before?
What’s happening next?
How is the experience
influenced over time?
Behavioral
What do users know
going in?
What data can you use to
enrich the experience
predictively or to cut out
unnecessary steps?
Codelab: Build Actions (Level 1)
codelabs.developers.google.com → Assistant
Create either a specific project ID or share
your individual project ID via Google Forms to
have your Action recognized as part of the event
series:
1. Share your Project ID via
bit.ly/buildactions-projects
OR
1. Go to the console:
bit.ly/buildactions-console
2. Start a new project beginning with BAFYC
followed by the planned Action name
Start creating your Action - get recognized
Console
bit.ly/buildactions-console
Build with Templates
developers.google.com/actions/templates
Build with Dialogflow
developers.google.com/actions/dialogflow
Build with Actions SDK
developers.google.com/actions/sdk
Resources to get started and support
Documentation
developers.google.com/actions
Codelabs
codelabs.developers.google.com
Write and Deploy Functions
bit.ly/firebase-get-started
Deploy your fulfillment webhook using
Cloud Functions for Firebase
bit.ly/aog-cloud-functions
Wait… there’s more
1. Check out the recording of one webinar with the Assistant team for all
bit.ly/buildactions-webinarvideo
2. Your Actions listed on the Google Assistant event series page:
developers.google.com/events/buildactions
3. Be part of the Actions on Google Community with publishing you Action
developers.google.com/actions/community (and get a shirt + cloud credits for a year)
Actions on Google Community Program
developers.google.com/actions/community
You are automatically invited to the program with publishing
your first Action and will receive a
Cool T Shirt + $200 Cloud Credits per month for a year
The Assistant team also recognizes milestones:
Traction Engagements Globalization
Have a great evening!
#GoogleAssistant #ActionsOnGoogle #AOGDevs #DialogFlow

More Related Content

Similar to Building Conversational Experiences for Google Assistant

Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017
Ido Green
 
Building your actions for Google Assistant
Building your actions for Google AssistantBuilding your actions for Google Assistant
Building your actions for Google Assistant
Ahmed Abu Eldahab
 
Action on Google
Action on GoogleAction on Google
Action on Google
Honey Sharma
 
Get on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdfGet on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdf
SumirVats
 
Customer Development Power-Ups
Customer Development Power-UpsCustomer Development Power-Ups
Customer Development Power-Ups
Lean Startup Co.
 
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Synerzip
 
resolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bddresolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bdd
Rodrigo Urubatan
 
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Smit Jethwa
 
Info Session GDSC USICT
Info Session GDSC USICTInfo Session GDSC USICT
Info Session GDSC USICT
DSCUSICT
 
Orientation session
Orientation sessionOrientation session
Orientation session
GoogleDeveloperStude2
 
Opw2010 Gsoc
Opw2010 GsocOpw2010 Gsoc
Opw2010 Gsoc
dhoss
 
Google+Bard+-+Slide+deck1.pdf
Google+Bard+-+Slide+deck1.pdfGoogle+Bard+-+Slide+deck1.pdf
Google+Bard+-+Slide+deck1.pdf
Sitamarhi Institute of Technology
 
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Francisco S. Barralaga
 
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In SoftwareLuke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Enthiosys Inc
 
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
HostedbyConfluent
 
What's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots PartnershipWhat's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots Partnership
Ogilvy Consulting
 
Digital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice SearchDigital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice Search
Clark Boyd
 
Rubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDDRubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDD
Rodrigo Urubatan
 
Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"
Christian Heilmann
 
InfoSession2022_merged.pdf
InfoSession2022_merged.pdfInfoSession2022_merged.pdf
InfoSession2022_merged.pdf
KINGSHUKGHOSH20
 

Similar to Building Conversational Experiences for Google Assistant (20)

Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017
 
Building your actions for Google Assistant
Building your actions for Google AssistantBuilding your actions for Google Assistant
Building your actions for Google Assistant
 
Action on Google
Action on GoogleAction on Google
Action on Google
 
Get on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdfGet on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdf
 
Customer Development Power-Ups
Customer Development Power-UpsCustomer Development Power-Ups
Customer Development Power-Ups
 
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
 
resolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bddresolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bdd
 
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
 
Info Session GDSC USICT
Info Session GDSC USICTInfo Session GDSC USICT
Info Session GDSC USICT
 
Orientation session
Orientation sessionOrientation session
Orientation session
 
Opw2010 Gsoc
Opw2010 GsocOpw2010 Gsoc
Opw2010 Gsoc
 
Google+Bard+-+Slide+deck1.pdf
Google+Bard+-+Slide+deck1.pdfGoogle+Bard+-+Slide+deck1.pdf
Google+Bard+-+Slide+deck1.pdf
 
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
 
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In SoftwareLuke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
 
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
 
What's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots PartnershipWhat's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots Partnership
 
Digital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice SearchDigital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice Search
 
Rubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDDRubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDD
 
Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"
 
InfoSession2022_merged.pdf
InfoSession2022_merged.pdfInfoSession2022_merged.pdf
InfoSession2022_merged.pdf
 

Recently uploaded

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 

Recently uploaded (20)

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 

Building Conversational Experiences for Google Assistant

  • 1. Nader Khaled Solution Developer at Link Development - GDG Alexandria Organizer Twitter : @naderkhaled92 | Email : nadermousa92@gmail.com
  • 2.
  • 3.
  • 5. Action { conversation api request } { conversation api response } user input Action response
  • 7. Devices with the Google Assistant built-in These include voice activated speakers like Google Home, Android phones, iPhones etc. The Google Assistant A conversation between you and Google that helps you get things done in your world. Actions on Google How developers can extend the assistant
  • 9. JapaneseGerman FR French CA French KoreanUK English AU English CA English US English Italian Spanish BR Portuguese LATAM Spanish Hindi & IN English A growing audience: languages Swedish Danish Norwegian Indonesian Russian Thai Dutch
  • 10. Hey Google, talk to __________. Hey Google, connect me with __________. Hey Google, get __________.
  • 11.
  • 12. Ok Google, talk to Personal Chef Sure, here’s Personal Chef What are you in the mood for? What protein would you like to use? Speech to Text NLP Knowledge Graph ML Ranking User Profile Text to Speech Speech to Text Text to Speech ... Invoke Personal Chef action Parse query and generate response Well, it’s kind of cold outside, so I’d like...
  • 13. Well, it’s kind of cold outside, so I'd like something to warm me up, like a hot soup, and I want it fast.
  • 14. “ Intent Matching — Match and categorize user utterances to an intent. Entity Extraction — Identify key words and phrases spoken by the user.@
  • 15.
  • 16. Ok Google, talk to Personal Chef Sure, here’s Personal Chef What are you in the mood for? What protein would you like to use? Speech to Text NLP Knowledge Graph ML Ranking User Profile Speech to Text Text to Speech ... ... ... Trigger WELCOME event ... NLP: Intent Matching Entity Extraction Well, it’s kind of cold outside, so I’d like...
  • 17. Entities: homemade cannoli “Find me a recipe for homemade cannoli” User Says Response Webhook “Find me a recipe for homemade cannoli” “Here’s the best one I can find”
  • 20. AUDIO_OUTPUT SCREEN_OUTPUT Support different surface capabilities developers.google.com/actions/assistant/surface-capabilities
  • 21. Support speech and display text developers.google.com/actions/assistant/responses conv.ask(new SimpleRespone({ speech: 'Howdy! I can tell you fun facts about ' + 'almost any number, like 42. What do you have in mind?', text: 'Howdy! I can tell you fun facts about ' + 'almost any number. What do you have in mind?' }));
  • 22. Display basic cards developers.google.com/actions/assistant/responses conv.ask('Math and prime numbers it is!') conv.ask(new BasicCard({ text: '42 is an even composite number. It is composed of three distinct prime ' + 'numbers multiplied together. It has a total of eight divisors. 42 is an ' + 'abundant number, because the sum of its proper divisors 54 is greater ' + 'than itself. To count from 1 to 42 would take you about twenty-one…', title: 'Math & prime numbers', buttons: new Button({ title: 'Read more', url: 'https://example.com', }), image: new Image({ url: 'https://example.google.com/42.png', alt: 'Image alternate text', }), }));
  • 23. Account Linking https://developers.google.com/actions/identity/ Multi platform Google Sign In + OAuth linking Assistant only Google Sign In only Google Sign In for Assistant configurable in two modes
  • 24. More ways to connect!
  • 26. Smart Home Device Integration developers.google.com/actions/smarthome/ Dim the lights in the living room a little bit. What lights are on in the living room? Make it warmer. Turn off all the lights. What is the temperature inside? How many lights are on?
  • 28. Ok Google, ask Personal Chef for a hot soup recipe Trigger Phrase Action Name Developer Specified Action Preposition Action Phrase Developer Specified Working Examples: Let’s speak to Domino’s Ask Dr. Doggy if dogs can eat chocolate Ok Google, let’s talk to Personal Chef Trigger Phrase Action Name Developer Specified In Dialogue Discovery: Explicit Triggering
  • 29. In Dialogue Discovery: Implicit Triggering Hey Google, I want to work out. Hey Google, I want to play a game. Hey Google, what’s the surf report? Hey Google, tell me a joke.
  • 31.
  • 32. GUI : VUI What’s the difference?
  • 33. Top 3 Design Tips
  • 34. [1] Create a Persona
  • 35. A Persona is conveyed through: • Tone • Word and phrase choices • Functional design • Style • Technique • Voice And it is based on: • Your user population • Their needs • The imagery & qualities associated with your brand
  • 36.
  • 37. Cowabunga, dude! What flavors do you crave? The bus is approaching your stop now. Your trip will take 45 minutes.
  • 38. Buy a pizza Getting there soon Purchase a ticket Arriving soon Look at your order Review your schedule
  • 39. [2] Think outside the box. Literally!
  • 40. code code code code code code code code code code code “ dialog string” code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code code code STRUCTURE CODE
  • 41. code code code code code code code code code code code “ dialog string” code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code code code STRUCTURE CODE
  • 43. [3] In a conversation, there are no “errors”
  • 45. Give users credit They know how to talk Avoid force feeding commands. (such as “to reply to a message, say ‘reply’” or “to hear that again, say ‘repeat’”.) People hardly ever say nonsense. They just weren’t parsed correctly. There was a misalignment in meaning. They know what they want There’s no such thing as a query with no intent. The user wanted to do something, even if they didn’t say so. They want to help Don’t create dead ends when something doesn’t work. If you ask for them to say something again, they will, but rarely exactly the same way. Honor that they’re invested in outcome of a repair attempt.
  • 46. Use the context Environmental Where is the user? What are they doing? What type of device are they using? Situational What’s their intent? Where is the user’s frame of mind? Temporal What happened right before? What’s happening next? How is the experience influenced over time? Behavioral What do users know going in? What data can you use to enrich the experience predictively or to cut out unnecessary steps?
  • 49. Create either a specific project ID or share your individual project ID via Google Forms to have your Action recognized as part of the event series: 1. Share your Project ID via bit.ly/buildactions-projects OR 1. Go to the console: bit.ly/buildactions-console 2. Start a new project beginning with BAFYC followed by the planned Action name Start creating your Action - get recognized
  • 50. Console bit.ly/buildactions-console Build with Templates developers.google.com/actions/templates Build with Dialogflow developers.google.com/actions/dialogflow Build with Actions SDK developers.google.com/actions/sdk Resources to get started and support Documentation developers.google.com/actions Codelabs codelabs.developers.google.com Write and Deploy Functions bit.ly/firebase-get-started Deploy your fulfillment webhook using Cloud Functions for Firebase bit.ly/aog-cloud-functions
  • 51. Wait… there’s more 1. Check out the recording of one webinar with the Assistant team for all bit.ly/buildactions-webinarvideo 2. Your Actions listed on the Google Assistant event series page: developers.google.com/events/buildactions 3. Be part of the Actions on Google Community with publishing you Action developers.google.com/actions/community (and get a shirt + cloud credits for a year)
  • 52. Actions on Google Community Program developers.google.com/actions/community You are automatically invited to the program with publishing your first Action and will receive a Cool T Shirt + $200 Cloud Credits per month for a year The Assistant team also recognizes milestones: Traction Engagements Globalization
  • 53. Have a great evening! #GoogleAssistant #ActionsOnGoogle #AOGDevs #DialogFlow