SlideShare a Scribd company logo
Nader Khaled
Solution Developer at Link Development - GDG Alexandria Organizer
Twitter : @naderkhaled92 | Email : nadermousa92@gmail.com
Building Conversational Experiences for Google Assistant
Building Conversational Experiences for Google Assistant
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 __________.
Building Conversational Experiences for Google Assistant
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.@
Building Conversational Experiences for Google Assistant
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
Building Conversational Experiences for Google Assistant
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
Building Conversational Experiences for Google Assistant
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

PDF
Google Assistant Overview
PDF
Google Assistant - Why? How?
PPTX
An Overview of Google Assistant
PPTX
Google assistant
PDF
Building for google assistant
PDF
Actions On Google - How? Why?
PDF
VUI Design
PDF
Building for Google Assistant
Google Assistant Overview
Google Assistant - Why? How?
An Overview of Google Assistant
Google assistant
Building for google assistant
Actions On Google - How? Why?
VUI Design
Building for Google Assistant

Similar to Building Conversational Experiences for Google Assistant (20)

PDF
Actions On Google - GDD Europe 2017
PDF
Building your actions for Google Assistant
PPTX
Action on Google
PDF
Get on-board with gdsc(amu+zhcet).pdf
PPTX
Customer Development Power-Ups
PPTX
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
PDF
resolvendo problemas de comunicação em equipes distribuídas com bdd
PPTX
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
PDF
Info Session GDSC USICT
PPTX
Orientation session
ODP
Opw2010 Gsoc
PPTX
slidesfor_introducation to mondodb .pptx
PPTX
slidesfor_introducation to mondodb .pptx
PDF
Google+Bard+-+Slide+deck1.pdf
PPT
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
PDF
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
PDF
What's Next: Ogilvy x Google Chatbots Partnership
PDF
Digital Assistants: Creating Consumer Connections through Voice Search
PPTX
Rubyconf2016 - Solving communication problems in distributed teams with BDD
PDF
Sacrificing the golden calf of "coding"
Actions On Google - GDD Europe 2017
Building your actions for Google Assistant
Action on Google
Get on-board with gdsc(amu+zhcet).pdf
Customer Development Power-Ups
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
resolvendo problemas de comunicação em equipes distribuídas com bdd
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Info Session GDSC USICT
Orientation session
Opw2010 Gsoc
slidesfor_introducation to mondodb .pptx
slidesfor_introducation to mondodb .pptx
Google+Bard+-+Slide+deck1.pdf
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
What's Next: Ogilvy x Google Chatbots Partnership
Digital Assistants: Creating Consumer Connections through Voice Search
Rubyconf2016 - Solving communication problems in distributed teams with BDD
Sacrificing the golden calf of "coding"
Ad

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Approach and Philosophy of On baking technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectral efficient network and resource selection model in 5G networks
Spectroscopy.pptx food analysis technology
Encapsulation_ Review paper, used for researhc scholars
Dropbox Q2 2025 Financial Results & Investor Presentation
The AUB Centre for AI in Media Proposal.docx
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Approach and Philosophy of On baking technology
Understanding_Digital_Forensics_Presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Advanced methodologies resolving dimensionality complications for autism neur...
Building Integrated photovoltaic BIPV_UPV.pdf
Ad

Building Conversational Experiences for Google Assistant

  • 1. Nader Khaled Solution Developer at Link Development - GDG Alexandria Organizer Twitter : @naderkhaled92 | Email : nadermousa92@gmail.com
  • 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 __________.
  • 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.@
  • 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.
  • 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
  • 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